Instructions to use mory13148/vit-base-oxford-iiit-pets with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mory13148/vit-base-oxford-iiit-pets with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="mory13148/vit-base-oxford-iiit-pets") 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("mory13148/vit-base-oxford-iiit-pets") model = AutoModelForImageClassification.from_pretrained("mory13148/vit-base-oxford-iiit-pets", device_map="auto") - Notebooks
- Google Colab
- Kaggle
vit-base-oxford-iiit-pets
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:
- Loss: 0.3009
- Accuracy: 0.9242
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 2.0928 | 1.0 | 370 | 1.5477 | 0.8078 |
| 0.8805 | 2.0 | 740 | 0.7489 | 0.8904 |
| 0.5334 | 3.0 | 1110 | 0.5102 | 0.9120 |
| 0.4274 | 4.0 | 1480 | 0.4118 | 0.9161 |
| 0.3609 | 5.0 | 1850 | 0.3598 | 0.9269 |
| 0.3158 | 6.0 | 2220 | 0.3301 | 0.9296 |
| 0.3014 | 7.0 | 2590 | 0.3116 | 0.9296 |
| 0.2905 | 8.0 | 2960 | 0.3002 | 0.9310 |
| 0.2736 | 9.0 | 3330 | 0.2944 | 0.9310 |
| 0.2705 | 10.0 | 3700 | 0.2924 | 0.9296 |
Framework versions
- Transformers 5.16.1
- Pytorch 2.11.0+cu128
- Datasets 4.8.5
- Tokenizers 0.23.1
- Downloads last month
- 22
Model tree for mory13148/vit-base-oxford-iiit-pets
Base model
google/vit-base-patch16-224