ethz/food101
Viewer • Updated • 101k • 27.8k • 135
How to use skylord/swin-finetuned-food101 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="skylord/swin-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("skylord/swin-finetuned-food101")
model = AutoModelForImageClassification.from_pretrained("skylord/swin-finetuned-food101")This model is a fine-tuned version of microsoft/swin-base-patch4-window7-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.5646 | 1.0 | 1183 | 0.3937 | 0.8861 |
| 0.3327 | 2.0 | 2366 | 0.3024 | 0.9124 |
| 0.1042 | 3.0 | 3549 | 0.2779 | 0.9214 |