Model save
Browse files
README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: google/vit-base-patch16-224
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
datasets:
|
| 7 |
+
- imagefolder
|
| 8 |
+
metrics:
|
| 9 |
+
- accuracy
|
| 10 |
+
model-index:
|
| 11 |
+
- name: vit-base-25ep
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
name: Image Classification
|
| 15 |
+
type: image-classification
|
| 16 |
+
dataset:
|
| 17 |
+
name: imagefolder
|
| 18 |
+
type: imagefolder
|
| 19 |
+
config: default
|
| 20 |
+
split: validation
|
| 21 |
+
args: default
|
| 22 |
+
metrics:
|
| 23 |
+
- name: Accuracy
|
| 24 |
+
type: accuracy
|
| 25 |
+
value: 0.8486111111111111
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 29 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 30 |
+
|
| 31 |
+
# vit-base-25ep
|
| 32 |
+
|
| 33 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
|
| 34 |
+
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.5506
|
| 36 |
+
- Accuracy: 0.8486
|
| 37 |
+
|
| 38 |
+
## Model description
|
| 39 |
+
|
| 40 |
+
More information needed
|
| 41 |
+
|
| 42 |
+
## Intended uses & limitations
|
| 43 |
+
|
| 44 |
+
More information needed
|
| 45 |
+
|
| 46 |
+
## Training and evaluation data
|
| 47 |
+
|
| 48 |
+
More information needed
|
| 49 |
+
|
| 50 |
+
## Training procedure
|
| 51 |
+
|
| 52 |
+
### Training hyperparameters
|
| 53 |
+
|
| 54 |
+
The following hyperparameters were used during training:
|
| 55 |
+
- learning_rate: 0.0003
|
| 56 |
+
- train_batch_size: 64
|
| 57 |
+
- eval_batch_size: 16
|
| 58 |
+
- seed: 42
|
| 59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 60 |
+
- lr_scheduler_type: linear
|
| 61 |
+
- num_epochs: 25
|
| 62 |
+
|
| 63 |
+
### Training results
|
| 64 |
+
|
| 65 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 66 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 67 |
+
| 0.6167 | 1.0 | 275 | 0.5712 | 0.8354 |
|
| 68 |
+
| 0.3183 | 2.0 | 550 | 0.5564 | 0.8406 |
|
| 69 |
+
| 0.1729 | 3.0 | 825 | 0.5955 | 0.8433 |
|
| 70 |
+
| 0.139 | 4.0 | 1100 | 0.6453 | 0.8406 |
|
| 71 |
+
| 0.0775 | 5.0 | 1375 | 0.6044 | 0.8517 |
|
| 72 |
+
| 0.0784 | 6.0 | 1650 | 0.7265 | 0.8414 |
|
| 73 |
+
| 0.0502 | 7.0 | 1925 | 0.6977 | 0.8533 |
|
| 74 |
+
| 0.0525 | 8.0 | 2200 | 0.7100 | 0.8549 |
|
| 75 |
+
| 0.0311 | 9.0 | 2475 | 0.7423 | 0.8525 |
|
| 76 |
+
| 0.026 | 10.0 | 2750 | 0.7901 | 0.8461 |
|
| 77 |
+
| 0.0183 | 11.0 | 3025 | 0.7261 | 0.8592 |
|
| 78 |
+
| 0.0218 | 12.0 | 3300 | 0.8014 | 0.8485 |
|
| 79 |
+
| 0.0135 | 13.0 | 3575 | 0.7391 | 0.8584 |
|
| 80 |
+
| 0.0066 | 14.0 | 3850 | 0.6938 | 0.8740 |
|
| 81 |
+
| 0.0047 | 15.0 | 4125 | 0.6765 | 0.8815 |
|
| 82 |
+
| 0.0052 | 16.0 | 4400 | 0.6611 | 0.8839 |
|
| 83 |
+
| 0.0033 | 17.0 | 4675 | 0.6794 | 0.8803 |
|
| 84 |
+
| 0.0037 | 18.0 | 4950 | 0.6724 | 0.8811 |
|
| 85 |
+
| 0.0026 | 19.0 | 5225 | 0.6759 | 0.8875 |
|
| 86 |
+
| 0.0031 | 20.0 | 5500 | 0.6699 | 0.8855 |
|
| 87 |
+
| 0.0028 | 21.0 | 5775 | 0.6720 | 0.8847 |
|
| 88 |
+
| 0.0029 | 22.0 | 6050 | 0.6746 | 0.8843 |
|
| 89 |
+
| 0.0016 | 23.0 | 6325 | 0.6731 | 0.8859 |
|
| 90 |
+
| 0.0016 | 24.0 | 6600 | 0.6759 | 0.8859 |
|
| 91 |
+
| 0.0019 | 25.0 | 6875 | 0.6767 | 0.8847 |
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
### Framework versions
|
| 95 |
+
|
| 96 |
+
- Transformers 4.39.3
|
| 97 |
+
- Pytorch 2.1.2
|
| 98 |
+
- Datasets 2.18.0
|
| 99 |
+
- Tokenizers 0.15.2
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343310104
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6e5b90ab50d6868d9818fa87cba2bda404df47f2cc00340729b162ab09f3279
|
| 3 |
size 343310104
|
runs/May21_17-05-00_ccd549edd53e/events.out.tfevents.1716330092.ccd549edd53e.24.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1dddfffb1fc824f3d749549178daacbe2b05d76996998c7817eb448eca64d16c
|
| 3 |
+
size 411
|