--- license: apache-2.0 base_model: google/vit-base-patch32-224-in21k tags: - generated_from_trainer datasets: - imagefolder metrics: - accuracy model-index: - name: adam_ViTB-32-224-in21k-1e-4-batch_16_epoch_4_classes_24 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.9568965517241379 --- # adam_ViTB-32-224-in21k-1e-4-batch_16_epoch_4_classes_24 This model is a fine-tuned version of [google/vit-base-patch32-224-in21k](https://huggingface.co/google/vit-base-patch32-224-in21k) on the imagefolder dataset. It achieves the following results on the evaluation set: - Loss: 0.2034 - Accuracy: 0.9569 ## 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: 8 - seed: 42 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - num_epochs: 4 - mixed_precision_training: Native AMP ### Training results | Training Loss | Epoch | Step | Validation Loss | Accuracy | |:-------------:|:-----:|:----:|:---------------:|:--------:| | 1.5461 | 0.07 | 100 | 1.4329 | 0.9066 | | 0.7007 | 0.14 | 200 | 0.7957 | 0.8793 | | 0.429 | 0.21 | 300 | 0.5000 | 0.9224 | | 0.3771 | 0.28 | 400 | 0.3894 | 0.9224 | | 0.1591 | 0.35 | 500 | 0.3144 | 0.9382 | | 0.1708 | 0.42 | 600 | 0.2762 | 0.9440 | | 0.1994 | 0.49 | 700 | 0.3094 | 0.9224 | | 0.0824 | 0.56 | 800 | 0.2418 | 0.9339 | | 0.2089 | 0.63 | 900 | 0.2544 | 0.9282 | | 0.154 | 0.7 | 1000 | 0.2186 | 0.9440 | | 0.21 | 0.77 | 1100 | 0.1751 | 0.9540 | | 0.0946 | 0.84 | 1200 | 0.2017 | 0.9483 | | 0.1034 | 0.91 | 1300 | 0.2426 | 0.9353 | | 0.0421 | 0.97 | 1400 | 0.2267 | 0.9411 | | 0.0164 | 1.04 | 1500 | 0.2640 | 0.9411 | | 0.0126 | 1.11 | 1600 | 0.2163 | 0.9483 | | 0.0143 | 1.18 | 1700 | 0.2065 | 0.9483 | | 0.1191 | 1.25 | 1800 | 0.2615 | 0.9382 | | 0.01 | 1.32 | 1900 | 0.2328 | 0.9397 | | 0.072 | 1.39 | 2000 | 0.2196 | 0.9497 | | 0.0227 | 1.46 | 2100 | 0.2373 | 0.9440 | | 0.0267 | 1.53 | 2200 | 0.2118 | 0.9468 | | 0.035 | 1.6 | 2300 | 0.2156 | 0.9468 | | 0.0127 | 1.67 | 2400 | 0.1456 | 0.9641 | | 0.011 | 1.74 | 2500 | 0.2419 | 0.9382 | | 0.0328 | 1.81 | 2600 | 0.1889 | 0.9526 | | 0.0234 | 1.88 | 2700 | 0.1991 | 0.9483 | | 0.0055 | 1.95 | 2800 | 0.2120 | 0.9526 | | 0.0042 | 2.02 | 2900 | 0.2639 | 0.9368 | | 0.0031 | 2.09 | 3000 | 0.2094 | 0.9454 | | 0.0392 | 2.16 | 3100 | 0.2004 | 0.9526 | | 0.0142 | 2.23 | 3200 | 0.2160 | 0.9483 | | 0.0026 | 2.3 | 3300 | 0.2103 | 0.9569 | | 0.0024 | 2.37 | 3400 | 0.2394 | 0.9440 | | 0.0036 | 2.44 | 3500 | 0.2459 | 0.9454 | | 0.0427 | 2.51 | 3600 | 0.2159 | 0.9497 | | 0.002 | 2.58 | 3700 | 0.2357 | 0.9483 | | 0.0034 | 2.65 | 3800 | 0.3332 | 0.9325 | | 0.0282 | 2.72 | 3900 | 0.2469 | 0.9497 | | 0.0077 | 2.79 | 4000 | 0.2483 | 0.9540 | | 0.0016 | 2.86 | 4100 | 0.2169 | 0.9526 | | 0.0015 | 2.92 | 4200 | 0.2104 | 0.9526 | | 0.0015 | 2.99 | 4300 | 0.2196 | 0.9526 | | 0.0014 | 3.06 | 4400 | 0.2343 | 0.9440 | | 0.0013 | 3.13 | 4500 | 0.2106 | 0.9483 | | 0.0013 | 3.2 | 4600 | 0.1880 | 0.9526 | | 0.0014 | 3.27 | 4700 | 0.1891 | 0.9483 | | 0.0013 | 3.34 | 4800 | 0.1896 | 0.9526 | | 0.0012 | 3.41 | 4900 | 0.1958 | 0.9468 | | 0.0012 | 3.48 | 5000 | 0.1978 | 0.9526 | | 0.0011 | 3.55 | 5100 | 0.1978 | 0.9526 | | 0.0011 | 3.62 | 5200 | 0.2108 | 0.9555 | | 0.0011 | 3.69 | 5300 | 0.2044 | 0.9583 | | 0.0011 | 3.76 | 5400 | 0.2062 | 0.9598 | | 0.001 | 3.83 | 5500 | 0.2058 | 0.9598 | | 0.0011 | 3.9 | 5600 | 0.2046 | 0.9569 | | 0.001 | 3.97 | 5700 | 0.2034 | 0.9569 | ### Framework versions - Transformers 4.39.3 - Pytorch 2.1.2 - Datasets 2.18.0 - Tokenizers 0.15.2