my_awesome_food_model
This model was trained from scratch on the imagefolder dataset.
It achieves the following results on the evaluation set:
- Loss: 0.4322
- Accuracy: 0.8855
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: 0.0005
- train_batch_size: 4
- eval_batch_size: 4
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 16
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|
| 0.4246 | 0.99 | 41 | 1.0122 | 0.7470 |
| 0.3689 | 1.99 | 82 | 0.8057 | 0.7831 |
| 0.1659 | 2.98 | 123 | 0.4473 | 0.8855 |
| 0.1287 | 4.0 | 165 | 0.5580 | 0.8434 |
| 0.0944 | 4.97 | 205 | 0.4322 | 0.8855 |
Framework versions
- Transformers 4.35.2
- Pytorch 2.1.0+cu118
- Datasets 2.15.0
- Tokenizers 0.15.0