rafimumtaz commited on
Commit
b8b845b
1 Parent(s): d740f89

End of training

Browse files
Files changed (2) hide show
  1. README.md +75 -11
  2. model.safetensors +1 -1
README.md CHANGED
@@ -1,13 +1,29 @@
1
  ---
 
2
  license: apache-2.0
3
  base_model: google/vit-base-patch16-224-in21k
4
  tags:
5
  - generated_from_trainer
 
 
6
  metrics:
7
  - accuracy
8
  model-index:
9
  - name: image_classification
10
- results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -15,10 +31,10 @@ should probably proofread and complete it, then remove this comment. -->
15
 
16
  # image_classification
17
 
18
- This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
19
  It achieves the following results on the evaluation set:
20
- - Loss: 1.6026
21
- - Accuracy: 0.897
22
 
23
  ## Model description
24
 
@@ -41,25 +57,73 @@ The following hyperparameters were used during training:
41
  - train_batch_size: 16
42
  - eval_batch_size: 16
43
  - seed: 42
44
- - gradient_accumulation_steps: 4
45
- - total_train_batch_size: 64
46
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
  - lr_scheduler_type: linear
48
  - lr_scheduler_warmup_ratio: 0.1
49
- - num_epochs: 3
 
50
 
51
  ### Training results
52
 
53
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
55
- | 2.6777 | 0.992 | 62 | 2.4941 | 0.827 |
56
- | 1.8445 | 2.0 | 125 | 1.7707 | 0.888 |
57
- | 1.5918 | 2.976 | 186 | 1.6098 | 0.894 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
 
60
  ### Framework versions
61
 
62
- - Transformers 4.42.4
63
  - Pytorch 2.4.0+cu121
64
  - Datasets 2.21.0
65
  - Tokenizers 0.19.1
 
1
  ---
2
+ library_name: transformers
3
  license: apache-2.0
4
  base_model: google/vit-base-patch16-224-in21k
5
  tags:
6
  - generated_from_trainer
7
+ datasets:
8
+ - imagefolder
9
  metrics:
10
  - accuracy
11
  model-index:
12
  - name: image_classification
13
+ results:
14
+ - task:
15
+ name: Image Classification
16
+ type: image-classification
17
+ dataset:
18
+ name: imagefolder
19
+ type: imagefolder
20
+ config: default
21
+ split: train
22
+ args: default
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.55
27
  ---
28
 
29
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
31
 
32
  # image_classification
33
 
34
+ 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.
35
  It achieves the following results on the evaluation set:
36
+ - Loss: 1.3640
37
+ - Accuracy: 0.55
38
 
39
  ## Model description
40
 
 
57
  - train_batch_size: 16
58
  - eval_batch_size: 16
59
  - seed: 42
60
+ - gradient_accumulation_steps: 2
61
+ - total_train_batch_size: 32
62
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
63
  - lr_scheduler_type: linear
64
  - lr_scheduler_warmup_ratio: 0.1
65
+ - num_epochs: 50
66
+ - mixed_precision_training: Native AMP
67
 
68
  ### Training results
69
 
70
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
71
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
72
+ | 1.1309 | 1.0 | 20 | 1.3481 | 0.4938 |
73
+ | 1.0746 | 2.0 | 40 | 1.3706 | 0.475 |
74
+ | 1.0367 | 3.0 | 60 | 1.3161 | 0.5375 |
75
+ | 0.9814 | 4.0 | 80 | 1.3837 | 0.45 |
76
+ | 0.886 | 5.0 | 100 | 1.3633 | 0.4875 |
77
+ | 0.8096 | 6.0 | 120 | 1.3045 | 0.5125 |
78
+ | 0.7669 | 7.0 | 140 | 1.3903 | 0.4938 |
79
+ | 0.708 | 8.0 | 160 | 1.2867 | 0.5125 |
80
+ | 0.6265 | 9.0 | 180 | 1.2244 | 0.5625 |
81
+ | 0.6191 | 10.0 | 200 | 1.3461 | 0.525 |
82
+ | 0.5598 | 11.0 | 220 | 1.3266 | 0.5625 |
83
+ | 0.4667 | 12.0 | 240 | 1.3050 | 0.5563 |
84
+ | 0.4613 | 13.0 | 260 | 1.3329 | 0.5375 |
85
+ | 0.4268 | 14.0 | 280 | 1.4020 | 0.5312 |
86
+ | 0.4256 | 15.0 | 300 | 1.3770 | 0.5188 |
87
+ | 0.3727 | 16.0 | 320 | 1.3655 | 0.5188 |
88
+ | 0.316 | 17.0 | 340 | 1.3642 | 0.5188 |
89
+ | 0.3223 | 18.0 | 360 | 1.2535 | 0.5938 |
90
+ | 0.3064 | 19.0 | 380 | 1.4173 | 0.4875 |
91
+ | 0.2866 | 20.0 | 400 | 1.3343 | 0.5625 |
92
+ | 0.2781 | 21.0 | 420 | 1.5072 | 0.4813 |
93
+ | 0.3027 | 22.0 | 440 | 1.5067 | 0.5125 |
94
+ | 0.26 | 23.0 | 460 | 1.4456 | 0.5687 |
95
+ | 0.2156 | 24.0 | 480 | 1.4825 | 0.525 |
96
+ | 0.1908 | 25.0 | 500 | 1.5369 | 0.5375 |
97
+ | 0.213 | 26.0 | 520 | 1.5397 | 0.5188 |
98
+ | 0.241 | 27.0 | 540 | 1.4804 | 0.5125 |
99
+ | 0.1974 | 28.0 | 560 | 1.5786 | 0.5062 |
100
+ | 0.225 | 29.0 | 580 | 1.4677 | 0.5375 |
101
+ | 0.2459 | 30.0 | 600 | 1.5392 | 0.5312 |
102
+ | 0.2146 | 31.0 | 620 | 1.6734 | 0.4625 |
103
+ | 0.1891 | 32.0 | 640 | 1.5012 | 0.55 |
104
+ | 0.2231 | 33.0 | 660 | 1.6265 | 0.5 |
105
+ | 0.1903 | 34.0 | 680 | 1.5405 | 0.5312 |
106
+ | 0.1852 | 35.0 | 700 | 1.6295 | 0.5 |
107
+ | 0.1768 | 36.0 | 720 | 1.5758 | 0.5375 |
108
+ | 0.1486 | 37.0 | 740 | 1.6176 | 0.5188 |
109
+ | 0.1814 | 38.0 | 760 | 1.5107 | 0.5375 |
110
+ | 0.1642 | 39.0 | 780 | 1.5315 | 0.55 |
111
+ | 0.1822 | 40.0 | 800 | 1.6309 | 0.525 |
112
+ | 0.1819 | 41.0 | 820 | 1.7033 | 0.4938 |
113
+ | 0.1326 | 42.0 | 840 | 1.6107 | 0.5437 |
114
+ | 0.1452 | 43.0 | 860 | 1.6219 | 0.55 |
115
+ | 0.128 | 44.0 | 880 | 1.4348 | 0.5813 |
116
+ | 0.1103 | 45.0 | 900 | 1.6185 | 0.5687 |
117
+ | 0.1386 | 46.0 | 920 | 1.5848 | 0.5312 |
118
+ | 0.1021 | 47.0 | 940 | 1.6036 | 0.5563 |
119
+ | 0.1414 | 48.0 | 960 | 1.5455 | 0.575 |
120
+ | 0.1989 | 49.0 | 980 | 1.5955 | 0.525 |
121
+ | 0.1458 | 50.0 | 1000 | 1.5511 | 0.55 |
122
 
123
 
124
  ### Framework versions
125
 
126
+ - Transformers 4.44.2
127
  - Pytorch 2.4.0+cu121
128
  - Datasets 2.21.0
129
  - Tokenizers 0.19.1
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:abdff019f7ca2733e1b756529c12a56f66ef010702698ab2a2c4bd02a3c1ddea
3
  size 343242432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e09cdc6c19bd9999538064cccdb08c7d93690339dc414e2f609f9a2171d837ed
3
  size 343242432