griffio commited on
Commit
e61e8be
1 Parent(s): 8e724e5

rotated_maps

Browse files
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224-in21k
5
+ tags:
6
+ - image-classification
7
+ - generated_from_trainer
8
+ datasets:
9
+ - imagefolder
10
+ metrics:
11
+ - accuracy
12
+ model-index:
13
+ - name: vit-base-patch16-224-in21k-rotated-dungeons-v8
14
+ results:
15
+ - task:
16
+ name: Image Classification
17
+ type: image-classification
18
+ dataset:
19
+ name: rotated_maps
20
+ type: imagefolder
21
+ config: default
22
+ split: validation
23
+ args: default
24
+ metrics:
25
+ - name: Accuracy
26
+ type: accuracy
27
+ value: 0.875
28
+ ---
29
+
30
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
31
+ should probably proofread and complete it, then remove this comment. -->
32
+
33
+ # vit-base-patch16-224-in21k-rotated-dungeons-v8
34
+
35
+ 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 rotated_maps dataset.
36
+ It achieves the following results on the evaluation set:
37
+ - Loss: 0.8643
38
+ - Accuracy: 0.875
39
+
40
+ ## Model description
41
+
42
+ More information needed
43
+
44
+ ## Intended uses & limitations
45
+
46
+ More information needed
47
+
48
+ ## Training and evaluation data
49
+
50
+ More information needed
51
+
52
+ ## Training procedure
53
+
54
+ ### Training hyperparameters
55
+
56
+ The following hyperparameters were used during training:
57
+ - learning_rate: 1e-05
58
+ - train_batch_size: 4
59
+ - eval_batch_size: 8
60
+ - seed: 1024
61
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
+ - lr_scheduler_type: linear
63
+ - num_epochs: 22
64
+ - mixed_precision_training: Native AMP
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-------:|:----:|:---------------:|:--------:|
70
+ | 0.1574 | 8.3333 | 100 | 0.8765 | 0.875 |
71
+ | 0.1364 | 16.6667 | 200 | 0.8643 | 0.875 |
72
+
73
+
74
+ ### Framework versions
75
+
76
+ - Transformers 4.44.2
77
+ - Pytorch 2.5.0+cu121
78
+ - Datasets 3.1.0
79
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 22.0,
3
+ "eval_accuracy": 0.875,
4
+ "eval_loss": 0.864288330078125,
5
+ "eval_runtime": 0.133,
6
+ "eval_samples_per_second": 60.169,
7
+ "eval_steps_per_second": 7.521,
8
+ "total_flos": 8.013030801360077e+16,
9
+ "train_loss": 0.16366353608442075,
10
+ "train_runtime": 97.5562,
11
+ "train_samples_per_second": 10.599,
12
+ "train_steps_per_second": 2.706
13
+ }
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "five",
13
+ "1": "four",
14
+ "2": "one",
15
+ "3": "three",
16
+ "4": "twelve",
17
+ "5": "two",
18
+ "6": "zero"
19
+ },
20
+ "image_size": 224,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "five": "0",
25
+ "four": "1",
26
+ "one": "2",
27
+ "three": "3",
28
+ "twelve": "4",
29
+ "two": "5",
30
+ "zero": "6"
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "model_type": "vit",
34
+ "num_attention_heads": 12,
35
+ "num_channels": 3,
36
+ "num_hidden_layers": 12,
37
+ "patch_size": 16,
38
+ "problem_type": "single_label_classification",
39
+ "qkv_bias": true,
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.44.2"
42
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 22.0,
3
+ "eval_accuracy": 0.875,
4
+ "eval_loss": 0.864288330078125,
5
+ "eval_runtime": 0.133,
6
+ "eval_samples_per_second": 60.169,
7
+ "eval_steps_per_second": 7.521
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e20e702b54aeeed692141acb24f7a99c058ad4ce6328b401110a8e2f9237b79
3
+ size 343239356
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
runs/Oct31_15-36-40_e244556ed756/events.out.tfevents.1730389003.e244556ed756.183.6 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1847b3d5c1b26b2c03217f6d19ccc5537f2f6358c6b43b152266d07912c428f4
3
+ size 11676
runs/Oct31_15-36-40_e244556ed756/events.out.tfevents.1730389108.e244556ed756.183.7 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c7166de179d2d5057c389ebde77db85de9f79053d1ec2203599adaf09177a6d
3
+ size 411
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 22.0,
3
+ "total_flos": 8.013030801360077e+16,
4
+ "train_loss": 0.16366353608442075,
5
+ "train_runtime": 97.5562,
6
+ "train_samples_per_second": 10.599,
7
+ "train_steps_per_second": 2.706
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.864288330078125,
3
+ "best_model_checkpoint": "vit-base-patch16-224-in21k-rotated-dungeons-v8/checkpoint-200",
4
+ "epoch": 22.0,
5
+ "eval_steps": 100,
6
+ "global_step": 264,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.8333333333333334,
13
+ "grad_norm": 0.6725011467933655,
14
+ "learning_rate": 9.621212121212122e-06,
15
+ "loss": 0.2014,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 1.6666666666666665,
20
+ "grad_norm": 2.3636183738708496,
21
+ "learning_rate": 9.242424242424244e-06,
22
+ "loss": 0.2316,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 2.5,
27
+ "grad_norm": 2.3594517707824707,
28
+ "learning_rate": 8.863636363636365e-06,
29
+ "loss": 0.2021,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 3.3333333333333335,
34
+ "grad_norm": 2.3623316287994385,
35
+ "learning_rate": 8.484848484848486e-06,
36
+ "loss": 0.1999,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 4.166666666666667,
41
+ "grad_norm": 0.8582655191421509,
42
+ "learning_rate": 8.106060606060606e-06,
43
+ "loss": 0.1825,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 5.0,
48
+ "grad_norm": 0.9432439208030701,
49
+ "learning_rate": 7.727272727272727e-06,
50
+ "loss": 0.1832,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 5.833333333333333,
55
+ "grad_norm": 0.9690579175949097,
56
+ "learning_rate": 7.348484848484849e-06,
57
+ "loss": 0.1772,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 6.666666666666667,
62
+ "grad_norm": 1.4010443687438965,
63
+ "learning_rate": 6.969696969696971e-06,
64
+ "loss": 0.1726,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 7.5,
69
+ "grad_norm": 0.7616134285926819,
70
+ "learning_rate": 6.590909090909091e-06,
71
+ "loss": 0.1767,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 8.333333333333334,
76
+ "grad_norm": 0.641935408115387,
77
+ "learning_rate": 6.212121212121213e-06,
78
+ "loss": 0.1574,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 8.333333333333334,
83
+ "eval_accuracy": 0.875,
84
+ "eval_loss": 0.8765411376953125,
85
+ "eval_runtime": 0.0757,
86
+ "eval_samples_per_second": 105.614,
87
+ "eval_steps_per_second": 13.202,
88
+ "step": 100
89
+ },
90
+ {
91
+ "epoch": 9.166666666666666,
92
+ "grad_norm": 0.8502519130706787,
93
+ "learning_rate": 5.833333333333334e-06,
94
+ "loss": 0.1655,
95
+ "step": 110
96
+ },
97
+ {
98
+ "epoch": 10.0,
99
+ "grad_norm": 0.6651738882064819,
100
+ "learning_rate": 5.4545454545454545e-06,
101
+ "loss": 0.1611,
102
+ "step": 120
103
+ },
104
+ {
105
+ "epoch": 10.833333333333334,
106
+ "grad_norm": 1.1078132390975952,
107
+ "learning_rate": 5.075757575757576e-06,
108
+ "loss": 0.1598,
109
+ "step": 130
110
+ },
111
+ {
112
+ "epoch": 11.666666666666666,
113
+ "grad_norm": 0.9000115990638733,
114
+ "learning_rate": 4.696969696969698e-06,
115
+ "loss": 0.154,
116
+ "step": 140
117
+ },
118
+ {
119
+ "epoch": 12.5,
120
+ "grad_norm": 0.6342107057571411,
121
+ "learning_rate": 4.3181818181818185e-06,
122
+ "loss": 0.1486,
123
+ "step": 150
124
+ },
125
+ {
126
+ "epoch": 13.333333333333334,
127
+ "grad_norm": 0.4974025785923004,
128
+ "learning_rate": 3.93939393939394e-06,
129
+ "loss": 0.1547,
130
+ "step": 160
131
+ },
132
+ {
133
+ "epoch": 14.166666666666666,
134
+ "grad_norm": 0.6266921162605286,
135
+ "learning_rate": 3.560606060606061e-06,
136
+ "loss": 0.1414,
137
+ "step": 170
138
+ },
139
+ {
140
+ "epoch": 15.0,
141
+ "grad_norm": 0.553960382938385,
142
+ "learning_rate": 3.181818181818182e-06,
143
+ "loss": 0.1509,
144
+ "step": 180
145
+ },
146
+ {
147
+ "epoch": 15.833333333333334,
148
+ "grad_norm": 0.6009966135025024,
149
+ "learning_rate": 2.803030303030303e-06,
150
+ "loss": 0.1497,
151
+ "step": 190
152
+ },
153
+ {
154
+ "epoch": 16.666666666666668,
155
+ "grad_norm": 0.5110170841217041,
156
+ "learning_rate": 2.4242424242424244e-06,
157
+ "loss": 0.1364,
158
+ "step": 200
159
+ },
160
+ {
161
+ "epoch": 16.666666666666668,
162
+ "eval_accuracy": 0.875,
163
+ "eval_loss": 0.864288330078125,
164
+ "eval_runtime": 0.0706,
165
+ "eval_samples_per_second": 113.361,
166
+ "eval_steps_per_second": 14.17,
167
+ "step": 200
168
+ },
169
+ {
170
+ "epoch": 17.5,
171
+ "grad_norm": 0.5791155695915222,
172
+ "learning_rate": 2.0454545454545457e-06,
173
+ "loss": 0.153,
174
+ "step": 210
175
+ },
176
+ {
177
+ "epoch": 18.333333333333332,
178
+ "grad_norm": 0.5752493143081665,
179
+ "learning_rate": 1.6666666666666667e-06,
180
+ "loss": 0.1413,
181
+ "step": 220
182
+ },
183
+ {
184
+ "epoch": 19.166666666666668,
185
+ "grad_norm": 0.4596743881702423,
186
+ "learning_rate": 1.287878787878788e-06,
187
+ "loss": 0.1319,
188
+ "step": 230
189
+ },
190
+ {
191
+ "epoch": 20.0,
192
+ "grad_norm": 0.790753185749054,
193
+ "learning_rate": 9.090909090909091e-07,
194
+ "loss": 0.1474,
195
+ "step": 240
196
+ },
197
+ {
198
+ "epoch": 20.833333333333332,
199
+ "grad_norm": 0.6762207746505737,
200
+ "learning_rate": 5.303030303030304e-07,
201
+ "loss": 0.1368,
202
+ "step": 250
203
+ },
204
+ {
205
+ "epoch": 21.666666666666668,
206
+ "grad_norm": 0.559245765209198,
207
+ "learning_rate": 1.5151515151515152e-07,
208
+ "loss": 0.1519,
209
+ "step": 260
210
+ },
211
+ {
212
+ "epoch": 22.0,
213
+ "step": 264,
214
+ "total_flos": 8.013030801360077e+16,
215
+ "train_loss": 0.16366353608442075,
216
+ "train_runtime": 97.5562,
217
+ "train_samples_per_second": 10.599,
218
+ "train_steps_per_second": 2.706
219
+ }
220
+ ],
221
+ "logging_steps": 10,
222
+ "max_steps": 264,
223
+ "num_input_tokens_seen": 0,
224
+ "num_train_epochs": 22,
225
+ "save_steps": 100,
226
+ "stateful_callbacks": {
227
+ "TrainerControl": {
228
+ "args": {
229
+ "should_epoch_stop": false,
230
+ "should_evaluate": false,
231
+ "should_log": false,
232
+ "should_save": true,
233
+ "should_training_stop": true
234
+ },
235
+ "attributes": {}
236
+ }
237
+ },
238
+ "total_flos": 8.013030801360077e+16,
239
+ "train_batch_size": 4,
240
+ "trial_name": null,
241
+ "trial_params": null
242
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ab0947e02d54eae3369e563133d5cbad906c2699390f0d5be84955a58a089ab
3
+ size 5240