ethz/food101
Viewer • Updated • 101k • 39.3k • 147
How to use adhisetiawan/vit-base-patch16-224-finetuned-food101 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="adhisetiawan/vit-base-patch16-224-finetuned-food101")
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("adhisetiawan/vit-base-patch16-224-finetuned-food101")
model = AutoModelForImageClassification.from_pretrained("adhisetiawan/vit-base-patch16-224-finetuned-food101", device_map="auto")This model is a fine-tuned version of google/vit-base-patch16-224 on Food-101 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.912 | 0.9986 | 532 | 0.8397 | 0.7968 |
| 0.7233 | 1.9991 | 1065 | 0.6781 | 0.8294 |
| 0.6047 | 2.9958 | 1596 | 0.6401 | 0.8350 |
Base model
google/vit-base-patch16-224