lewtun/dog_food
Viewer • Updated • 3k • 69 • 5
How to use sasha/swin-tiny-finetuned-dogfood with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="sasha/swin-tiny-finetuned-dogfood")
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("sasha/swin-tiny-finetuned-dogfood")
model = AutoModelForImageClassification.from_pretrained("sasha/swin-tiny-finetuned-dogfood", device_map="auto")This model is a fine-tuned version of microsoft/swin-tiny-patch4-window7-224 on the lewtun/dog_food 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.8198 | 1.0 | 16 | 0.1901 | 0.9822 |