jorgealbert commited on
Commit
68b27d9
1 Parent(s): 2aedfa6

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.5410245060920715
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": "madura",
16
+ "1": "nomadura"
17
+ },
18
+ "image_size": 224,
19
+ "initializer_range": 0.02,
20
+ "label2id": {
21
+ "madura": 0,
22
+ "nomadura": 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.46.2"
34
+ }
checkpoint-16/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aac3fa69037b49cf557a927154320c831b7cd87af9b52e7894cb266339a8e54b
3
+ size 9080216
checkpoint-16/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:435f6fde248e30cffeaf6ff2fcff37a518c1fc863df70a1259c59700a2566d78
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:31b1576d51140a83ad99d6aae3fd683b751feb932bcf99f7a92235a4c7739a75
3
+ size 13990
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.5410245060920715,
3
+ "best_model_checkpoint": "modelo-mobilenetv2-clasificador-bananas/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": 17.590492248535156,
14
+ "learning_rate": 2.5e-05,
15
+ "loss": 0.655,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "grad_norm": 19.860876083374023,
21
+ "learning_rate": 5e-05,
22
+ "loss": 0.8373,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_accuracy": 0.0,
28
+ "eval_auc": 0.0,
29
+ "eval_f1": 0.0,
30
+ "eval_loss": 0.8076530694961548,
31
+ "eval_precision": 0.0,
32
+ "eval_recall": 0.0,
33
+ "eval_runtime": 0.1401,
34
+ "eval_samples_per_second": 14.28,
35
+ "eval_steps_per_second": 7.14,
36
+ "step": 2
37
+ },
38
+ {
39
+ "epoch": 1.5,
40
+ "grad_norm": 19.957738876342773,
41
+ "learning_rate": 4.722222222222222e-05,
42
+ "loss": 0.7749,
43
+ "step": 3
44
+ },
45
+ {
46
+ "epoch": 2.0,
47
+ "grad_norm": 16.67332649230957,
48
+ "learning_rate": 4.4444444444444447e-05,
49
+ "loss": 0.6925,
50
+ "step": 4
51
+ },
52
+ {
53
+ "epoch": 2.0,
54
+ "eval_accuracy": 0.0,
55
+ "eval_auc": 0.0,
56
+ "eval_f1": 0.0,
57
+ "eval_loss": 0.9083307981491089,
58
+ "eval_precision": 0.0,
59
+ "eval_recall": 0.0,
60
+ "eval_runtime": 0.0921,
61
+ "eval_samples_per_second": 21.72,
62
+ "eval_steps_per_second": 10.86,
63
+ "step": 4
64
+ },
65
+ {
66
+ "epoch": 2.5,
67
+ "grad_norm": 21.811174392700195,
68
+ "learning_rate": 4.166666666666667e-05,
69
+ "loss": 0.8728,
70
+ "step": 5
71
+ },
72
+ {
73
+ "epoch": 3.0,
74
+ "grad_norm": 18.857229232788086,
75
+ "learning_rate": 3.888888888888889e-05,
76
+ "loss": 0.7361,
77
+ "step": 6
78
+ },
79
+ {
80
+ "epoch": 3.0,
81
+ "eval_accuracy": 0.5,
82
+ "eval_auc": 0.0,
83
+ "eval_f1": 0.0,
84
+ "eval_loss": 0.7463452816009521,
85
+ "eval_precision": 0.0,
86
+ "eval_recall": 0.0,
87
+ "eval_runtime": 0.1036,
88
+ "eval_samples_per_second": 19.31,
89
+ "eval_steps_per_second": 9.655,
90
+ "step": 6
91
+ },
92
+ {
93
+ "epoch": 3.5,
94
+ "grad_norm": 18.541675567626953,
95
+ "learning_rate": 3.611111111111111e-05,
96
+ "loss": 0.6406,
97
+ "step": 7
98
+ },
99
+ {
100
+ "epoch": 4.0,
101
+ "grad_norm": 18.739696502685547,
102
+ "learning_rate": 3.3333333333333335e-05,
103
+ "loss": 0.5845,
104
+ "step": 8
105
+ },
106
+ {
107
+ "epoch": 4.0,
108
+ "eval_accuracy": 0.5,
109
+ "eval_auc": 1.0,
110
+ "eval_f1": 0.0,
111
+ "eval_loss": 0.7052843570709229,
112
+ "eval_precision": 0.0,
113
+ "eval_recall": 0.0,
114
+ "eval_runtime": 0.0903,
115
+ "eval_samples_per_second": 22.139,
116
+ "eval_steps_per_second": 11.07,
117
+ "step": 8
118
+ },
119
+ {
120
+ "epoch": 4.5,
121
+ "grad_norm": 14.008564949035645,
122
+ "learning_rate": 3.055555555555556e-05,
123
+ "loss": 0.514,
124
+ "step": 9
125
+ },
126
+ {
127
+ "epoch": 5.0,
128
+ "grad_norm": 13.883323669433594,
129
+ "learning_rate": 2.777777777777778e-05,
130
+ "loss": 0.4907,
131
+ "step": 10
132
+ },
133
+ {
134
+ "epoch": 5.0,
135
+ "eval_accuracy": 0.5,
136
+ "eval_auc": 0.0,
137
+ "eval_f1": 0.0,
138
+ "eval_loss": 0.6211875677108765,
139
+ "eval_precision": 0.0,
140
+ "eval_recall": 0.0,
141
+ "eval_runtime": 0.1298,
142
+ "eval_samples_per_second": 15.409,
143
+ "eval_steps_per_second": 7.704,
144
+ "step": 10
145
+ },
146
+ {
147
+ "epoch": 5.5,
148
+ "grad_norm": 23.929750442504883,
149
+ "learning_rate": 2.5e-05,
150
+ "loss": 0.7162,
151
+ "step": 11
152
+ },
153
+ {
154
+ "epoch": 6.0,
155
+ "grad_norm": 12.069799423217773,
156
+ "learning_rate": 2.2222222222222223e-05,
157
+ "loss": 0.4294,
158
+ "step": 12
159
+ },
160
+ {
161
+ "epoch": 6.0,
162
+ "eval_accuracy": 0.0,
163
+ "eval_auc": 0.0,
164
+ "eval_f1": 0.0,
165
+ "eval_loss": 0.8354901075363159,
166
+ "eval_precision": 0.0,
167
+ "eval_recall": 0.0,
168
+ "eval_runtime": 0.0885,
169
+ "eval_samples_per_second": 22.603,
170
+ "eval_steps_per_second": 11.302,
171
+ "step": 12
172
+ },
173
+ {
174
+ "epoch": 6.5,
175
+ "grad_norm": 13.07221794128418,
176
+ "learning_rate": 1.9444444444444445e-05,
177
+ "loss": 0.5174,
178
+ "step": 13
179
+ },
180
+ {
181
+ "epoch": 7.0,
182
+ "grad_norm": 17.840425491333008,
183
+ "learning_rate": 1.6666666666666667e-05,
184
+ "loss": 0.5621,
185
+ "step": 14
186
+ },
187
+ {
188
+ "epoch": 7.0,
189
+ "eval_accuracy": 0.5,
190
+ "eval_auc": 0.0,
191
+ "eval_f1": 0.6666666666666666,
192
+ "eval_loss": 0.7863453030586243,
193
+ "eval_precision": 0.5,
194
+ "eval_recall": 1.0,
195
+ "eval_runtime": 0.0884,
196
+ "eval_samples_per_second": 22.618,
197
+ "eval_steps_per_second": 11.309,
198
+ "step": 14
199
+ },
200
+ {
201
+ "epoch": 7.5,
202
+ "grad_norm": 11.327210426330566,
203
+ "learning_rate": 1.388888888888889e-05,
204
+ "loss": 0.3556,
205
+ "step": 15
206
+ },
207
+ {
208
+ "epoch": 8.0,
209
+ "grad_norm": 14.13537311553955,
210
+ "learning_rate": 1.1111111111111112e-05,
211
+ "loss": 0.5251,
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.5410245060920715,
220
+ "eval_precision": 1.0,
221
+ "eval_recall": 1.0,
222
+ "eval_runtime": 0.0972,
223
+ "eval_samples_per_second": 20.577,
224
+ "eval_steps_per_second": 10.289,
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": 168090138574848.0,
255
+ "train_batch_size": 4,
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:1df17d9983989fc83b8038bbcea7ff59bbc82b75b0847ec14de8c5ea6963362d
3
+ size 5368
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": "madura",
16
+ "1": "nomadura"
17
+ },
18
+ "image_size": 224,
19
+ "initializer_range": 0.02,
20
+ "label2id": {
21
+ "madura": 0,
22
+ "nomadura": 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.46.2"
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aac3fa69037b49cf557a927154320c831b7cd87af9b52e7894cb266339a8e54b
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/Nov08_09-25-14_r-jorgealbert-clasificador-de-platanos-syfxgezz-c8e18-2owfr/events.out.tfevents.1731057917.r-jorgealbert-clasificador-de-platanos-syfxgezz-c8e18-2owfr.145.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cd48ecf2791486eafc830cd3a7ce728fa144734253da2f2bddd02d3227b767f8
3
- size 5260
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07acf22f0bd4591d0804eae539770042dc797da1e2a5818a27ed8e1ec7613c62
3
+ size 14838
runs/Nov08_09-25-14_r-jorgealbert-clasificador-de-platanos-syfxgezz-c8e18-2owfr/events.out.tfevents.1731057934.r-jorgealbert-clasificador-de-platanos-syfxgezz-c8e18-2owfr.145.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c3e1ade90fbd2c23f341568848228ef49974858036bc5a185673a9ede17d84c
3
+ size 597
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1df17d9983989fc83b8038bbcea7ff59bbc82b75b0847ec14de8c5ea6963362d
3
+ size 5368
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "modelo-mobilenetv2-clasificador-bananas/autotrain-data",
3
+ "model": "google/mobilenet_v2_1.0_224",
4
+ "username": "jorgealbert",
5
+ "lr": 5e-05,
6
+ "epochs": 10,
7
+ "batch_size": 4,
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": "modelo-mobilenetv2-clasificador-bananas",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": "none",
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
+ }