VJSC commited on
Commit
e6d8139
·
verified ·
1 Parent(s): 257ba81

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-large-patch16-384
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: 1.0671894550323486
22
+
23
+ f1_macro: 0.7
24
+
25
+ f1_micro: 0.7
26
+
27
+ f1_weighted: 0.6933333333333334
28
+
29
+ precision_macro: 0.7499999999999999
30
+
31
+ precision_micro: 0.7
32
+
33
+ precision_weighted: 0.7333333333333333
34
+
35
+ recall_macro: 0.7083333333333333
36
+
37
+ recall_micro: 0.7
38
+
39
+ recall_weighted: 0.7
40
+
41
+ accuracy: 0.7
checkpoint-16/config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-large-patch16-384",
3
+ "_num_labels": 4,
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": 1024,
12
+ "id2label": {
13
+ "0": "HMS Ark Royal",
14
+ "1": "HMS Eagle",
15
+ "2": "Illustrious-class aircraft carrier",
16
+ "3": "Implacable-class aircraft carrier"
17
+ },
18
+ "image_size": 384,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 4096,
21
+ "label2id": {
22
+ "HMS Ark Royal": 0,
23
+ "HMS Eagle": 1,
24
+ "Illustrious-class aircraft carrier": 2,
25
+ "Implacable-class aircraft carrier": 3
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "model_type": "vit",
29
+ "num_attention_heads": 16,
30
+ "num_channels": 3,
31
+ "num_hidden_layers": 24,
32
+ "patch_size": 16,
33
+ "problem_type": "single_label_classification",
34
+ "qkv_bias": true,
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.44.1"
37
+ }
checkpoint-16/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ac860fa22fc1f679026678683fe005395a3e1fe1bd2e55b2bfa08d364f3e439
3
+ size 1214825952
checkpoint-16/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e2fa414a101d174113ed55ab7e5fd32271ef7294a0b8ead0b24b49c6acaf001
3
+ size 2429875946
checkpoint-16/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1262784022e4bd7b1250fe9abf17f75f58432017be3df2306d85b77d41bc280
3
+ size 13990
checkpoint-16/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33211e99adb52fed712ce94bf41f03436f022e90c32c7a1c3ba07eac33bee30e
3
+ size 1064
checkpoint-16/trainer_state.json ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.0671894550323486,
3
+ "best_model_checkpoint": "Ships/checkpoint-16",
4
+ "epoch": 4.0,
5
+ "eval_steps": 500,
6
+ "global_step": 16,
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.25,
13
+ "grad_norm": 13.132343292236328,
14
+ "learning_rate": 2.5e-05,
15
+ "loss": 1.4845,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.5,
20
+ "grad_norm": 10.336759567260742,
21
+ "learning_rate": 5e-05,
22
+ "loss": 1.4683,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.75,
27
+ "grad_norm": 8.432352066040039,
28
+ "learning_rate": 4.642857142857143e-05,
29
+ "loss": 1.3522,
30
+ "step": 3
31
+ },
32
+ {
33
+ "epoch": 1.0,
34
+ "grad_norm": 13.556530952453613,
35
+ "learning_rate": 4.2857142857142856e-05,
36
+ "loss": 1.7467,
37
+ "step": 4
38
+ },
39
+ {
40
+ "epoch": 1.0,
41
+ "eval_accuracy": 0.3,
42
+ "eval_f1_macro": 0.225,
43
+ "eval_f1_micro": 0.3,
44
+ "eval_f1_weighted": 0.18,
45
+ "eval_loss": 1.4493657350540161,
46
+ "eval_precision_macro": 0.16666666666666666,
47
+ "eval_precision_micro": 0.3,
48
+ "eval_precision_weighted": 0.13333333333333333,
49
+ "eval_recall_macro": 0.375,
50
+ "eval_recall_micro": 0.3,
51
+ "eval_recall_weighted": 0.3,
52
+ "eval_runtime": 39.4034,
53
+ "eval_samples_per_second": 0.254,
54
+ "eval_steps_per_second": 0.025,
55
+ "step": 4
56
+ },
57
+ {
58
+ "epoch": 1.25,
59
+ "grad_norm": 10.950541496276855,
60
+ "learning_rate": 3.928571428571429e-05,
61
+ "loss": 1.2704,
62
+ "step": 5
63
+ },
64
+ {
65
+ "epoch": 1.5,
66
+ "grad_norm": 7.838518142700195,
67
+ "learning_rate": 3.571428571428572e-05,
68
+ "loss": 1.1342,
69
+ "step": 6
70
+ },
71
+ {
72
+ "epoch": 1.75,
73
+ "grad_norm": 8.095083236694336,
74
+ "learning_rate": 3.2142857142857144e-05,
75
+ "loss": 1.0818,
76
+ "step": 7
77
+ },
78
+ {
79
+ "epoch": 2.0,
80
+ "grad_norm": 10.888486862182617,
81
+ "learning_rate": 2.857142857142857e-05,
82
+ "loss": 1.2193,
83
+ "step": 8
84
+ },
85
+ {
86
+ "epoch": 2.0,
87
+ "eval_accuracy": 0.6,
88
+ "eval_f1_macro": 0.5916666666666667,
89
+ "eval_f1_micro": 0.6,
90
+ "eval_f1_weighted": 0.5800000000000001,
91
+ "eval_loss": 1.1207724809646606,
92
+ "eval_precision_macro": 0.5833333333333333,
93
+ "eval_precision_micro": 0.6,
94
+ "eval_precision_weighted": 0.5833333333333333,
95
+ "eval_recall_macro": 0.625,
96
+ "eval_recall_micro": 0.6,
97
+ "eval_recall_weighted": 0.6,
98
+ "eval_runtime": 32.0397,
99
+ "eval_samples_per_second": 0.312,
100
+ "eval_steps_per_second": 0.031,
101
+ "step": 8
102
+ },
103
+ {
104
+ "epoch": 2.25,
105
+ "grad_norm": 8.940570831298828,
106
+ "learning_rate": 2.5e-05,
107
+ "loss": 0.8535,
108
+ "step": 9
109
+ },
110
+ {
111
+ "epoch": 2.5,
112
+ "grad_norm": 7.082061767578125,
113
+ "learning_rate": 2.1428571428571428e-05,
114
+ "loss": 0.7457,
115
+ "step": 10
116
+ },
117
+ {
118
+ "epoch": 2.75,
119
+ "grad_norm": 4.955725193023682,
120
+ "learning_rate": 1.785714285714286e-05,
121
+ "loss": 0.4903,
122
+ "step": 11
123
+ },
124
+ {
125
+ "epoch": 3.0,
126
+ "grad_norm": 11.013522148132324,
127
+ "learning_rate": 1.4285714285714285e-05,
128
+ "loss": 0.9821,
129
+ "step": 12
130
+ },
131
+ {
132
+ "epoch": 3.0,
133
+ "eval_accuracy": 0.7,
134
+ "eval_f1_macro": 0.7,
135
+ "eval_f1_micro": 0.7,
136
+ "eval_f1_weighted": 0.6933333333333334,
137
+ "eval_loss": 1.1053988933563232,
138
+ "eval_precision_macro": 0.7499999999999999,
139
+ "eval_precision_micro": 0.7,
140
+ "eval_precision_weighted": 0.7333333333333333,
141
+ "eval_recall_macro": 0.7083333333333333,
142
+ "eval_recall_micro": 0.7,
143
+ "eval_recall_weighted": 0.7,
144
+ "eval_runtime": 44.086,
145
+ "eval_samples_per_second": 0.227,
146
+ "eval_steps_per_second": 0.023,
147
+ "step": 12
148
+ },
149
+ {
150
+ "epoch": 3.25,
151
+ "grad_norm": 5.3065690994262695,
152
+ "learning_rate": 1.0714285714285714e-05,
153
+ "loss": 0.6126,
154
+ "step": 13
155
+ },
156
+ {
157
+ "epoch": 3.5,
158
+ "grad_norm": 6.9573259353637695,
159
+ "learning_rate": 7.142857142857143e-06,
160
+ "loss": 0.5428,
161
+ "step": 14
162
+ },
163
+ {
164
+ "epoch": 3.75,
165
+ "grad_norm": 7.6499199867248535,
166
+ "learning_rate": 3.5714285714285714e-06,
167
+ "loss": 0.6001,
168
+ "step": 15
169
+ },
170
+ {
171
+ "epoch": 4.0,
172
+ "grad_norm": 3.9723899364471436,
173
+ "learning_rate": 0.0,
174
+ "loss": 0.3854,
175
+ "step": 16
176
+ },
177
+ {
178
+ "epoch": 4.0,
179
+ "eval_accuracy": 0.7,
180
+ "eval_f1_macro": 0.7,
181
+ "eval_f1_micro": 0.7,
182
+ "eval_f1_weighted": 0.6933333333333334,
183
+ "eval_loss": 1.0671894550323486,
184
+ "eval_precision_macro": 0.7499999999999999,
185
+ "eval_precision_micro": 0.7,
186
+ "eval_precision_weighted": 0.7333333333333333,
187
+ "eval_recall_macro": 0.7083333333333333,
188
+ "eval_recall_micro": 0.7,
189
+ "eval_recall_weighted": 0.7,
190
+ "eval_runtime": 32.5746,
191
+ "eval_samples_per_second": 0.307,
192
+ "eval_steps_per_second": 0.031,
193
+ "step": 16
194
+ }
195
+ ],
196
+ "logging_steps": 1,
197
+ "max_steps": 16,
198
+ "num_input_tokens_seen": 0,
199
+ "num_train_epochs": 4,
200
+ "save_steps": 500,
201
+ "stateful_callbacks": {
202
+ "EarlyStoppingCallback": {
203
+ "args": {
204
+ "early_stopping_patience": 5,
205
+ "early_stopping_threshold": 0.01
206
+ },
207
+ "attributes": {
208
+ "early_stopping_patience_counter": 0
209
+ }
210
+ },
211
+ "TrainerControl": {
212
+ "args": {
213
+ "should_epoch_stop": false,
214
+ "should_evaluate": false,
215
+ "should_log": false,
216
+ "should_save": true,
217
+ "should_training_stop": true
218
+ },
219
+ "attributes": {}
220
+ }
221
+ },
222
+ "total_flos": 1.2897108891795456e+17,
223
+ "train_batch_size": 10,
224
+ "trial_name": null,
225
+ "trial_params": null
226
+ }
checkpoint-16/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:208b92b4b3f677c78ae2a18bc260b88a46e0fbd32db1f8ec8f709ede5f5c9293
3
+ size 5176
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-large-patch16-384",
3
+ "_num_labels": 4,
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": 1024,
12
+ "id2label": {
13
+ "0": "HMS Ark Royal",
14
+ "1": "HMS Eagle",
15
+ "2": "Illustrious-class aircraft carrier",
16
+ "3": "Implacable-class aircraft carrier"
17
+ },
18
+ "image_size": 384,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 4096,
21
+ "label2id": {
22
+ "HMS Ark Royal": 0,
23
+ "HMS Eagle": 1,
24
+ "Illustrious-class aircraft carrier": 2,
25
+ "Implacable-class aircraft carrier": 3
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "model_type": "vit",
29
+ "num_attention_heads": 16,
30
+ "num_channels": 3,
31
+ "num_hidden_layers": 24,
32
+ "patch_size": 16,
33
+ "problem_type": "single_label_classification",
34
+ "qkv_bias": true,
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.44.1"
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ac860fa22fc1f679026678683fe005395a3e1fe1bd2e55b2bfa08d364f3e439
3
+ size 1214825952
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": 384,
20
+ "width": 384
21
+ }
22
+ }
runs/Aug26_18-48-21_r-vjsc-ships-t15nts5v-e7e59-nvgai/events.out.tfevents.1724698103.r-vjsc-ships-t15nts5v-e7e59-nvgai.144.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5a6814e397cfb6f31b407577a4e66bf43165b43385bcd506f34224dde621d659
3
- size 10670
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d07282acf313fcd4b95a2fed161851363dbdca27d7d8a2ef8c050d20b64870d9
3
+ size 12043
runs/Aug26_18-48-21_r-vjsc-ships-t15nts5v-e7e59-nvgai/events.out.tfevents.1724700173.r-vjsc-ships-t15nts5v-e7e59-nvgai.144.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53bf333aa3da3c8e99a85fd68bb1b6198dbff57b4129f4e1cd606e5047805252
3
+ size 906
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:208b92b4b3f677c78ae2a18bc260b88a46e0fbd32db1f8ec8f709ede5f5c9293
3
+ size 5176
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "Ships/autotrain-data",
3
+ "model": "google/vit-large-patch16-384",
4
+ "username": "VJSC",
5
+ "lr": 5e-05,
6
+ "epochs": 4,
7
+ "batch_size": 10,
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": "Ships",
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
+ }