griffio commited on
Commit
203f3f6
1 Parent(s): 0359b06

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-v14
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.75
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-v14
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: 1.3604
38
+ - Accuracy: 0.75
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.9953 | 8.3333 | 100 | 1.5601 | 0.5 |
71
+ | 0.6415 | 16.6667 | 200 | 1.3604 | 0.75 |
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,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 22.0,
3
+ "total_flos": 8.013030801360077e+16,
4
+ "train_loss": 0.9863168768810503,
5
+ "train_runtime": 53.2305,
6
+ "train_samples_per_second": 19.425,
7
+ "train_steps_per_second": 4.96
8
+ }
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
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39956a39af56e4ff70710743e1a8225379d551898420c5983f3cf936b91758b5
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/Nov03_12-27-29_ade8aeba0fd2/events.out.tfevents.1730636863.ade8aeba0fd2.415.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12b658059a3ca1a351740f29a7b10c7f2fb67fa1bbdde6a14336bb1000002b6e
3
+ size 11585
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 22.0,
3
+ "total_flos": 8.013030801360077e+16,
4
+ "train_loss": 0.9863168768810503,
5
+ "train_runtime": 53.2305,
6
+ "train_samples_per_second": 19.425,
7
+ "train_steps_per_second": 4.96
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.36041259765625,
3
+ "best_model_checkpoint": "vit-base-patch16-224-in21k-rotated-dungeons-v14/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": 3.3986947536468506,
14
+ "learning_rate": 9.621212121212122e-06,
15
+ "loss": 1.8561,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 1.6666666666666665,
20
+ "grad_norm": 2.7316417694091797,
21
+ "learning_rate": 9.242424242424244e-06,
22
+ "loss": 1.737,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 2.5,
27
+ "grad_norm": 2.755110740661621,
28
+ "learning_rate": 8.863636363636365e-06,
29
+ "loss": 1.6365,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 3.3333333333333335,
34
+ "grad_norm": 3.602980613708496,
35
+ "learning_rate": 8.484848484848486e-06,
36
+ "loss": 1.503,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 4.166666666666667,
41
+ "grad_norm": 3.042379379272461,
42
+ "learning_rate": 8.106060606060606e-06,
43
+ "loss": 1.4031,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 5.0,
48
+ "grad_norm": 4.64223575592041,
49
+ "learning_rate": 7.727272727272727e-06,
50
+ "loss": 1.3179,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 5.833333333333333,
55
+ "grad_norm": 2.7679355144500732,
56
+ "learning_rate": 7.348484848484849e-06,
57
+ "loss": 1.2421,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 6.666666666666667,
62
+ "grad_norm": 2.9133822917938232,
63
+ "learning_rate": 6.969696969696971e-06,
64
+ "loss": 1.1694,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 7.5,
69
+ "grad_norm": 3.096311569213867,
70
+ "learning_rate": 6.590909090909091e-06,
71
+ "loss": 1.0972,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 8.333333333333334,
76
+ "grad_norm": 2.925428867340088,
77
+ "learning_rate": 6.212121212121213e-06,
78
+ "loss": 0.9953,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 8.333333333333334,
83
+ "eval_accuracy": 0.5,
84
+ "eval_loss": 1.56011962890625,
85
+ "eval_runtime": 0.084,
86
+ "eval_samples_per_second": 95.205,
87
+ "eval_steps_per_second": 11.901,
88
+ "step": 100
89
+ },
90
+ {
91
+ "epoch": 9.166666666666666,
92
+ "grad_norm": 2.2385735511779785,
93
+ "learning_rate": 5.833333333333334e-06,
94
+ "loss": 0.9643,
95
+ "step": 110
96
+ },
97
+ {
98
+ "epoch": 10.0,
99
+ "grad_norm": 3.4153809547424316,
100
+ "learning_rate": 5.4545454545454545e-06,
101
+ "loss": 0.9366,
102
+ "step": 120
103
+ },
104
+ {
105
+ "epoch": 10.833333333333334,
106
+ "grad_norm": 2.7754604816436768,
107
+ "learning_rate": 5.075757575757576e-06,
108
+ "loss": 0.8888,
109
+ "step": 130
110
+ },
111
+ {
112
+ "epoch": 11.666666666666666,
113
+ "grad_norm": 2.791471004486084,
114
+ "learning_rate": 4.696969696969698e-06,
115
+ "loss": 0.8297,
116
+ "step": 140
117
+ },
118
+ {
119
+ "epoch": 12.5,
120
+ "grad_norm": 2.9258711338043213,
121
+ "learning_rate": 4.3181818181818185e-06,
122
+ "loss": 0.795,
123
+ "step": 150
124
+ },
125
+ {
126
+ "epoch": 13.333333333333334,
127
+ "grad_norm": 2.066309928894043,
128
+ "learning_rate": 3.93939393939394e-06,
129
+ "loss": 0.7955,
130
+ "step": 160
131
+ },
132
+ {
133
+ "epoch": 14.166666666666666,
134
+ "grad_norm": 5.605708122253418,
135
+ "learning_rate": 3.560606060606061e-06,
136
+ "loss": 0.6958,
137
+ "step": 170
138
+ },
139
+ {
140
+ "epoch": 15.0,
141
+ "grad_norm": 2.3019251823425293,
142
+ "learning_rate": 3.181818181818182e-06,
143
+ "loss": 0.7313,
144
+ "step": 180
145
+ },
146
+ {
147
+ "epoch": 15.833333333333334,
148
+ "grad_norm": 2.301241636276245,
149
+ "learning_rate": 2.803030303030303e-06,
150
+ "loss": 0.7144,
151
+ "step": 190
152
+ },
153
+ {
154
+ "epoch": 16.666666666666668,
155
+ "grad_norm": 2.3400890827178955,
156
+ "learning_rate": 2.4242424242424244e-06,
157
+ "loss": 0.6415,
158
+ "step": 200
159
+ },
160
+ {
161
+ "epoch": 16.666666666666668,
162
+ "eval_accuracy": 0.75,
163
+ "eval_loss": 1.36041259765625,
164
+ "eval_runtime": 0.0748,
165
+ "eval_samples_per_second": 106.9,
166
+ "eval_steps_per_second": 13.363,
167
+ "step": 200
168
+ },
169
+ {
170
+ "epoch": 17.5,
171
+ "grad_norm": 2.118030071258545,
172
+ "learning_rate": 2.0454545454545457e-06,
173
+ "loss": 0.6993,
174
+ "step": 210
175
+ },
176
+ {
177
+ "epoch": 18.333333333333332,
178
+ "grad_norm": 2.083101987838745,
179
+ "learning_rate": 1.6666666666666667e-06,
180
+ "loss": 0.6416,
181
+ "step": 220
182
+ },
183
+ {
184
+ "epoch": 19.166666666666668,
185
+ "grad_norm": 1.6677289009094238,
186
+ "learning_rate": 1.287878787878788e-06,
187
+ "loss": 0.5854,
188
+ "step": 230
189
+ },
190
+ {
191
+ "epoch": 20.0,
192
+ "grad_norm": 2.4138357639312744,
193
+ "learning_rate": 9.090909090909091e-07,
194
+ "loss": 0.6605,
195
+ "step": 240
196
+ },
197
+ {
198
+ "epoch": 20.833333333333332,
199
+ "grad_norm": 2.4232518672943115,
200
+ "learning_rate": 5.303030303030304e-07,
201
+ "loss": 0.5998,
202
+ "step": 250
203
+ },
204
+ {
205
+ "epoch": 21.666666666666668,
206
+ "grad_norm": 1.9394166469573975,
207
+ "learning_rate": 1.5151515151515152e-07,
208
+ "loss": 0.6696,
209
+ "step": 260
210
+ },
211
+ {
212
+ "epoch": 22.0,
213
+ "step": 264,
214
+ "total_flos": 8.013030801360077e+16,
215
+ "train_loss": 0.9863168768810503,
216
+ "train_runtime": 53.2305,
217
+ "train_samples_per_second": 19.425,
218
+ "train_steps_per_second": 4.96
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:60b7a8300b8ae6231b3f8b31b673ae0c9a1fddc535344132e464702e8bf6c734
3
+ size 5240