dinov2-Base-finetuned-kidney_v4
This model is a fine-tuned version of facebook/dinov2-base on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 0.2241
- Accuracy: 0.9087
- F1: 0.9079
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: 4
- eval_batch_size: 4
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 16
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 0.1
- num_epochs: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.6505 | 1.0 | 734 | 0.7156 | 0.7357 | 0.6968 |
| 0.4634 | 2.0 | 1468 | 0.3363 | 0.8590 | 0.8566 |
| 0.4261 | 3.0 | 2202 | 0.3222 | 0.8706 | 0.8666 |
| 0.5756 | 4.0 | 2936 | 0.2679 | 0.8917 | 0.8897 |
| 0.4011 | 5.0 | 3670 | 0.3677 | 0.8297 | 0.8091 |
| 0.3587 | 6.0 | 4404 | 0.2442 | 0.8958 | 0.8938 |
| 0.3055 | 7.0 | 5138 | 0.2490 | 0.8944 | 0.8925 |
| 0.2717 | 8.0 | 5872 | 0.2565 | 0.9026 | 0.9007 |
| 0.2887 | 9.0 | 6606 | 0.2241 | 0.9087 | 0.9079 |
| 0.3069 | 10.0 | 7340 | 0.2298 | 0.9067 | 0.9048 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.7.1+cu118
- Datasets 4.8.3
- Tokenizers 0.22.2