iamcloud commited on
Commit
991155f
·
verified ·
1 Parent(s): 194852a

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - autotrain
5
+ - image-classification
6
+ base_model: google/vit-base-patch16-224
7
+ widget:
8
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
9
+ example_title: Tiger
10
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
11
+ example_title: Teapot
12
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
13
+ example_title: Palace
14
+ ---
15
+
16
+ # Model Trained Using AutoTrain
17
+
18
+ - Problem type: Image Classification
19
+
20
+ ## Validation Metrics
21
+ loss: 0.6069164872169495
22
+
23
+ f1_macro: 0.47612925723870253
24
+
25
+ f1_micro: 0.7184986595174263
26
+
27
+ f1_weighted: 0.7080336230828008
28
+
29
+ precision_macro: 0.5134762379528083
30
+
31
+ precision_micro: 0.7184986595174263
32
+
33
+ precision_weighted: 0.7786303288525843
34
+
35
+ recall_macro: 0.4920582814179348
36
+
37
+ recall_micro: 0.7184986595174263
38
+
39
+ recall_weighted: 0.7184986595174263
40
+
41
+ accuracy: 0.7184986595174263
checkpoint-498/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": "test",
14
+ "1": "train",
15
+ "2": "valid"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "test": 0,
22
+ "train": 1,
23
+ "valid": 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.47.1"
35
+ }
checkpoint-498/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7a3d3681191063319a3db34ba94e2d36b160cf3996b4ec73400fbae9d156bf7
3
+ size 343227052
checkpoint-498/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5c1edaf50ff154632e2c095566594efdd7f0a944184d114b94ca8064ede258b
3
+ size 686569402
checkpoint-498/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f56790c3ee491baab329d1fe00f10cb0b9f5114649fad9b4021437c861c9b810
3
+ size 13990
checkpoint-498/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f1cc59f2f3d96abe0c1dc8563fe183f40f80b53e8c891fa3828156f5faa3a96
3
+ size 1064
checkpoint-498/trainer_state.json ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.6069164872169495,
3
+ "best_model_checkpoint": "Ruster/checkpoint-498",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 498,
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.07228915662650602,
13
+ "grad_norm": 10.613821983337402,
14
+ "learning_rate": 1.2e-05,
15
+ "loss": 0.9401,
16
+ "step": 18
17
+ },
18
+ {
19
+ "epoch": 0.14457831325301204,
20
+ "grad_norm": 6.847902297973633,
21
+ "learning_rate": 2.4e-05,
22
+ "loss": 0.4535,
23
+ "step": 36
24
+ },
25
+ {
26
+ "epoch": 0.21686746987951808,
27
+ "grad_norm": 14.905878067016602,
28
+ "learning_rate": 3.6e-05,
29
+ "loss": 0.4731,
30
+ "step": 54
31
+ },
32
+ {
33
+ "epoch": 0.2891566265060241,
34
+ "grad_norm": 5.860299587249756,
35
+ "learning_rate": 4.8e-05,
36
+ "loss": 0.3857,
37
+ "step": 72
38
+ },
39
+ {
40
+ "epoch": 0.3614457831325301,
41
+ "grad_norm": 8.051860809326172,
42
+ "learning_rate": 4.888392857142857e-05,
43
+ "loss": 0.428,
44
+ "step": 90
45
+ },
46
+ {
47
+ "epoch": 0.43373493975903615,
48
+ "grad_norm": 9.066169738769531,
49
+ "learning_rate": 4.7544642857142855e-05,
50
+ "loss": 0.3779,
51
+ "step": 108
52
+ },
53
+ {
54
+ "epoch": 0.5060240963855421,
55
+ "grad_norm": 0.4762527346611023,
56
+ "learning_rate": 4.620535714285715e-05,
57
+ "loss": 0.3174,
58
+ "step": 126
59
+ },
60
+ {
61
+ "epoch": 0.5783132530120482,
62
+ "grad_norm": 3.7264981269836426,
63
+ "learning_rate": 4.486607142857143e-05,
64
+ "loss": 0.3903,
65
+ "step": 144
66
+ },
67
+ {
68
+ "epoch": 0.6506024096385542,
69
+ "grad_norm": 3.319960117340088,
70
+ "learning_rate": 4.352678571428572e-05,
71
+ "loss": 0.2664,
72
+ "step": 162
73
+ },
74
+ {
75
+ "epoch": 0.7228915662650602,
76
+ "grad_norm": 8.442005157470703,
77
+ "learning_rate": 4.21875e-05,
78
+ "loss": 0.4303,
79
+ "step": 180
80
+ },
81
+ {
82
+ "epoch": 0.7951807228915663,
83
+ "grad_norm": 5.5674729347229,
84
+ "learning_rate": 4.084821428571429e-05,
85
+ "loss": 0.3758,
86
+ "step": 198
87
+ },
88
+ {
89
+ "epoch": 0.8674698795180723,
90
+ "grad_norm": 5.097784042358398,
91
+ "learning_rate": 3.950892857142857e-05,
92
+ "loss": 0.4321,
93
+ "step": 216
94
+ },
95
+ {
96
+ "epoch": 0.9397590361445783,
97
+ "grad_norm": 4.135376930236816,
98
+ "learning_rate": 3.816964285714286e-05,
99
+ "loss": 0.3334,
100
+ "step": 234
101
+ },
102
+ {
103
+ "epoch": 1.0,
104
+ "eval_accuracy": 0.5683646112600537,
105
+ "eval_f1_macro": 0.34514324233232224,
106
+ "eval_f1_micro": 0.5683646112600537,
107
+ "eval_f1_weighted": 0.5027366446460666,
108
+ "eval_loss": 0.8362799286842346,
109
+ "eval_precision_macro": 0.4779331485680692,
110
+ "eval_precision_micro": 0.5683646112600537,
111
+ "eval_precision_weighted": 0.7304906422900805,
112
+ "eval_recall_macro": 0.40111757925912955,
113
+ "eval_recall_micro": 0.5683646112600537,
114
+ "eval_recall_weighted": 0.5683646112600537,
115
+ "eval_runtime": 197.9274,
116
+ "eval_samples_per_second": 3.769,
117
+ "eval_steps_per_second": 0.237,
118
+ "step": 249
119
+ },
120
+ {
121
+ "epoch": 1.0120481927710843,
122
+ "grad_norm": 2.6794259548187256,
123
+ "learning_rate": 3.683035714285715e-05,
124
+ "loss": 0.3526,
125
+ "step": 252
126
+ },
127
+ {
128
+ "epoch": 1.0843373493975903,
129
+ "grad_norm": 2.575113296508789,
130
+ "learning_rate": 3.5491071428571435e-05,
131
+ "loss": 0.2409,
132
+ "step": 270
133
+ },
134
+ {
135
+ "epoch": 1.1566265060240963,
136
+ "grad_norm": 20.131845474243164,
137
+ "learning_rate": 3.415178571428572e-05,
138
+ "loss": 0.57,
139
+ "step": 288
140
+ },
141
+ {
142
+ "epoch": 1.2289156626506024,
143
+ "grad_norm": 1.7430191040039062,
144
+ "learning_rate": 3.2812500000000005e-05,
145
+ "loss": 0.2363,
146
+ "step": 306
147
+ },
148
+ {
149
+ "epoch": 1.3012048192771084,
150
+ "grad_norm": 2.6502227783203125,
151
+ "learning_rate": 3.147321428571428e-05,
152
+ "loss": 0.4027,
153
+ "step": 324
154
+ },
155
+ {
156
+ "epoch": 1.3734939759036144,
157
+ "grad_norm": 0.4510114789009094,
158
+ "learning_rate": 3.013392857142857e-05,
159
+ "loss": 0.1746,
160
+ "step": 342
161
+ },
162
+ {
163
+ "epoch": 1.4457831325301205,
164
+ "grad_norm": 1.9941872358322144,
165
+ "learning_rate": 2.8794642857142857e-05,
166
+ "loss": 0.3129,
167
+ "step": 360
168
+ },
169
+ {
170
+ "epoch": 1.5180722891566265,
171
+ "grad_norm": 2.4119579792022705,
172
+ "learning_rate": 2.7455357142857145e-05,
173
+ "loss": 0.3607,
174
+ "step": 378
175
+ },
176
+ {
177
+ "epoch": 1.5903614457831325,
178
+ "grad_norm": 3.2550156116485596,
179
+ "learning_rate": 2.611607142857143e-05,
180
+ "loss": 0.2441,
181
+ "step": 396
182
+ },
183
+ {
184
+ "epoch": 1.6626506024096386,
185
+ "grad_norm": 1.5980372428894043,
186
+ "learning_rate": 2.4776785714285715e-05,
187
+ "loss": 0.2501,
188
+ "step": 414
189
+ },
190
+ {
191
+ "epoch": 1.7349397590361446,
192
+ "grad_norm": 7.059596538543701,
193
+ "learning_rate": 2.34375e-05,
194
+ "loss": 0.41,
195
+ "step": 432
196
+ },
197
+ {
198
+ "epoch": 1.8072289156626506,
199
+ "grad_norm": 1.7965036630630493,
200
+ "learning_rate": 2.2098214285714286e-05,
201
+ "loss": 0.323,
202
+ "step": 450
203
+ },
204
+ {
205
+ "epoch": 1.8795180722891565,
206
+ "grad_norm": 7.194454669952393,
207
+ "learning_rate": 2.0758928571428574e-05,
208
+ "loss": 0.3068,
209
+ "step": 468
210
+ },
211
+ {
212
+ "epoch": 1.9518072289156625,
213
+ "grad_norm": 3.057166814804077,
214
+ "learning_rate": 1.941964285714286e-05,
215
+ "loss": 0.3792,
216
+ "step": 486
217
+ },
218
+ {
219
+ "epoch": 2.0,
220
+ "eval_accuracy": 0.7184986595174263,
221
+ "eval_f1_macro": 0.47612925723870253,
222
+ "eval_f1_micro": 0.7184986595174263,
223
+ "eval_f1_weighted": 0.7080336230828008,
224
+ "eval_loss": 0.6069164872169495,
225
+ "eval_precision_macro": 0.5134762379528083,
226
+ "eval_precision_micro": 0.7184986595174263,
227
+ "eval_precision_weighted": 0.7786303288525843,
228
+ "eval_recall_macro": 0.4920582814179348,
229
+ "eval_recall_micro": 0.7184986595174263,
230
+ "eval_recall_weighted": 0.7184986595174263,
231
+ "eval_runtime": 193.5156,
232
+ "eval_samples_per_second": 3.855,
233
+ "eval_steps_per_second": 0.243,
234
+ "step": 498
235
+ }
236
+ ],
237
+ "logging_steps": 18,
238
+ "max_steps": 747,
239
+ "num_input_tokens_seen": 0,
240
+ "num_train_epochs": 3,
241
+ "save_steps": 500,
242
+ "stateful_callbacks": {
243
+ "EarlyStoppingCallback": {
244
+ "args": {
245
+ "early_stopping_patience": 5,
246
+ "early_stopping_threshold": 0.01
247
+ },
248
+ "attributes": {
249
+ "early_stopping_patience_counter": 0
250
+ }
251
+ },
252
+ "TrainerControl": {
253
+ "args": {
254
+ "should_epoch_stop": false,
255
+ "should_evaluate": false,
256
+ "should_log": false,
257
+ "should_save": true,
258
+ "should_training_stop": false
259
+ },
260
+ "attributes": {}
261
+ }
262
+ },
263
+ "total_flos": 3.076459560786125e+17,
264
+ "train_batch_size": 8,
265
+ "trial_name": null,
266
+ "trial_params": null
267
+ }
checkpoint-498/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:694b399ca479bea50c3de20b09a2bbf5b93e1888bcfc9d197fcde0013346ab59
3
+ size 5368
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": "test",
14
+ "1": "train",
15
+ "2": "valid"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "test": 0,
22
+ "train": 1,
23
+ "valid": 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.47.1"
35
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7a3d3681191063319a3db34ba94e2d36b160cf3996b4ec73400fbae9d156bf7
3
+ size 343227052
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": null,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "ViTImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 224,
21
+ "width": 224
22
+ }
23
+ }
runs/Dec29_07-34-20_r-iamcloud-rust-detection-gfa7m9pe-47eca-jzdr1/events.out.tfevents.1735457661.r-iamcloud-rust-detection-gfa7m9pe-47eca-jzdr1.231.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:01b624cdbf67393d64d26c3bdab48c1f1e1e48ded23cd8a003f05a85cd6d9100
3
- size 14746
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01a6b641143920137abaa3dbb52898bb406b02e10fb152c0f3eb9d8a7ca49d9e
3
+ size 16566
runs/Dec29_07-34-20_r-iamcloud-rust-detection-gfa7m9pe-47eca-jzdr1/events.out.tfevents.1735463616.r-iamcloud-rust-detection-gfa7m9pe-47eca-jzdr1.231.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bc005b7ffdca1768dd8684cc28fa9ee51b6c18adbaa7b438d6184288311ef19
3
+ size 921
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:694b399ca479bea50c3de20b09a2bbf5b93e1888bcfc9d197fcde0013346ab59
3
+ size 5368
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "Ruster/autotrain-data",
3
+ "model": "google/vit-base-patch16-224",
4
+ "username": "iamcloud",
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": "Ruster",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": "fp16",
21
+ "save_total_limit": 1,
22
+ "push_to_hub": true,
23
+ "eval_strategy": "epoch",
24
+ "image_column": "autotrain_image",
25
+ "target_column": "autotrain_label",
26
+ "log": "tensorboard",
27
+ "early_stopping_patience": 5,
28
+ "early_stopping_threshold": 0.01
29
+ }