ethz/food101
Viewer • Updated • 101k • 27.8k • 136
How to use lu5/swinv2-small-patch4-window8-256-finetuned-eurosat with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="lu5/swinv2-small-patch4-window8-256-finetuned-eurosat")
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("lu5/swinv2-small-patch4-window8-256-finetuned-eurosat")
model = AutoModelForImageClassification.from_pretrained("lu5/swinv2-small-patch4-window8-256-finetuned-eurosat")This model is a fine-tuned version of microsoft/swinv2-small-patch4-window8-256 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.3521 | 1.0 | 592 | 0.7233 | 0.7967 |
| 0.9887 | 2.0 | 1184 | 0.5211 | 0.8519 |
| 0.845 | 3.0 | 1776 | 0.4063 | 0.8847 |
Base model
microsoft/swinv2-small-patch4-window8-256