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.2527
- Accuracy: 0.9445
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0003
- train_batch_size: 64
- eval_batch_size: 32
- seed: 42
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| No log | 1.0 | 93 | 0.6027 | 0.8958 |
| 1.5772 | 2.0 | 186 | 0.3632 | 0.9161 |
| 0.3807 | 3.0 | 279 | 0.3124 | 0.9202 |
| 0.2645 | 4.0 | 372 | 0.2945 | 0.9242 |
| 0.2288 | 5.0 | 465 | 0.2890 | 0.9242 |
Framework versions
- Transformers 4.50.0
- Pytorch 2.6.0+cu124
- Datasets 3.4.1
- Tokenizers 0.21.1
Zero-Shot Classification Results (CLIP)
Model used: openai/clip-vit-large-patch14
Oxford-Pet Dataset
- Accuracy: 87.86 %
- Precision: 87.61 %
- Recall: 87.86 %