enterprise-explorers/oxford-pets
Viewer • Updated • 7.39k • 1.09k • 19
How to use kawchar85/image-classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="kawchar85/image-classification")
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("kawchar85/image-classification")
model = AutoModelForImageClassification.from_pretrained("kawchar85/image-classification")This model is a fine-tuned version of google/vit-base-patch16-224 on the pcuenq/oxford-pets dataset. It achieves the following results on the evaluation set:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.3727 | 1.0 | 370 | 0.2756 | 0.9337 |
| 0.2145 | 2.0 | 740 | 0.2168 | 0.9378 |
| 0.1835 | 3.0 | 1110 | 0.1918 | 0.9459 |
| 0.147 | 4.0 | 1480 | 0.1857 | 0.9472 |
| 0.1315 | 5.0 | 1850 | 0.1818 | 0.9472 |
Base model
google/vit-base-patch16-224