antonioglass commited on
Commit
bd208a0
1 Parent(s): ad200eb

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - autotrain
5
+ - image-classification
6
+ widget:
7
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
8
+ example_title: Tiger
9
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
10
+ example_title: Teapot
11
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
12
+ example_title: Palace
13
+ datasets:
14
+ - real-or-anime-age/autotrain-data
15
+ ---
16
+
17
+ # Model Trained Using AutoTrain
18
+
19
+ - Problem type: Image Classification
20
+
21
+ ## Validation Metricsg
22
+ loss: 0.4898335635662079
23
+
24
+ f1_macro: 0.7652092723432848
25
+
26
+ f1_micro: 0.7869487485101311
27
+
28
+ f1_weighted: 0.7873025165202922
29
+
30
+ precision_macro: 0.7664681493316189
31
+
32
+ precision_micro: 0.7869487485101311
33
+
34
+ precision_weighted: 0.7878104453780785
35
+
36
+ recall_macro: 0.7640948741007194
37
+
38
+ recall_micro: 0.7869487485101311
39
+
40
+ recall_weighted: 0.7869487485101311
41
+
42
+ accuracy: 0.7869487485101311
checkpoint-3356/config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224",
3
+ "_num_labels": 4,
4
+ "architectures": [
5
+ "ViTForImageClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "encoder_stride": 16,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.0,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "anime_adult",
14
+ "1": "anime_contentious",
15
+ "2": "anime_non_adult",
16
+ "3": "non_anime"
17
+ },
18
+ "image_size": 224,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "anime_adult": 0,
23
+ "anime_contentious": 1,
24
+ "anime_non_adult": 2,
25
+ "non_anime": 3
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "model_type": "vit",
29
+ "num_attention_heads": 12,
30
+ "num_channels": 3,
31
+ "num_hidden_layers": 12,
32
+ "patch_size": 16,
33
+ "problem_type": "single_label_classification",
34
+ "qkv_bias": true,
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.38.0"
37
+ }
checkpoint-3356/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a5c882b8ebd80720dd59761a5638988d236f90c50a67d18107570a2ea67660b
3
+ size 343230128
checkpoint-3356/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab6c982c6d1d3d9aa80168fbe19f73322ee9a85216172b35b3bd8be7833fd90a
3
+ size 686581178
checkpoint-3356/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b872d7af3e3d6acc1ae70cc2a7bc5af4cefd24c4a9b001c1138b7ac20eeb1466
3
+ size 14244
checkpoint-3356/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbff15d8abebae4f31141f23c878a8513dbf32708addbded83609c8dc922310a
3
+ size 1064
checkpoint-3356/trainer_state.json ADDED
@@ -0,0 +1,337 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.4898335635662079,
3
+ "best_model_checkpoint": "real-or-anime-age/checkpoint-3356",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 3356,
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.05,
13
+ "grad_norm": 9.71189022064209,
14
+ "learning_rate": 8.035714285714286e-06,
15
+ "loss": 1.379,
16
+ "step": 83
17
+ },
18
+ {
19
+ "epoch": 0.1,
20
+ "grad_norm": 7.463231086730957,
21
+ "learning_rate": 1.626984126984127e-05,
22
+ "loss": 0.9415,
23
+ "step": 166
24
+ },
25
+ {
26
+ "epoch": 0.15,
27
+ "grad_norm": 9.226115226745605,
28
+ "learning_rate": 2.4503968253968254e-05,
29
+ "loss": 0.7884,
30
+ "step": 249
31
+ },
32
+ {
33
+ "epoch": 0.2,
34
+ "grad_norm": 8.683225631713867,
35
+ "learning_rate": 3.273809523809524e-05,
36
+ "loss": 0.7458,
37
+ "step": 332
38
+ },
39
+ {
40
+ "epoch": 0.25,
41
+ "grad_norm": 8.938767433166504,
42
+ "learning_rate": 4.0972222222222225e-05,
43
+ "loss": 0.7075,
44
+ "step": 415
45
+ },
46
+ {
47
+ "epoch": 0.3,
48
+ "grad_norm": 7.352237224578857,
49
+ "learning_rate": 4.9206349206349204e-05,
50
+ "loss": 0.7246,
51
+ "step": 498
52
+ },
53
+ {
54
+ "epoch": 0.35,
55
+ "grad_norm": 11.598906517028809,
56
+ "learning_rate": 4.917218543046358e-05,
57
+ "loss": 0.6635,
58
+ "step": 581
59
+ },
60
+ {
61
+ "epoch": 0.4,
62
+ "grad_norm": 5.454655170440674,
63
+ "learning_rate": 4.8256070640176604e-05,
64
+ "loss": 0.6538,
65
+ "step": 664
66
+ },
67
+ {
68
+ "epoch": 0.45,
69
+ "grad_norm": 4.765255451202393,
70
+ "learning_rate": 4.7339955849889624e-05,
71
+ "loss": 0.6486,
72
+ "step": 747
73
+ },
74
+ {
75
+ "epoch": 0.49,
76
+ "grad_norm": 9.992238998413086,
77
+ "learning_rate": 4.642384105960265e-05,
78
+ "loss": 0.7404,
79
+ "step": 830
80
+ },
81
+ {
82
+ "epoch": 0.54,
83
+ "grad_norm": 8.219937324523926,
84
+ "learning_rate": 4.5518763796909496e-05,
85
+ "loss": 0.6858,
86
+ "step": 913
87
+ },
88
+ {
89
+ "epoch": 0.59,
90
+ "grad_norm": 6.649818420410156,
91
+ "learning_rate": 4.460264900662252e-05,
92
+ "loss": 0.6612,
93
+ "step": 996
94
+ },
95
+ {
96
+ "epoch": 0.64,
97
+ "grad_norm": 5.724815845489502,
98
+ "learning_rate": 4.3686534216335544e-05,
99
+ "loss": 0.62,
100
+ "step": 1079
101
+ },
102
+ {
103
+ "epoch": 0.69,
104
+ "grad_norm": 3.1197288036346436,
105
+ "learning_rate": 4.278145695364239e-05,
106
+ "loss": 0.6113,
107
+ "step": 1162
108
+ },
109
+ {
110
+ "epoch": 0.74,
111
+ "grad_norm": 6.231707572937012,
112
+ "learning_rate": 4.186534216335541e-05,
113
+ "loss": 0.6624,
114
+ "step": 1245
115
+ },
116
+ {
117
+ "epoch": 0.79,
118
+ "grad_norm": 3.7672340869903564,
119
+ "learning_rate": 4.0949227373068436e-05,
120
+ "loss": 0.6205,
121
+ "step": 1328
122
+ },
123
+ {
124
+ "epoch": 0.84,
125
+ "grad_norm": 1.8633880615234375,
126
+ "learning_rate": 4.003311258278146e-05,
127
+ "loss": 0.6535,
128
+ "step": 1411
129
+ },
130
+ {
131
+ "epoch": 0.89,
132
+ "grad_norm": 5.430916786193848,
133
+ "learning_rate": 3.911699779249448e-05,
134
+ "loss": 0.6112,
135
+ "step": 1494
136
+ },
137
+ {
138
+ "epoch": 0.94,
139
+ "grad_norm": 6.332820415496826,
140
+ "learning_rate": 3.8200883002207506e-05,
141
+ "loss": 0.6444,
142
+ "step": 1577
143
+ },
144
+ {
145
+ "epoch": 0.99,
146
+ "grad_norm": 2.2511579990386963,
147
+ "learning_rate": 3.728476821192053e-05,
148
+ "loss": 0.6151,
149
+ "step": 1660
150
+ },
151
+ {
152
+ "epoch": 1.0,
153
+ "eval_accuracy": 0.7377830750893921,
154
+ "eval_f1_macro": 0.717936749616658,
155
+ "eval_f1_micro": 0.7377830750893921,
156
+ "eval_f1_weighted": 0.7408818935906496,
157
+ "eval_loss": 0.5908161401748657,
158
+ "eval_precision_macro": 0.7272555863618316,
159
+ "eval_precision_micro": 0.7377830750893921,
160
+ "eval_precision_weighted": 0.7562177850512167,
161
+ "eval_recall_macro": 0.7239640287769784,
162
+ "eval_recall_micro": 0.7377830750893921,
163
+ "eval_recall_weighted": 0.7377830750893921,
164
+ "eval_runtime": 56.2486,
165
+ "eval_samples_per_second": 59.664,
166
+ "eval_steps_per_second": 3.733,
167
+ "step": 1678
168
+ },
169
+ {
170
+ "epoch": 1.04,
171
+ "grad_norm": 4.224277973175049,
172
+ "learning_rate": 3.636865342163356e-05,
173
+ "loss": 0.5562,
174
+ "step": 1743
175
+ },
176
+ {
177
+ "epoch": 1.09,
178
+ "grad_norm": 4.652990341186523,
179
+ "learning_rate": 3.545253863134658e-05,
180
+ "loss": 0.5764,
181
+ "step": 1826
182
+ },
183
+ {
184
+ "epoch": 1.14,
185
+ "grad_norm": 3.9056460857391357,
186
+ "learning_rate": 3.453642384105961e-05,
187
+ "loss": 0.6014,
188
+ "step": 1909
189
+ },
190
+ {
191
+ "epoch": 1.19,
192
+ "grad_norm": 6.200495719909668,
193
+ "learning_rate": 3.362030905077263e-05,
194
+ "loss": 0.5248,
195
+ "step": 1992
196
+ },
197
+ {
198
+ "epoch": 1.24,
199
+ "grad_norm": 5.531810283660889,
200
+ "learning_rate": 3.270419426048565e-05,
201
+ "loss": 0.5606,
202
+ "step": 2075
203
+ },
204
+ {
205
+ "epoch": 1.29,
206
+ "grad_norm": 7.862312316894531,
207
+ "learning_rate": 3.178807947019868e-05,
208
+ "loss": 0.5808,
209
+ "step": 2158
210
+ },
211
+ {
212
+ "epoch": 1.34,
213
+ "grad_norm": 6.051772117614746,
214
+ "learning_rate": 3.08719646799117e-05,
215
+ "loss": 0.5093,
216
+ "step": 2241
217
+ },
218
+ {
219
+ "epoch": 1.38,
220
+ "grad_norm": 4.436023712158203,
221
+ "learning_rate": 2.9955849889624728e-05,
222
+ "loss": 0.6025,
223
+ "step": 2324
224
+ },
225
+ {
226
+ "epoch": 1.43,
227
+ "grad_norm": 5.660228252410889,
228
+ "learning_rate": 2.903973509933775e-05,
229
+ "loss": 0.5558,
230
+ "step": 2407
231
+ },
232
+ {
233
+ "epoch": 1.48,
234
+ "grad_norm": 3.855027914047241,
235
+ "learning_rate": 2.8123620309050773e-05,
236
+ "loss": 0.5865,
237
+ "step": 2490
238
+ },
239
+ {
240
+ "epoch": 1.53,
241
+ "grad_norm": 3.9190945625305176,
242
+ "learning_rate": 2.7207505518763797e-05,
243
+ "loss": 0.5439,
244
+ "step": 2573
245
+ },
246
+ {
247
+ "epoch": 1.58,
248
+ "grad_norm": 5.566714763641357,
249
+ "learning_rate": 2.6291390728476822e-05,
250
+ "loss": 0.5622,
251
+ "step": 2656
252
+ },
253
+ {
254
+ "epoch": 1.63,
255
+ "grad_norm": 5.549644470214844,
256
+ "learning_rate": 2.5375275938189846e-05,
257
+ "loss": 0.5273,
258
+ "step": 2739
259
+ },
260
+ {
261
+ "epoch": 1.68,
262
+ "grad_norm": 4.814943790435791,
263
+ "learning_rate": 2.445916114790287e-05,
264
+ "loss": 0.5809,
265
+ "step": 2822
266
+ },
267
+ {
268
+ "epoch": 1.73,
269
+ "grad_norm": 5.472110271453857,
270
+ "learning_rate": 2.3543046357615895e-05,
271
+ "loss": 0.5928,
272
+ "step": 2905
273
+ },
274
+ {
275
+ "epoch": 1.78,
276
+ "grad_norm": 5.81935453414917,
277
+ "learning_rate": 2.262693156732892e-05,
278
+ "loss": 0.5379,
279
+ "step": 2988
280
+ },
281
+ {
282
+ "epoch": 1.83,
283
+ "grad_norm": 3.03950834274292,
284
+ "learning_rate": 2.1710816777041943e-05,
285
+ "loss": 0.545,
286
+ "step": 3071
287
+ },
288
+ {
289
+ "epoch": 1.88,
290
+ "grad_norm": 5.148889064788818,
291
+ "learning_rate": 2.0794701986754968e-05,
292
+ "loss": 0.585,
293
+ "step": 3154
294
+ },
295
+ {
296
+ "epoch": 1.93,
297
+ "grad_norm": 3.934765100479126,
298
+ "learning_rate": 1.9878587196467992e-05,
299
+ "loss": 0.5071,
300
+ "step": 3237
301
+ },
302
+ {
303
+ "epoch": 1.98,
304
+ "grad_norm": 5.576645374298096,
305
+ "learning_rate": 1.8962472406181016e-05,
306
+ "loss": 0.5581,
307
+ "step": 3320
308
+ },
309
+ {
310
+ "epoch": 2.0,
311
+ "eval_accuracy": 0.7869487485101311,
312
+ "eval_f1_macro": 0.7652092723432848,
313
+ "eval_f1_micro": 0.7869487485101311,
314
+ "eval_f1_weighted": 0.7873025165202922,
315
+ "eval_loss": 0.4898335635662079,
316
+ "eval_precision_macro": 0.7664681493316189,
317
+ "eval_precision_micro": 0.7869487485101311,
318
+ "eval_precision_weighted": 0.7878104453780785,
319
+ "eval_recall_macro": 0.7640948741007194,
320
+ "eval_recall_micro": 0.7869487485101311,
321
+ "eval_recall_weighted": 0.7869487485101311,
322
+ "eval_runtime": 57.5629,
323
+ "eval_samples_per_second": 58.301,
324
+ "eval_steps_per_second": 3.648,
325
+ "step": 3356
326
+ }
327
+ ],
328
+ "logging_steps": 83,
329
+ "max_steps": 5034,
330
+ "num_input_tokens_seen": 0,
331
+ "num_train_epochs": 3,
332
+ "save_steps": 500,
333
+ "total_flos": 2.0803872442305577e+18,
334
+ "train_batch_size": 8,
335
+ "trial_name": null,
336
+ "trial_params": null
337
+ }
checkpoint-3356/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9624a1acf1caf112746e8b6c8308dcfd92635aa36074922449d4a2e1709e497
3
+ size 4920
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224",
3
+ "_num_labels": 4,
4
+ "architectures": [
5
+ "ViTForImageClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "encoder_stride": 16,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.0,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "anime_adult",
14
+ "1": "anime_contentious",
15
+ "2": "anime_non_adult",
16
+ "3": "non_anime"
17
+ },
18
+ "image_size": 224,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "anime_adult": 0,
23
+ "anime_contentious": 1,
24
+ "anime_non_adult": 2,
25
+ "non_anime": 3
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "model_type": "vit",
29
+ "num_attention_heads": 12,
30
+ "num_channels": 3,
31
+ "num_hidden_layers": 12,
32
+ "patch_size": 16,
33
+ "problem_type": "single_label_classification",
34
+ "qkv_bias": true,
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.38.0"
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a5c882b8ebd80720dd59761a5638988d236f90c50a67d18107570a2ea67660b
3
+ size 343230128
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
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9624a1acf1caf112746e8b6c8308dcfd92635aa36074922449d4a2e1709e497
3
+ size 4920
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "real-or-anime-age/autotrain-data",
3
+ "model": "google/vit-base-patch16-224",
4
+ "username": "antonioglass",
5
+ "lr": 5e-05,
6
+ "epochs": 3,
7
+ "batch_size": 8,
8
+ "warmup_ratio": 0.1,
9
+ "gradient_accumulation": 1,
10
+ "optimizer": "adamw_torch",
11
+ "scheduler": "linear",
12
+ "weight_decay": 0.0,
13
+ "max_grad_norm": 1.0,
14
+ "seed": 42,
15
+ "train_split": "train",
16
+ "valid_split": "validation",
17
+ "logging_steps": -1,
18
+ "project_name": "real-or-anime-age",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": "fp16",
21
+ "save_total_limit": 1,
22
+ "save_strategy": "epoch",
23
+ "push_to_hub": true,
24
+ "repo_id": "antonioglass/real-or-anime-age",
25
+ "evaluation_strategy": "epoch",
26
+ "image_column": "autotrain_image",
27
+ "target_column": "autotrain_label",
28
+ "log": "none"
29
+ }