| --- |
| license: apache-2.0 |
| base_model: google/vit-base-patch16-224-in21k |
| tags: |
| - generated_from_trainer |
| datasets: |
| - imagefolder |
| metrics: |
| - accuracy |
| model-index: |
| - name: dogs_classification |
| results: |
| - task: |
| name: Image Classification |
| type: image-classification |
| dataset: |
| name: imagefolder |
| type: imagefolder |
| config: default |
| split: train |
| args: default |
| metrics: |
| - name: Accuracy |
| type: accuracy |
| value: 0.9888888888888889 |
| --- |
| |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You |
| should probably proofread and complete it, then remove this comment. --> |
|
|
| # dogs_classification |
| |
| This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset. |
| It achieves the following results on the evaluation set: |
| - Loss: 0.1486 |
| - Accuracy: 0.9889 |
| |
| ## 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.0001 |
| - train_batch_size: 16 |
| - eval_batch_size: 16 |
| - seed: 42 |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 |
| - lr_scheduler_type: cosine_with_restarts |
| - num_epochs: 4 |
| |
| ### Training results |
| |
| | Training Loss | Epoch | Step | Validation Loss | Accuracy | |
| |:-------------:|:-----:|:----:|:---------------:|:--------:| |
| | 1.3896 | 0.74 | 50 | 0.7144 | 0.9741 | |
| | 0.5377 | 1.47 | 100 | 0.2983 | 0.9852 | |
| | 0.2683 | 2.21 | 150 | 0.1943 | 0.9852 | |
| | 0.181 | 2.94 | 200 | 0.1594 | 0.9889 | |
| | 0.1289 | 3.68 | 250 | 0.1486 | 0.9889 | |
| |
| |
| ### Framework versions |
| |
| - Transformers 4.37.2 |
| - Pytorch 2.1.0+cu121 |
| - Datasets 2.17.1 |
| - Tokenizers 0.15.2 |
| |