ethz/food101
Viewer • Updated • 101k • 29.3k • 135
How to use pumpitup521/vit_finedtuned_food_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="pumpitup521/vit_finedtuned_food_model")
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("pumpitup521/vit_finedtuned_food_model")
model = AutoModelForImageClassification.from_pretrained("pumpitup521/vit_finedtuned_food_model")This model is a fine-tuned version of google/vit-base-patch16-224 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 |
|---|---|---|---|---|
| 0.6064 | 0.99 | 62 | 0.4593 | 0.872 |
| 0.2607 | 2.0 | 125 | 0.2649 | 0.92 |
| 0.2074 | 2.99 | 187 | 0.2421 | 0.924 |
| 0.0908 | 4.0 | 250 | 0.2442 | 0.921 |
| 0.1237 | 4.99 | 312 | 0.2353 | 0.923 |
| 0.0915 | 6.0 | 375 | 0.2402 | 0.923 |
| 0.0549 | 6.99 | 437 | 0.2053 | 0.933 |
| 0.0645 | 8.0 | 500 | 0.2190 | 0.929 |
| 0.087 | 8.99 | 562 | 0.2313 | 0.935 |
| 0.0544 | 9.92 | 620 | 0.2214 | 0.934 |