ethz/food101
Viewer • Updated • 101k • 38.3k • 136
How to use StatsGary/VIT-food101-image-classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="StatsGary/VIT-food101-image-classifier")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("StatsGary/VIT-food101-image-classifier")
model = AutoModelForImageClassification.from_pretrained("StatsGary/VIT-food101-image-classifier")This model was trained from scratch on the food101 dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.1716 | 0.99 | 62 | 1.2149 | 0.896 |
| 0.7758 | 1.99 | 124 | 0.8727 | 0.906 |
| 0.6269 | 2.99 | 186 | 0.6833 | 0.928 |
| 0.5495 | 3.99 | 248 | 0.6041 | 0.931 |
| 0.4973 | 4.99 | 310 | 0.5661 | 0.933 |