ethz/food101
Viewer • Updated • 101k • 29.1k • 134
How to use lu5/swinv2-tiny-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-tiny-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-tiny-patch4-window8-256-finetuned-eurosat")
model = AutoModelForImageClassification.from_pretrained("lu5/swinv2-tiny-patch4-window8-256-finetuned-eurosat")This model is a fine-tuned version of microsoft/swinv2-tiny-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.8552 | 1.0 | 592 | 1.1245 | 0.6955 |
| 1.2938 | 2.0 | 1184 | 0.6712 | 0.8131 |
| 1.2294 | 3.0 | 1776 | 0.5354 | 0.8492 |
| 1.0199 | 4.0 | 2368 | 0.4958 | 0.8594 |
| 0.9914 | 5.0 | 2960 | 0.4633 | 0.8678 |
| 0.8786 | 6.0 | 3552 | 0.4390 | 0.8750 |
| 0.806 | 7.0 | 4144 | 0.4206 | 0.8791 |
| 0.7506 | 8.0 | 4736 | 0.4093 | 0.8832 |
| 0.7433 | 9.0 | 5328 | 0.4053 | 0.8841 |
| 0.6393 | 10.0 | 5920 | 0.3997 | 0.8859 |
Base model
microsoft/swinv2-tiny-patch4-window8-256