Upload README.md with huggingface_hub
Browse files
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 |
-
|
|
|
|
|
|
|
| 60 |
print(result)
|
| 61 |
```
|
| 62 |
|
| 63 |
## Limitations
|
| 64 |
|
| 65 |
-
-
|
| 66 |
-
- May not generalize
|
| 67 |
-
-
|
|
|
|
| 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
|