KCAZAR commited on
Commit
2b9321a
1 Parent(s): 952582f

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - autotrain
5
+ - image-classification
6
+ base_model: google/mobilenet_v2_1.0_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.39871343970298767
22
+
23
+ f1: 1.0
24
+
25
+ precision: 1.0
26
+
27
+ recall: 1.0
28
+
29
+ auc: 1.0
30
+
31
+ accuracy: 1.0
checkpoint-16/config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/mobilenet_v2_1.0_224",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "MobileNetV2ForImageClassification"
6
+ ],
7
+ "classifier_dropout_prob": 0.2,
8
+ "depth_divisible_by": 8,
9
+ "depth_multiplier": 1.0,
10
+ "expand_ratio": 6,
11
+ "finegrained_output": true,
12
+ "first_layer_is_expansion": true,
13
+ "hidden_act": "relu6",
14
+ "id2label": {
15
+ "0": "maduras",
16
+ "1": "normales"
17
+ },
18
+ "image_size": 224,
19
+ "initializer_range": 0.02,
20
+ "label2id": {
21
+ "maduras": 0,
22
+ "normales": 1
23
+ },
24
+ "layer_norm_eps": 0.001,
25
+ "min_depth": 8,
26
+ "model_type": "mobilenet_v2",
27
+ "num_channels": 3,
28
+ "output_stride": 32,
29
+ "problem_type": "single_label_classification",
30
+ "semantic_loss_ignore_index": 255,
31
+ "tf_padding": true,
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.42.2"
34
+ }
checkpoint-16/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0d55918464ebf9d9799728ddd9cbc3e2693b47fed723e4036016f11e8f1672d
3
+ size 9080216
checkpoint-16/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d44145a552d1e29d151a28b4521fb822b70f3c59ebee64f9171713bd44e35bc
3
+ size 17939322
checkpoint-16/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:730bc969841cc9ada8fe5079d58361454e14f488d452ed741b42a550946f5ab6
3
+ size 13926
checkpoint-16/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d6b4808fabe08283a112f66e3bfd34a7deef1dc8c9dbcdd5fd822c71c6c6dc8
3
+ size 1064
checkpoint-16/trainer_state.json ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.39871343970298767,
3
+ "best_model_checkpoint": "mi-banana-variedades/checkpoint-16",
4
+ "epoch": 8.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.5,
13
+ "grad_norm": 11.00576114654541,
14
+ "learning_rate": 2.5e-05,
15
+ "loss": 0.5206,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "grad_norm": 24.502017974853516,
21
+ "learning_rate": 5e-05,
22
+ "loss": 0.9305,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_accuracy": 0.75,
28
+ "eval_auc": 1.0,
29
+ "eval_f1": 0.8,
30
+ "eval_loss": 0.6509360074996948,
31
+ "eval_precision": 0.6666666666666666,
32
+ "eval_recall": 1.0,
33
+ "eval_runtime": 0.2708,
34
+ "eval_samples_per_second": 14.768,
35
+ "eval_steps_per_second": 3.692,
36
+ "step": 2
37
+ },
38
+ {
39
+ "epoch": 1.5,
40
+ "grad_norm": 11.060440063476562,
41
+ "learning_rate": 4.722222222222222e-05,
42
+ "loss": 0.5818,
43
+ "step": 3
44
+ },
45
+ {
46
+ "epoch": 2.0,
47
+ "grad_norm": 19.44124412536621,
48
+ "learning_rate": 4.4444444444444447e-05,
49
+ "loss": 0.8322,
50
+ "step": 4
51
+ },
52
+ {
53
+ "epoch": 2.0,
54
+ "eval_accuracy": 0.75,
55
+ "eval_auc": 1.0,
56
+ "eval_f1": 0.8,
57
+ "eval_loss": 0.6616239547729492,
58
+ "eval_precision": 0.6666666666666666,
59
+ "eval_recall": 1.0,
60
+ "eval_runtime": 0.2591,
61
+ "eval_samples_per_second": 15.437,
62
+ "eval_steps_per_second": 3.859,
63
+ "step": 4
64
+ },
65
+ {
66
+ "epoch": 2.5,
67
+ "grad_norm": 12.236566543579102,
68
+ "learning_rate": 4.166666666666667e-05,
69
+ "loss": 0.6524,
70
+ "step": 5
71
+ },
72
+ {
73
+ "epoch": 3.0,
74
+ "grad_norm": 18.381006240844727,
75
+ "learning_rate": 3.888888888888889e-05,
76
+ "loss": 0.7136,
77
+ "step": 6
78
+ },
79
+ {
80
+ "epoch": 3.0,
81
+ "eval_accuracy": 0.75,
82
+ "eval_auc": 1.0,
83
+ "eval_f1": 0.8,
84
+ "eval_loss": 0.6655420064926147,
85
+ "eval_precision": 0.6666666666666666,
86
+ "eval_recall": 1.0,
87
+ "eval_runtime": 0.2607,
88
+ "eval_samples_per_second": 15.345,
89
+ "eval_steps_per_second": 3.836,
90
+ "step": 6
91
+ },
92
+ {
93
+ "epoch": 3.5,
94
+ "grad_norm": 12.948503494262695,
95
+ "learning_rate": 3.611111111111111e-05,
96
+ "loss": 0.6647,
97
+ "step": 7
98
+ },
99
+ {
100
+ "epoch": 4.0,
101
+ "grad_norm": 15.256901741027832,
102
+ "learning_rate": 3.3333333333333335e-05,
103
+ "loss": 0.575,
104
+ "step": 8
105
+ },
106
+ {
107
+ "epoch": 4.0,
108
+ "eval_accuracy": 0.5,
109
+ "eval_auc": 0.75,
110
+ "eval_f1": 0.6666666666666666,
111
+ "eval_loss": 0.7162492871284485,
112
+ "eval_precision": 0.5,
113
+ "eval_recall": 1.0,
114
+ "eval_runtime": 0.3132,
115
+ "eval_samples_per_second": 12.77,
116
+ "eval_steps_per_second": 3.192,
117
+ "step": 8
118
+ },
119
+ {
120
+ "epoch": 4.5,
121
+ "grad_norm": 9.987767219543457,
122
+ "learning_rate": 3.055555555555556e-05,
123
+ "loss": 0.4975,
124
+ "step": 9
125
+ },
126
+ {
127
+ "epoch": 5.0,
128
+ "grad_norm": 15.961681365966797,
129
+ "learning_rate": 2.777777777777778e-05,
130
+ "loss": 0.6147,
131
+ "step": 10
132
+ },
133
+ {
134
+ "epoch": 5.0,
135
+ "eval_accuracy": 0.75,
136
+ "eval_auc": 1.0,
137
+ "eval_f1": 0.8,
138
+ "eval_loss": 0.5041142702102661,
139
+ "eval_precision": 0.6666666666666666,
140
+ "eval_recall": 1.0,
141
+ "eval_runtime": 0.2646,
142
+ "eval_samples_per_second": 15.117,
143
+ "eval_steps_per_second": 3.779,
144
+ "step": 10
145
+ },
146
+ {
147
+ "epoch": 5.5,
148
+ "grad_norm": 8.158454895019531,
149
+ "learning_rate": 2.5e-05,
150
+ "loss": 0.3838,
151
+ "step": 11
152
+ },
153
+ {
154
+ "epoch": 6.0,
155
+ "grad_norm": 11.704643249511719,
156
+ "learning_rate": 2.2222222222222223e-05,
157
+ "loss": 0.4468,
158
+ "step": 12
159
+ },
160
+ {
161
+ "epoch": 6.0,
162
+ "eval_accuracy": 0.75,
163
+ "eval_auc": 1.0,
164
+ "eval_f1": 0.8,
165
+ "eval_loss": 0.4621618390083313,
166
+ "eval_precision": 0.6666666666666666,
167
+ "eval_recall": 1.0,
168
+ "eval_runtime": 0.256,
169
+ "eval_samples_per_second": 15.624,
170
+ "eval_steps_per_second": 3.906,
171
+ "step": 12
172
+ },
173
+ {
174
+ "epoch": 6.5,
175
+ "grad_norm": 7.906495571136475,
176
+ "learning_rate": 1.9444444444444445e-05,
177
+ "loss": 0.3469,
178
+ "step": 13
179
+ },
180
+ {
181
+ "epoch": 7.0,
182
+ "grad_norm": 17.341285705566406,
183
+ "learning_rate": 1.6666666666666667e-05,
184
+ "loss": 0.684,
185
+ "step": 14
186
+ },
187
+ {
188
+ "epoch": 7.0,
189
+ "eval_accuracy": 0.75,
190
+ "eval_auc": 1.0,
191
+ "eval_f1": 0.8,
192
+ "eval_loss": 0.5466539859771729,
193
+ "eval_precision": 0.6666666666666666,
194
+ "eval_recall": 1.0,
195
+ "eval_runtime": 0.2641,
196
+ "eval_samples_per_second": 15.146,
197
+ "eval_steps_per_second": 3.786,
198
+ "step": 14
199
+ },
200
+ {
201
+ "epoch": 7.5,
202
+ "grad_norm": 8.669549942016602,
203
+ "learning_rate": 1.388888888888889e-05,
204
+ "loss": 0.412,
205
+ "step": 15
206
+ },
207
+ {
208
+ "epoch": 8.0,
209
+ "grad_norm": 13.063695907592773,
210
+ "learning_rate": 1.1111111111111112e-05,
211
+ "loss": 0.4725,
212
+ "step": 16
213
+ },
214
+ {
215
+ "epoch": 8.0,
216
+ "eval_accuracy": 1.0,
217
+ "eval_auc": 1.0,
218
+ "eval_f1": 1.0,
219
+ "eval_loss": 0.39871343970298767,
220
+ "eval_precision": 1.0,
221
+ "eval_recall": 1.0,
222
+ "eval_runtime": 0.2689,
223
+ "eval_samples_per_second": 14.873,
224
+ "eval_steps_per_second": 3.718,
225
+ "step": 16
226
+ }
227
+ ],
228
+ "logging_steps": 1,
229
+ "max_steps": 20,
230
+ "num_input_tokens_seen": 0,
231
+ "num_train_epochs": 10,
232
+ "save_steps": 500,
233
+ "stateful_callbacks": {
234
+ "EarlyStoppingCallback": {
235
+ "args": {
236
+ "early_stopping_patience": 5,
237
+ "early_stopping_threshold": 0.01
238
+ },
239
+ "attributes": {
240
+ "early_stopping_patience_counter": 0
241
+ }
242
+ },
243
+ "TrainerControl": {
244
+ "args": {
245
+ "should_epoch_stop": false,
246
+ "should_evaluate": false,
247
+ "should_log": false,
248
+ "should_save": true,
249
+ "should_training_stop": false
250
+ },
251
+ "attributes": {}
252
+ }
253
+ },
254
+ "total_flos": 252135207862272.0,
255
+ "train_batch_size": 8,
256
+ "trial_name": null,
257
+ "trial_params": null
258
+ }
checkpoint-16/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f873bd361071432a63646e613f9c571956dfd76310e40632c160f4562da1cc0b
3
+ size 5176
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/mobilenet_v2_1.0_224",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "MobileNetV2ForImageClassification"
6
+ ],
7
+ "classifier_dropout_prob": 0.2,
8
+ "depth_divisible_by": 8,
9
+ "depth_multiplier": 1.0,
10
+ "expand_ratio": 6,
11
+ "finegrained_output": true,
12
+ "first_layer_is_expansion": true,
13
+ "hidden_act": "relu6",
14
+ "id2label": {
15
+ "0": "maduras",
16
+ "1": "normales"
17
+ },
18
+ "image_size": 224,
19
+ "initializer_range": 0.02,
20
+ "label2id": {
21
+ "maduras": 0,
22
+ "normales": 1
23
+ },
24
+ "layer_norm_eps": 0.001,
25
+ "min_depth": 8,
26
+ "model_type": "mobilenet_v2",
27
+ "num_channels": 3,
28
+ "output_stride": 32,
29
+ "problem_type": "single_label_classification",
30
+ "semantic_loss_ignore_index": 255,
31
+ "tf_padding": true,
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.42.2"
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0d55918464ebf9d9799728ddd9cbc3e2693b47fed723e4036016f11e8f1672d
3
+ size 9080216
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
+ "do_center_crop": true,
7
+ "do_normalize": true,
8
+ "do_rescale": true,
9
+ "do_resize": true,
10
+ "image_mean": [
11
+ 0.5,
12
+ 0.5,
13
+ 0.5
14
+ ],
15
+ "image_processor_type": "MobileNetV2ImageProcessor",
16
+ "image_std": [
17
+ 0.5,
18
+ 0.5,
19
+ 0.5
20
+ ],
21
+ "resample": 2,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "size": {
24
+ "shortest_edge": 256
25
+ }
26
+ }
runs/Jul15_17-35-21_r-kcazar-mi-prueba-finetuning-8ktp7ftb-7b26a-yn6hu/events.out.tfevents.1721064922.r-kcazar-mi-prueba-finetuning-8ktp7ftb-7b26a-yn6hu.167.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b53d305df64029e4ed186008bec3f84944d0e42d5081ef56632f41835143e2f6
3
- size 4986
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60413d5d769b578522da831da1142ce89a31c0fc25c3e590f6ad01f1c17a41f1
3
+ size 14564
runs/Jul15_17-35-21_r-kcazar-mi-prueba-finetuning-8ktp7ftb-7b26a-yn6hu/events.out.tfevents.1721064947.r-kcazar-mi-prueba-finetuning-8ktp7ftb-7b26a-yn6hu.167.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1b2fdb17083dbd1790fa1e1c3d4af71c5e6de1b6579b26e46ea3d9671507a6a
3
+ size 597
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f873bd361071432a63646e613f9c571956dfd76310e40632c160f4562da1cc0b
3
+ size 5176
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "mi-banana-variedades/autotrain-data",
3
+ "model": "google/mobilenet_v2_1.0_224",
4
+ "username": "KCAZAR",
5
+ "lr": 5e-05,
6
+ "epochs": 10,
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": "mi-banana-variedades",
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
+ }