ethz/food101
Viewer • Updated • 101k • 30.4k • 135
How to use lu5/swin-tiny-patch4-window7-224-finetuned-eurosat with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="lu5/swin-tiny-patch4-window7-224-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/swin-tiny-patch4-window7-224-finetuned-eurosat")
model = AutoModelForImageClassification.from_pretrained("lu5/swin-tiny-patch4-window7-224-finetuned-eurosat")This model is a fine-tuned version of microsoft/swin-tiny-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 |
|---|---|---|---|---|
| 1.4466 | 1.0 | 532 | 1.1012 | 0.7097 |
| 1.1481 | 2.0 | 1065 | 0.8738 | 0.7657 |
| 1.01 | 3.0 | 1596 | 0.8081 | 0.7847 |