fashxp commited on
Commit
abff153
1 Parent(s): 0243b23

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
+ - cars-countries-2/autotrain-data
15
+ ---
16
+
17
+ # Model Trained Using AutoTrain
18
+
19
+ - Problem type: Image Classification
20
+
21
+ ## Validation Metricsg
22
+ loss: 0.7695896625518799
23
+
24
+ f1_macro: 0.6246525462930008
25
+
26
+ f1_micro: 0.7667984189723321
27
+
28
+ f1_weighted: 0.7486990681361966
29
+
30
+ precision_macro: 0.6264646464646464
31
+
32
+ precision_micro: 0.766798418972332
33
+
34
+ precision_weighted: 0.7372225929538182
35
+
36
+ recall_macro: 0.6284365875018805
37
+
38
+ recall_micro: 0.766798418972332
39
+
40
+ recall_weighted: 0.766798418972332
41
+
42
+ accuracy: 0.766798418972332
checkpoint-96/config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/convnextv2-base-22k-384",
3
+ "_num_labels": 5,
4
+ "architectures": [
5
+ "ConvNextV2ForImageClassification"
6
+ ],
7
+ "depths": [
8
+ 3,
9
+ 3,
10
+ 27,
11
+ 3
12
+ ],
13
+ "drop_path_rate": 0.0,
14
+ "hidden_act": "gelu",
15
+ "hidden_sizes": [
16
+ 128,
17
+ 256,
18
+ 512,
19
+ 1024
20
+ ],
21
+ "id2label": {
22
+ "0": "France",
23
+ "1": "Germany",
24
+ "2": "Italy",
25
+ "3": "United Kingdom",
26
+ "4": "United States"
27
+ },
28
+ "image_size": 224,
29
+ "initializer_range": 0.02,
30
+ "label2id": {
31
+ "France": 0,
32
+ "Germany": 1,
33
+ "Italy": 2,
34
+ "United Kingdom": 3,
35
+ "United States": 4
36
+ },
37
+ "layer_norm_eps": 1e-12,
38
+ "model_type": "convnextv2",
39
+ "num_channels": 3,
40
+ "num_stages": 4,
41
+ "out_features": [
42
+ "stage4"
43
+ ],
44
+ "out_indices": [
45
+ 4
46
+ ],
47
+ "patch_size": 4,
48
+ "problem_type": "single_label_classification",
49
+ "stage_names": [
50
+ "stem",
51
+ "stage1",
52
+ "stage2",
53
+ "stage3",
54
+ "stage4"
55
+ ],
56
+ "torch_dtype": "float32",
57
+ "transformers_version": "4.38.0"
58
+ }
checkpoint-96/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:deaffa5b029ced5ebf48674b9ac318dfd34778200805b028f57a9d3b6b49c768
3
+ size 350837748
checkpoint-96/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:777aade54267b8cd2ccc1bf337b0b38639d6dcfdcc8ec6608c792080bb86f39d
3
+ size 701903686
checkpoint-96/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b20dce36c3f5367ca7d8e78415fdd064e8585fdbf170b31c3f76bee6c2669d92
3
+ size 14244
checkpoint-96/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0a5f856f8a52626ce42cecef29c708cdba0d51679ec21e81abfe0ecaaaf8b20
3
+ size 1064
checkpoint-96/trainer_state.json ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.7695896625518799,
3
+ "best_model_checkpoint": "cars-countries-2/checkpoint-96",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 96,
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.19,
13
+ "grad_norm": 19.978694915771484,
14
+ "learning_rate": 3e-05,
15
+ "loss": 1.641,
16
+ "step": 6
17
+ },
18
+ {
19
+ "epoch": 0.38,
20
+ "grad_norm": 20.944360733032227,
21
+ "learning_rate": 4.883720930232558e-05,
22
+ "loss": 1.4709,
23
+ "step": 12
24
+ },
25
+ {
26
+ "epoch": 0.56,
27
+ "grad_norm": 18.03103256225586,
28
+ "learning_rate": 4.5348837209302326e-05,
29
+ "loss": 1.5295,
30
+ "step": 18
31
+ },
32
+ {
33
+ "epoch": 0.75,
34
+ "grad_norm": 27.134418487548828,
35
+ "learning_rate": 4.186046511627907e-05,
36
+ "loss": 1.3794,
37
+ "step": 24
38
+ },
39
+ {
40
+ "epoch": 0.94,
41
+ "grad_norm": 19.17314338684082,
42
+ "learning_rate": 3.837209302325582e-05,
43
+ "loss": 1.3094,
44
+ "step": 30
45
+ },
46
+ {
47
+ "epoch": 1.0,
48
+ "eval_accuracy": 0.6245059288537549,
49
+ "eval_f1_macro": 0.4611470722260195,
50
+ "eval_f1_micro": 0.6245059288537549,
51
+ "eval_f1_weighted": 0.5816204385379546,
52
+ "eval_loss": 1.1409990787506104,
53
+ "eval_precision_macro": 0.5149489658877249,
54
+ "eval_precision_micro": 0.6245059288537549,
55
+ "eval_precision_weighted": 0.6051114533202961,
56
+ "eval_recall_macro": 0.481687842872056,
57
+ "eval_recall_micro": 0.6245059288537549,
58
+ "eval_recall_weighted": 0.6245059288537549,
59
+ "eval_runtime": 13.8822,
60
+ "eval_samples_per_second": 18.225,
61
+ "eval_steps_per_second": 1.153,
62
+ "step": 32
63
+ },
64
+ {
65
+ "epoch": 1.12,
66
+ "grad_norm": 26.034481048583984,
67
+ "learning_rate": 3.488372093023256e-05,
68
+ "loss": 1.356,
69
+ "step": 36
70
+ },
71
+ {
72
+ "epoch": 1.31,
73
+ "grad_norm": 32.21238327026367,
74
+ "learning_rate": 3.13953488372093e-05,
75
+ "loss": 1.1365,
76
+ "step": 42
77
+ },
78
+ {
79
+ "epoch": 1.5,
80
+ "grad_norm": 14.95024585723877,
81
+ "learning_rate": 2.7906976744186048e-05,
82
+ "loss": 1.1851,
83
+ "step": 48
84
+ },
85
+ {
86
+ "epoch": 1.69,
87
+ "grad_norm": 21.85967445373535,
88
+ "learning_rate": 2.441860465116279e-05,
89
+ "loss": 1.241,
90
+ "step": 54
91
+ },
92
+ {
93
+ "epoch": 1.88,
94
+ "grad_norm": 19.72938346862793,
95
+ "learning_rate": 2.0930232558139536e-05,
96
+ "loss": 1.2434,
97
+ "step": 60
98
+ },
99
+ {
100
+ "epoch": 2.0,
101
+ "eval_accuracy": 0.7391304347826086,
102
+ "eval_f1_macro": 0.5866211335145526,
103
+ "eval_f1_micro": 0.7391304347826085,
104
+ "eval_f1_weighted": 0.7170636429955617,
105
+ "eval_loss": 0.8861498832702637,
106
+ "eval_precision_macro": 0.6076194125159643,
107
+ "eval_precision_micro": 0.7391304347826086,
108
+ "eval_precision_weighted": 0.7257029566025068,
109
+ "eval_recall_macro": 0.5942574512111044,
110
+ "eval_recall_micro": 0.7391304347826086,
111
+ "eval_recall_weighted": 0.7391304347826086,
112
+ "eval_runtime": 13.7679,
113
+ "eval_samples_per_second": 18.376,
114
+ "eval_steps_per_second": 1.162,
115
+ "step": 64
116
+ },
117
+ {
118
+ "epoch": 2.06,
119
+ "grad_norm": 21.776134490966797,
120
+ "learning_rate": 1.744186046511628e-05,
121
+ "loss": 1.1244,
122
+ "step": 66
123
+ },
124
+ {
125
+ "epoch": 2.25,
126
+ "grad_norm": 14.220891952514648,
127
+ "learning_rate": 1.3953488372093024e-05,
128
+ "loss": 0.9592,
129
+ "step": 72
130
+ },
131
+ {
132
+ "epoch": 2.44,
133
+ "grad_norm": 21.381629943847656,
134
+ "learning_rate": 1.0465116279069768e-05,
135
+ "loss": 0.9906,
136
+ "step": 78
137
+ },
138
+ {
139
+ "epoch": 2.62,
140
+ "grad_norm": 28.782506942749023,
141
+ "learning_rate": 6.976744186046512e-06,
142
+ "loss": 0.9959,
143
+ "step": 84
144
+ },
145
+ {
146
+ "epoch": 2.81,
147
+ "grad_norm": 46.719451904296875,
148
+ "learning_rate": 3.488372093023256e-06,
149
+ "loss": 0.9747,
150
+ "step": 90
151
+ },
152
+ {
153
+ "epoch": 3.0,
154
+ "grad_norm": 17.182865142822266,
155
+ "learning_rate": 0.0,
156
+ "loss": 0.9275,
157
+ "step": 96
158
+ },
159
+ {
160
+ "epoch": 3.0,
161
+ "eval_accuracy": 0.766798418972332,
162
+ "eval_f1_macro": 0.6246525462930008,
163
+ "eval_f1_micro": 0.7667984189723321,
164
+ "eval_f1_weighted": 0.7486990681361966,
165
+ "eval_loss": 0.7695896625518799,
166
+ "eval_precision_macro": 0.6264646464646464,
167
+ "eval_precision_micro": 0.766798418972332,
168
+ "eval_precision_weighted": 0.7372225929538182,
169
+ "eval_recall_macro": 0.6284365875018805,
170
+ "eval_recall_micro": 0.766798418972332,
171
+ "eval_recall_weighted": 0.766798418972332,
172
+ "eval_runtime": 13.8721,
173
+ "eval_samples_per_second": 18.238,
174
+ "eval_steps_per_second": 1.153,
175
+ "step": 96
176
+ }
177
+ ],
178
+ "logging_steps": 6,
179
+ "max_steps": 96,
180
+ "num_input_tokens_seen": 0,
181
+ "num_train_epochs": 3,
182
+ "save_steps": 500,
183
+ "total_flos": 1.766713173958656e+17,
184
+ "train_batch_size": 8,
185
+ "trial_name": null,
186
+ "trial_params": null
187
+ }
checkpoint-96/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a4db01c98d3835ba91604a6ff0f5f7e769be7a26bbda2c729dafb4d167f58dd
3
+ size 4920
config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/convnextv2-base-22k-384",
3
+ "_num_labels": 5,
4
+ "architectures": [
5
+ "ConvNextV2ForImageClassification"
6
+ ],
7
+ "depths": [
8
+ 3,
9
+ 3,
10
+ 27,
11
+ 3
12
+ ],
13
+ "drop_path_rate": 0.0,
14
+ "hidden_act": "gelu",
15
+ "hidden_sizes": [
16
+ 128,
17
+ 256,
18
+ 512,
19
+ 1024
20
+ ],
21
+ "id2label": {
22
+ "0": "France",
23
+ "1": "Germany",
24
+ "2": "Italy",
25
+ "3": "United Kingdom",
26
+ "4": "United States"
27
+ },
28
+ "image_size": 224,
29
+ "initializer_range": 0.02,
30
+ "label2id": {
31
+ "France": 0,
32
+ "Germany": 1,
33
+ "Italy": 2,
34
+ "United Kingdom": 3,
35
+ "United States": 4
36
+ },
37
+ "layer_norm_eps": 1e-12,
38
+ "model_type": "convnextv2",
39
+ "num_channels": 3,
40
+ "num_stages": 4,
41
+ "out_features": [
42
+ "stage4"
43
+ ],
44
+ "out_indices": [
45
+ 4
46
+ ],
47
+ "patch_size": 4,
48
+ "problem_type": "single_label_classification",
49
+ "stage_names": [
50
+ "stem",
51
+ "stage1",
52
+ "stage2",
53
+ "stage3",
54
+ "stage4"
55
+ ],
56
+ "torch_dtype": "float32",
57
+ "transformers_version": "4.38.0"
58
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:deaffa5b029ced5ebf48674b9ac318dfd34778200805b028f57a9d3b6b49c768
3
+ size 350837748
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_pct": 0.875,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_processor_type": "ConvNextImageProcessor",
12
+ "image_std": [
13
+ 0.229,
14
+ 0.224,
15
+ 0.225
16
+ ],
17
+ "resample": 3,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "shortest_edge": 384
21
+ }
22
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a4db01c98d3835ba91604a6ff0f5f7e769be7a26bbda2c729dafb4d167f58dd
3
+ size 4920
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "cars-countries-2/autotrain-data",
3
+ "model": "facebook/convnextv2-base-22k-384",
4
+ "username": "fashxp",
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": "cars-countries-2",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": null,
21
+ "save_total_limit": 1,
22
+ "save_strategy": "epoch",
23
+ "push_to_hub": true,
24
+ "repo_id": "fashxp/cars-countries-2",
25
+ "evaluation_strategy": "epoch",
26
+ "image_column": "autotrain_image",
27
+ "target_column": "autotrain_label",
28
+ "log": "none"
29
+ }