Pets Classification
Collection
3 items • Updated
How to use uisikdag/vit-base-patch16-224-oxford-pets-classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="uisikdag/vit-base-patch16-224-oxford-pets-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("uisikdag/vit-base-patch16-224-oxford-pets-classification")
model = AutoModelForImageClassification.from_pretrained("uisikdag/vit-base-patch16-224-oxford-pets-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:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.3808 | 1.0 | 370 | 0.2939 | 0.9229 |
| 0.2337 | 2.0 | 740 | 0.2166 | 0.9432 |
| 0.1762 | 3.0 | 1110 | 0.2010 | 0.9459 |
| 0.1414 | 4.0 | 1480 | 0.1922 | 0.9513 |
| 0.136 | 5.0 | 1850 | 0.1895 | 0.9499 |
Base model
google/vit-base-patch16-224