my-indian-food-model-v24-full
This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 0.3200
- Accuracy: 0.9187
- F1: 0.9187
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: 3e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 64
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: cosine
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 15
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| No log | 0.9936 | 78 | 1.2079 | 0.8365 | 0.8293 |
| 1.4393 | 2.0 | 157 | 0.7477 | 0.8931 | 0.8922 |
| 0.7238 | 2.9936 | 235 | 0.5164 | 0.9211 | 0.9207 |
| 0.3426 | 4.0 | 314 | 0.3943 | 0.9274 | 0.9274 |
| 0.3426 | 4.9936 | 392 | 0.3441 | 0.9250 | 0.9249 |
| 0.1648 | 6.0 | 471 | 0.3160 | 0.9266 | 0.9265 |
| 0.0791 | 6.9936 | 549 | 0.3200 | 0.9187 | 0.9187 |
Framework versions
- Transformers 4.44.2
- Pytorch 2.6.0+cu124
- Datasets 2.21.0
- Tokenizers 0.19.1