Nav772 commited on
Commit
cb28fc3
·
verified ·
1 Parent(s): df98640

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +6 -4
README.md CHANGED
@@ -56,12 +56,14 @@ This model is a fine-tuned version of `google/vit-base-patch16-224` for food ima
56
  from transformers import pipeline
57
 
58
  classifier = pipeline("image-classification", model="Nav772/vit-food-classifier")
59
- result = classifier("path/to/your/image.jpg") # Replace with an actual image path or PIL Image
 
 
60
  print(result)
61
  ```
62
 
63
  ## Limitations
64
 
65
- - Limited to 10 food categories
66
- - May not generalize well to images outside of the training distribution or with significant variations
67
- - English language only
 
56
  from transformers import pipeline
57
 
58
  classifier = pipeline("image-classification", model="Nav772/vit-food-classifier")
59
+
60
+ # From local file
61
+ result = classifier("path/to/food/image.jpg")
62
  print(result)
63
  ```
64
 
65
  ## Limitations
66
 
67
+ - Only classifies 10 specific food categories
68
+ - May not generalize to food items outside these categories
69
+ - Performance may degrade on low-quality or obscured images