ZhaoYoujia commited on
Commit
a12278a
1 Parent(s): fecd199

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
+ - autotrain-vit-base-v3/autotrain-data
15
+ ---
16
+
17
+ # Model Trained Using AutoTrain
18
+
19
+ - Problem type: Image Classification
20
+
21
+ ## Validation Metricsg
22
+ loss: nan
23
+
24
+ f1_macro: 0.11111111111111112
25
+
26
+ f1_micro: 0.19480519480519481
27
+
28
+ f1_weighted: 0.06493506493506494
29
+
30
+ precision_macro: 0.06666666666666667
31
+
32
+ precision_micro: 0.19480519480519481
33
+
34
+ precision_weighted: 0.03896103896103896
35
+
36
+ recall_macro: 0.3333333333333333
37
+
38
+ recall_micro: 0.19480519480519481
39
+
40
+ recall_weighted: 0.19480519480519481
41
+
42
+ accuracy: 0.19480519480519481
checkpoint-38/config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224",
3
+ "_num_labels": 3,
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": "11covered_with_a_quilt_and_only_the_head_exposed",
14
+ "1": "12covered_with_a_quilt_and_exposed_other_parts_of_the_body",
15
+ "2": "13has_nothing_to_do_with_11_and_12_above"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "11covered_with_a_quilt_and_only_the_head_exposed": 0,
22
+ "12covered_with_a_quilt_and_exposed_other_parts_of_the_body": 1,
23
+ "13has_nothing_to_do_with_11_and_12_above": 2
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "model_type": "vit",
27
+ "num_attention_heads": 12,
28
+ "num_channels": 3,
29
+ "num_hidden_layers": 12,
30
+ "patch_size": 16,
31
+ "problem_type": "single_label_classification",
32
+ "qkv_bias": true,
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.36.1"
35
+ }
checkpoint-38/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:336a1a61a78b2b14d37101bad881ad6d615630e757cc33980ba1646232b2611b
3
+ size 343227052
checkpoint-38/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be0d677ec29274c468d83ae2adfeb4ce98e9b9367881ac43da8f2606d86fb97e
3
+ size 1640
checkpoint-38/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95e4ced359d0b60524238603af0f5e810c5ca81150affb62b2efe71dc8762f43
3
+ size 14244
checkpoint-38/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:568b4092fe5f2747f46b3b3c6e6e0c8fe23d6f86bafcc38694a95b43c8ac044b
3
+ size 1064
checkpoint-38/trainer_state.json ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": NaN,
3
+ "best_model_checkpoint": "autotrain-vit-base-v3/checkpoint-38",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 38,
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.03,
13
+ "learning_rate": 0.0,
14
+ "loss": 0.0,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 0.05,
19
+ "learning_rate": 0.0,
20
+ "loss": 0.0,
21
+ "step": 2
22
+ },
23
+ {
24
+ "epoch": 0.08,
25
+ "learning_rate": 0.0,
26
+ "loss": 0.0,
27
+ "step": 3
28
+ },
29
+ {
30
+ "epoch": 0.11,
31
+ "learning_rate": 0.0,
32
+ "loss": 0.0,
33
+ "step": 4
34
+ },
35
+ {
36
+ "epoch": 0.13,
37
+ "learning_rate": 0.0,
38
+ "loss": 0.0,
39
+ "step": 5
40
+ },
41
+ {
42
+ "epoch": 0.16,
43
+ "learning_rate": 0.0,
44
+ "loss": 0.0,
45
+ "step": 6
46
+ },
47
+ {
48
+ "epoch": 0.18,
49
+ "learning_rate": 0.0,
50
+ "loss": 0.0,
51
+ "step": 7
52
+ },
53
+ {
54
+ "epoch": 0.21,
55
+ "learning_rate": 0.0,
56
+ "loss": 0.0,
57
+ "step": 8
58
+ },
59
+ {
60
+ "epoch": 0.24,
61
+ "learning_rate": 0.0,
62
+ "loss": 0.0,
63
+ "step": 9
64
+ },
65
+ {
66
+ "epoch": 0.26,
67
+ "learning_rate": 0.0,
68
+ "loss": 0.0,
69
+ "step": 10
70
+ },
71
+ {
72
+ "epoch": 0.29,
73
+ "learning_rate": 0.0,
74
+ "loss": 0.0,
75
+ "step": 11
76
+ },
77
+ {
78
+ "epoch": 0.32,
79
+ "learning_rate": 0.0,
80
+ "loss": 0.0,
81
+ "step": 12
82
+ },
83
+ {
84
+ "epoch": 0.34,
85
+ "learning_rate": 0.0,
86
+ "loss": 0.0,
87
+ "step": 13
88
+ },
89
+ {
90
+ "epoch": 0.37,
91
+ "learning_rate": 0.0,
92
+ "loss": 0.0,
93
+ "step": 14
94
+ },
95
+ {
96
+ "epoch": 0.39,
97
+ "learning_rate": 0.0,
98
+ "loss": 0.0,
99
+ "step": 15
100
+ },
101
+ {
102
+ "epoch": 0.42,
103
+ "learning_rate": 0.0,
104
+ "loss": 0.0,
105
+ "step": 16
106
+ },
107
+ {
108
+ "epoch": 0.45,
109
+ "learning_rate": 0.0,
110
+ "loss": 0.0,
111
+ "step": 17
112
+ },
113
+ {
114
+ "epoch": 0.47,
115
+ "learning_rate": 0.0,
116
+ "loss": 0.0,
117
+ "step": 18
118
+ },
119
+ {
120
+ "epoch": 0.5,
121
+ "learning_rate": 0.0,
122
+ "loss": 0.0,
123
+ "step": 19
124
+ },
125
+ {
126
+ "epoch": 0.53,
127
+ "learning_rate": 0.0,
128
+ "loss": 0.0,
129
+ "step": 20
130
+ },
131
+ {
132
+ "epoch": 0.55,
133
+ "learning_rate": 0.0,
134
+ "loss": 0.0,
135
+ "step": 21
136
+ },
137
+ {
138
+ "epoch": 0.58,
139
+ "learning_rate": 0.0,
140
+ "loss": 0.0,
141
+ "step": 22
142
+ },
143
+ {
144
+ "epoch": 0.61,
145
+ "learning_rate": 0.0,
146
+ "loss": 0.0,
147
+ "step": 23
148
+ },
149
+ {
150
+ "epoch": 0.63,
151
+ "learning_rate": 0.0,
152
+ "loss": 0.0,
153
+ "step": 24
154
+ },
155
+ {
156
+ "epoch": 0.66,
157
+ "learning_rate": 0.0,
158
+ "loss": 0.0,
159
+ "step": 25
160
+ },
161
+ {
162
+ "epoch": 0.68,
163
+ "learning_rate": 0.0,
164
+ "loss": 0.0,
165
+ "step": 26
166
+ },
167
+ {
168
+ "epoch": 0.71,
169
+ "learning_rate": 0.0,
170
+ "loss": 0.0,
171
+ "step": 27
172
+ },
173
+ {
174
+ "epoch": 0.74,
175
+ "learning_rate": 0.0,
176
+ "loss": 0.0,
177
+ "step": 28
178
+ },
179
+ {
180
+ "epoch": 0.76,
181
+ "learning_rate": 0.0,
182
+ "loss": 0.0,
183
+ "step": 29
184
+ },
185
+ {
186
+ "epoch": 0.79,
187
+ "learning_rate": 0.0,
188
+ "loss": 0.0,
189
+ "step": 30
190
+ },
191
+ {
192
+ "epoch": 0.82,
193
+ "learning_rate": 0.0,
194
+ "loss": 0.0,
195
+ "step": 31
196
+ },
197
+ {
198
+ "epoch": 0.84,
199
+ "learning_rate": 0.0,
200
+ "loss": 0.0,
201
+ "step": 32
202
+ },
203
+ {
204
+ "epoch": 0.87,
205
+ "learning_rate": 0.0,
206
+ "loss": 0.0,
207
+ "step": 33
208
+ },
209
+ {
210
+ "epoch": 0.89,
211
+ "learning_rate": 0.0,
212
+ "loss": 0.0,
213
+ "step": 34
214
+ },
215
+ {
216
+ "epoch": 0.92,
217
+ "learning_rate": 0.0,
218
+ "loss": 0.0,
219
+ "step": 35
220
+ },
221
+ {
222
+ "epoch": 0.95,
223
+ "learning_rate": 0.0,
224
+ "loss": 0.0,
225
+ "step": 36
226
+ },
227
+ {
228
+ "epoch": 0.97,
229
+ "learning_rate": 0.0,
230
+ "loss": 0.0,
231
+ "step": 37
232
+ },
233
+ {
234
+ "epoch": 1.0,
235
+ "learning_rate": 0.0,
236
+ "loss": 0.0,
237
+ "step": 38
238
+ },
239
+ {
240
+ "epoch": 1.0,
241
+ "eval_accuracy": 0.19480519480519481,
242
+ "eval_f1_macro": 0.11111111111111112,
243
+ "eval_f1_micro": 0.19480519480519481,
244
+ "eval_f1_weighted": 0.06493506493506494,
245
+ "eval_loss": NaN,
246
+ "eval_precision_macro": 0.06666666666666667,
247
+ "eval_precision_micro": 0.19480519480519481,
248
+ "eval_precision_weighted": 0.03896103896103896,
249
+ "eval_recall_macro": 0.3333333333333333,
250
+ "eval_recall_micro": 0.19480519480519481,
251
+ "eval_recall_weighted": 0.19480519480519481,
252
+ "eval_runtime": 2.9317,
253
+ "eval_samples_per_second": 26.264,
254
+ "eval_steps_per_second": 1.705,
255
+ "step": 38
256
+ }
257
+ ],
258
+ "logging_steps": 1,
259
+ "max_steps": 380,
260
+ "num_input_tokens_seen": 0,
261
+ "num_train_epochs": 10,
262
+ "save_steps": 500,
263
+ "total_flos": 2.3557775981838336e+16,
264
+ "train_batch_size": 8,
265
+ "trial_name": null,
266
+ "trial_params": null
267
+ }
checkpoint-38/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60480782e6eb7e16567fb3aa2f1cd122882646b1c76f65279569692a1fba64c7
3
+ size 4728
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224",
3
+ "_num_labels": 3,
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": "11covered_with_a_quilt_and_only_the_head_exposed",
14
+ "1": "12covered_with_a_quilt_and_exposed_other_parts_of_the_body",
15
+ "2": "13has_nothing_to_do_with_11_and_12_above"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "11covered_with_a_quilt_and_only_the_head_exposed": 0,
22
+ "12covered_with_a_quilt_and_exposed_other_parts_of_the_body": 1,
23
+ "13has_nothing_to_do_with_11_and_12_above": 2
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "model_type": "vit",
27
+ "num_attention_heads": 12,
28
+ "num_channels": 3,
29
+ "num_hidden_layers": 12,
30
+ "patch_size": 16,
31
+ "problem_type": "single_label_classification",
32
+ "qkv_bias": true,
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.36.1"
35
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:336a1a61a78b2b14d37101bad881ad6d615630e757cc33980ba1646232b2611b
3
+ size 343227052
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:60480782e6eb7e16567fb3aa2f1cd122882646b1c76f65279569692a1fba64c7
3
+ size 4728
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "autotrain-vit-base-v3/autotrain-data",
3
+ "model": "google/vit-base-patch16-224",
4
+ "username": "ZhaoYoujia",
5
+ "lr": 5e-05,
6
+ "epochs": 10,
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": "autotrain-vit-base-v3",
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": "ZhaoYoujia/autotrain-vit-base-v3",
25
+ "evaluation_strategy": "epoch",
26
+ "image_column": "autotrain_image",
27
+ "target_column": "autotrain_label",
28
+ "log": "none"
29
+ }