lxl2023 commited on
Commit
5210295
1 Parent(s): 62fc986

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
+ - lxl2023/autotrain-data-autotrain-wf2gy-dl7q8
15
+ ---
16
+
17
+ # Model Trained Using AutoTrain
18
+
19
+ - Problem type: Image Classification
20
+
21
+ ## Validation Metricsg
22
+ loss: 0.8730660676956177
23
+
24
+ f1_macro: 1.0
25
+
26
+ f1_micro: 1.0
27
+
28
+ f1_weighted: 1.0
29
+
30
+ precision_macro: 1.0
31
+
32
+ precision_micro: 1.0
33
+
34
+ precision_weighted: 1.0
35
+
36
+ recall_macro: 1.0
37
+
38
+ recall_micro: 1.0
39
+
40
+ recall_weighted: 1.0
41
+
42
+ accuracy: 1.0
checkpoint-10/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-10/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7084d9524d1212f73c93a390899a09ff1af3ba395ba6d06e8c0c192e1947f4a9
3
+ size 343227052
checkpoint-10/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3458341ff0fdeb596f2bb2cc538f422ab7b645a46d1110f508835a5934f391e
3
+ size 686569402
checkpoint-10/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edb3d205f2cd4d1c36d1811d6bce83d695d605d7f9bf5bf78be10c357a470e26
3
+ size 13990
checkpoint-10/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11a542abe7f685ce050f1714f11921361e7f10c88c1d863d855878381cdc5019
3
+ size 1064
checkpoint-10/trainer_state.json ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.8730660676956177,
3
+ "best_model_checkpoint": "/tmp/model/checkpoint-10",
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 10,
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.5,
13
+ "learning_rate": 0.00016666666666666666,
14
+ "loss": 1.0986,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 1.0,
19
+ "learning_rate": 0.0003333333333333333,
20
+ "loss": 1.0986,
21
+ "step": 2
22
+ },
23
+ {
24
+ "epoch": 1.0,
25
+ "eval_accuracy": 0.25,
26
+ "eval_f1_macro": 0.13333333333333333,
27
+ "eval_f1_micro": 0.25,
28
+ "eval_f1_weighted": 0.1,
29
+ "eval_loss": 1.0986123085021973,
30
+ "eval_precision_macro": 0.08333333333333333,
31
+ "eval_precision_micro": 0.25,
32
+ "eval_precision_weighted": 0.0625,
33
+ "eval_recall_macro": 0.3333333333333333,
34
+ "eval_recall_micro": 0.25,
35
+ "eval_recall_weighted": 0.25,
36
+ "eval_runtime": 1.2304,
37
+ "eval_samples_per_second": 3.251,
38
+ "eval_steps_per_second": 0.813,
39
+ "step": 2
40
+ },
41
+ {
42
+ "epoch": 1.5,
43
+ "learning_rate": 0.0005,
44
+ "loss": 1.0961,
45
+ "step": 3
46
+ },
47
+ {
48
+ "epoch": 2.0,
49
+ "learning_rate": 0.00042857142857142855,
50
+ "loss": 1.1095,
51
+ "step": 4
52
+ },
53
+ {
54
+ "epoch": 2.0,
55
+ "eval_accuracy": 0.25,
56
+ "eval_f1_macro": 0.13333333333333333,
57
+ "eval_f1_micro": 0.25,
58
+ "eval_f1_weighted": 0.1,
59
+ "eval_loss": 1.0986123085021973,
60
+ "eval_precision_macro": 0.08333333333333333,
61
+ "eval_precision_micro": 0.25,
62
+ "eval_precision_weighted": 0.0625,
63
+ "eval_recall_macro": 0.3333333333333333,
64
+ "eval_recall_micro": 0.25,
65
+ "eval_recall_weighted": 0.25,
66
+ "eval_runtime": 1.2033,
67
+ "eval_samples_per_second": 3.324,
68
+ "eval_steps_per_second": 0.831,
69
+ "step": 4
70
+ },
71
+ {
72
+ "epoch": 2.5,
73
+ "learning_rate": 0.00035714285714285714,
74
+ "loss": 1.0834,
75
+ "step": 5
76
+ },
77
+ {
78
+ "epoch": 3.0,
79
+ "learning_rate": 0.0002857142857142857,
80
+ "loss": 1.0603,
81
+ "step": 6
82
+ },
83
+ {
84
+ "epoch": 3.0,
85
+ "eval_accuracy": 0.5,
86
+ "eval_f1_macro": 0.38888888888888884,
87
+ "eval_f1_micro": 0.5,
88
+ "eval_f1_weighted": 0.4583333333333333,
89
+ "eval_loss": 1.0029972791671753,
90
+ "eval_precision_macro": 0.4444444444444444,
91
+ "eval_precision_micro": 0.5,
92
+ "eval_precision_weighted": 0.5833333333333334,
93
+ "eval_recall_macro": 0.5,
94
+ "eval_recall_micro": 0.5,
95
+ "eval_recall_weighted": 0.5,
96
+ "eval_runtime": 1.2155,
97
+ "eval_samples_per_second": 3.291,
98
+ "eval_steps_per_second": 0.823,
99
+ "step": 6
100
+ },
101
+ {
102
+ "epoch": 3.5,
103
+ "learning_rate": 0.00021428571428571427,
104
+ "loss": 1.0027,
105
+ "step": 7
106
+ },
107
+ {
108
+ "epoch": 4.0,
109
+ "learning_rate": 0.00014285714285714284,
110
+ "loss": 1.012,
111
+ "step": 8
112
+ },
113
+ {
114
+ "epoch": 4.0,
115
+ "eval_accuracy": 0.75,
116
+ "eval_f1_macro": 0.5555555555555555,
117
+ "eval_f1_micro": 0.75,
118
+ "eval_f1_weighted": 0.6666666666666666,
119
+ "eval_loss": 0.93815678358078,
120
+ "eval_precision_macro": 0.5,
121
+ "eval_precision_micro": 0.75,
122
+ "eval_precision_weighted": 0.625,
123
+ "eval_recall_macro": 0.6666666666666666,
124
+ "eval_recall_micro": 0.75,
125
+ "eval_recall_weighted": 0.75,
126
+ "eval_runtime": 1.2096,
127
+ "eval_samples_per_second": 3.307,
128
+ "eval_steps_per_second": 0.827,
129
+ "step": 8
130
+ },
131
+ {
132
+ "epoch": 4.5,
133
+ "learning_rate": 7.142857142857142e-05,
134
+ "loss": 0.9143,
135
+ "step": 9
136
+ },
137
+ {
138
+ "epoch": 5.0,
139
+ "learning_rate": 0.0,
140
+ "loss": 0.9452,
141
+ "step": 10
142
+ },
143
+ {
144
+ "epoch": 5.0,
145
+ "eval_accuracy": 1.0,
146
+ "eval_f1_macro": 1.0,
147
+ "eval_f1_micro": 1.0,
148
+ "eval_f1_weighted": 1.0,
149
+ "eval_loss": 0.8730660676956177,
150
+ "eval_precision_macro": 1.0,
151
+ "eval_precision_micro": 1.0,
152
+ "eval_precision_weighted": 1.0,
153
+ "eval_recall_macro": 1.0,
154
+ "eval_recall_micro": 1.0,
155
+ "eval_recall_weighted": 1.0,
156
+ "eval_runtime": 1.2396,
157
+ "eval_samples_per_second": 3.227,
158
+ "eval_steps_per_second": 0.807,
159
+ "step": 10
160
+ }
161
+ ],
162
+ "logging_steps": 1,
163
+ "max_steps": 10,
164
+ "num_input_tokens_seen": 0,
165
+ "num_train_epochs": 5,
166
+ "save_steps": 500,
167
+ "total_flos": 4649561049047040.0,
168
+ "train_batch_size": 8,
169
+ "trial_name": null,
170
+ "trial_params": null
171
+ }
checkpoint-10/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c41e02e0eb96d01e6212b8d6ce784b8162f0cc05152fd31997ca6e62464d6db
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:7084d9524d1212f73c93a390899a09ff1af3ba395ba6d06e8c0c192e1947f4a9
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:1c41e02e0eb96d01e6212b8d6ce784b8162f0cc05152fd31997ca6e62464d6db
3
+ size 4728
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "lxl2023/autotrain-data-autotrain-wf2gy-dl7q8",
3
+ "model": "google/vit-base-patch16-224",
4
+ "username": "lxl2023",
5
+ "lr": 0.0005,
6
+ "epochs": 5,
7
+ "batch_size": 8,
8
+ "warmup_ratio": 0.3,
9
+ "gradient_accumulation": 1,
10
+ "optimizer": "adamw_torch",
11
+ "scheduler": "linear",
12
+ "weight_decay": 0.0,
13
+ "max_grad_norm": 1.0,
14
+ "seed": 20,
15
+ "train_split": "train",
16
+ "valid_split": "validation",
17
+ "logging_steps": -1,
18
+ "project_name": "/tmp/model",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": "no",
21
+ "save_total_limit": 1,
22
+ "save_strategy": "epoch",
23
+ "push_to_hub": true,
24
+ "repo_id": "lxl2023/autotrain-wf2gy-dl7q8",
25
+ "evaluation_strategy": "epoch",
26
+ "image_column": "autotrain_image",
27
+ "target_column": "autotrain_label",
28
+ "log": "none"
29
+ }