ethz/food101
Viewer • Updated • 101k • 62.5k • 142
How to use william7642/my_awesome_food_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="william7642/my_awesome_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("william7642/my_awesome_food_model")
model = AutoModelForImageClassification.from_pretrained("william7642/my_awesome_food_model", device_map="auto")This model is a fine-tuned version of google/vit-base-patch16-224-in21k 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.9969 | 1.0 | 947 | 1.9538 | 0.7321 |
| 1.1907 | 2.0 | 1894 | 1.2216 | 0.7806 |
| 0.9433 | 3.0 | 2841 | 1.0616 | 0.7962 |