yuanhuaisen commited on
Commit
873c0a6
1 Parent(s): a465b7e

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
+ - yuanhuaisen/autotrain-data-autotrain-55x6s-5uwoq
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.12345679012345678
25
+
26
+ f1_micro: 0.22727272727272727
27
+
28
+ f1_weighted: 0.08417508417508417
29
+
30
+ precision_macro: 0.07575757575757576
31
+
32
+ precision_micro: 0.22727272727272727
33
+
34
+ precision_weighted: 0.051652892561983466
35
+
36
+ recall_macro: 0.3333333333333333
37
+
38
+ recall_micro: 0.22727272727272727
39
+
40
+ recall_weighted: 0.22727272727272727
41
+
42
+ accuracy: 0.22727272727272727
checkpoint-44/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-44/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80f07e880bf367bbc9d2a24a8994687435c9697f41351d83fb43d8f63c79e456
3
+ size 343227052
checkpoint-44/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be0d677ec29274c468d83ae2adfeb4ce98e9b9367881ac43da8f2606d86fb97e
3
+ size 1640
checkpoint-44/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2b59168c324a527c54e84d460ec3e4cc50dc7b408e798d7dc01cc58c6d4c66f
3
+ size 14308
checkpoint-44/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:568b4092fe5f2747f46b3b3c6e6e0c8fe23d6f86bafcc38694a95b43c8ac044b
3
+ size 1064
checkpoint-44/trainer_state.json ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": NaN,
3
+ "best_model_checkpoint": "/tmp/model/checkpoint-44",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 44,
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
+ "learning_rate": 0.0,
14
+ "loss": 0.0,
15
+ "step": 2
16
+ },
17
+ {
18
+ "epoch": 0.09,
19
+ "learning_rate": 0.0,
20
+ "loss": 0.0,
21
+ "step": 4
22
+ },
23
+ {
24
+ "epoch": 0.14,
25
+ "learning_rate": 0.0,
26
+ "loss": 0.0,
27
+ "step": 6
28
+ },
29
+ {
30
+ "epoch": 0.18,
31
+ "learning_rate": 0.0,
32
+ "loss": 0.0,
33
+ "step": 8
34
+ },
35
+ {
36
+ "epoch": 0.23,
37
+ "learning_rate": 0.0,
38
+ "loss": 0.0,
39
+ "step": 10
40
+ },
41
+ {
42
+ "epoch": 0.27,
43
+ "learning_rate": 0.0,
44
+ "loss": 0.0,
45
+ "step": 12
46
+ },
47
+ {
48
+ "epoch": 0.32,
49
+ "learning_rate": 0.0,
50
+ "loss": 0.0,
51
+ "step": 14
52
+ },
53
+ {
54
+ "epoch": 0.36,
55
+ "learning_rate": 0.0,
56
+ "loss": 0.0,
57
+ "step": 16
58
+ },
59
+ {
60
+ "epoch": 0.41,
61
+ "learning_rate": 0.0,
62
+ "loss": 0.0,
63
+ "step": 18
64
+ },
65
+ {
66
+ "epoch": 0.45,
67
+ "learning_rate": 0.0,
68
+ "loss": 0.0,
69
+ "step": 20
70
+ },
71
+ {
72
+ "epoch": 0.5,
73
+ "learning_rate": 0.0,
74
+ "loss": 0.0,
75
+ "step": 22
76
+ },
77
+ {
78
+ "epoch": 0.55,
79
+ "learning_rate": 0.0,
80
+ "loss": 0.0,
81
+ "step": 24
82
+ },
83
+ {
84
+ "epoch": 0.59,
85
+ "learning_rate": 0.0,
86
+ "loss": 0.0,
87
+ "step": 26
88
+ },
89
+ {
90
+ "epoch": 0.64,
91
+ "learning_rate": 0.0,
92
+ "loss": 0.0,
93
+ "step": 28
94
+ },
95
+ {
96
+ "epoch": 0.68,
97
+ "learning_rate": 0.0,
98
+ "loss": 0.0,
99
+ "step": 30
100
+ },
101
+ {
102
+ "epoch": 0.73,
103
+ "learning_rate": 0.0,
104
+ "loss": 0.0,
105
+ "step": 32
106
+ },
107
+ {
108
+ "epoch": 0.77,
109
+ "learning_rate": 0.0,
110
+ "loss": 0.0,
111
+ "step": 34
112
+ },
113
+ {
114
+ "epoch": 0.82,
115
+ "learning_rate": 0.0,
116
+ "loss": 0.0,
117
+ "step": 36
118
+ },
119
+ {
120
+ "epoch": 0.86,
121
+ "learning_rate": 0.0,
122
+ "loss": 0.0,
123
+ "step": 38
124
+ },
125
+ {
126
+ "epoch": 0.91,
127
+ "learning_rate": 0.0,
128
+ "loss": 0.0,
129
+ "step": 40
130
+ },
131
+ {
132
+ "epoch": 0.95,
133
+ "learning_rate": 0.0,
134
+ "loss": 0.0,
135
+ "step": 42
136
+ },
137
+ {
138
+ "epoch": 1.0,
139
+ "learning_rate": 0.0,
140
+ "loss": 0.0,
141
+ "step": 44
142
+ },
143
+ {
144
+ "epoch": 1.0,
145
+ "eval_accuracy": 0.22727272727272727,
146
+ "eval_f1_macro": 0.12345679012345678,
147
+ "eval_f1_micro": 0.22727272727272727,
148
+ "eval_f1_weighted": 0.08417508417508417,
149
+ "eval_loss": NaN,
150
+ "eval_precision_macro": 0.07575757575757576,
151
+ "eval_precision_micro": 0.22727272727272727,
152
+ "eval_precision_weighted": 0.051652892561983466,
153
+ "eval_recall_macro": 0.3333333333333333,
154
+ "eval_recall_micro": 0.22727272727272727,
155
+ "eval_recall_weighted": 0.22727272727272727,
156
+ "eval_runtime": 2.6835,
157
+ "eval_samples_per_second": 32.793,
158
+ "eval_steps_per_second": 2.236,
159
+ "step": 44
160
+ }
161
+ ],
162
+ "logging_steps": 2,
163
+ "max_steps": 132,
164
+ "num_input_tokens_seen": 0,
165
+ "num_train_epochs": 3,
166
+ "save_steps": 500,
167
+ "total_flos": 2.727742482107597e+16,
168
+ "train_batch_size": 8,
169
+ "trial_name": null,
170
+ "trial_params": null
171
+ }
checkpoint-44/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f13ffdc36de4a694f819ec25dd36dd56f64b8ed6000c31fafc485699c6f5c0d
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:80f07e880bf367bbc9d2a24a8994687435c9697f41351d83fb43d8f63c79e456
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:8f13ffdc36de4a694f819ec25dd36dd56f64b8ed6000c31fafc485699c6f5c0d
3
+ size 4728
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "yuanhuaisen/autotrain-data-autotrain-55x6s-5uwoq",
3
+ "model": "google/vit-base-patch16-224",
4
+ "username": "yuanhuaisen",
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": "/tmp/model",
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": "yuanhuaisen/autotrain-55x6s-5uwoq",
25
+ "evaluation_strategy": "epoch",
26
+ "image_column": "autotrain_image",
27
+ "target_column": "autotrain_label",
28
+ "log": "none"
29
+ }