amiune commited on
Commit
8cbcacc
·
verified ·
1 Parent(s): 037e449

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.43215131759643555
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-8/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-8/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:725acfaaa08b8204367e17c60bc2710cfcc84e859915447e3bf94a292365347d
3
+ size 9080216
checkpoint-8/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb29f6e36cbb82091316d74314aed03dc679fe52861a0f0ea86d6510ccbab867
3
+ size 17939322
checkpoint-8/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc55c4cc3ce99e7564564c7d089fadd09ee521499209a39043638453c48ef2fc
3
+ size 13990
checkpoint-8/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e8e95e581ce13942d5bc9394a7c23b36958815a7abd4ceefa0c2dc72dc13db0
3
+ size 1064
checkpoint-8/trainer_state.json ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.43215131759643555,
3
+ "best_model_checkpoint": "modelo-mobilenetv2-clasificador-bananas/checkpoint-8",
4
+ "epoch": 4.0,
5
+ "eval_steps": 500,
6
+ "global_step": 8,
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.826881408691406,
14
+ "learning_rate": 2.5e-05,
15
+ "loss": 0.6916,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "grad_norm": 20.334945678710938,
21
+ "learning_rate": 5e-05,
22
+ "loss": 0.7781,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_accuracy": 0.5,
28
+ "eval_auc": 1.0,
29
+ "eval_f1": 0.6666666666666666,
30
+ "eval_loss": 0.626683235168457,
31
+ "eval_precision": 0.5,
32
+ "eval_recall": 1.0,
33
+ "eval_runtime": 0.1198,
34
+ "eval_samples_per_second": 16.698,
35
+ "eval_steps_per_second": 8.349,
36
+ "step": 2
37
+ },
38
+ {
39
+ "epoch": 1.5,
40
+ "grad_norm": 17.12514877319336,
41
+ "learning_rate": 4.722222222222222e-05,
42
+ "loss": 0.707,
43
+ "step": 3
44
+ },
45
+ {
46
+ "epoch": 2.0,
47
+ "grad_norm": 17.025911331176758,
48
+ "learning_rate": 4.4444444444444447e-05,
49
+ "loss": 0.7214,
50
+ "step": 4
51
+ },
52
+ {
53
+ "epoch": 2.0,
54
+ "eval_accuracy": 0.5,
55
+ "eval_auc": 0.0,
56
+ "eval_f1": 0.6666666666666666,
57
+ "eval_loss": 0.7334648370742798,
58
+ "eval_precision": 0.5,
59
+ "eval_recall": 1.0,
60
+ "eval_runtime": 0.095,
61
+ "eval_samples_per_second": 21.052,
62
+ "eval_steps_per_second": 10.526,
63
+ "step": 4
64
+ },
65
+ {
66
+ "epoch": 2.5,
67
+ "grad_norm": 18.19939422607422,
68
+ "learning_rate": 4.166666666666667e-05,
69
+ "loss": 0.7406,
70
+ "step": 5
71
+ },
72
+ {
73
+ "epoch": 3.0,
74
+ "grad_norm": 19.163663864135742,
75
+ "learning_rate": 3.888888888888889e-05,
76
+ "loss": 0.8268,
77
+ "step": 6
78
+ },
79
+ {
80
+ "epoch": 3.0,
81
+ "eval_accuracy": 0.5,
82
+ "eval_auc": 0.0,
83
+ "eval_f1": 0.6666666666666666,
84
+ "eval_loss": 0.7863684892654419,
85
+ "eval_precision": 0.5,
86
+ "eval_recall": 1.0,
87
+ "eval_runtime": 0.0977,
88
+ "eval_samples_per_second": 20.476,
89
+ "eval_steps_per_second": 10.238,
90
+ "step": 6
91
+ },
92
+ {
93
+ "epoch": 3.5,
94
+ "grad_norm": 20.60347557067871,
95
+ "learning_rate": 3.611111111111111e-05,
96
+ "loss": 0.8683,
97
+ "step": 7
98
+ },
99
+ {
100
+ "epoch": 4.0,
101
+ "grad_norm": 20.312435150146484,
102
+ "learning_rate": 3.3333333333333335e-05,
103
+ "loss": 0.8325,
104
+ "step": 8
105
+ },
106
+ {
107
+ "epoch": 4.0,
108
+ "eval_accuracy": 1.0,
109
+ "eval_auc": 1.0,
110
+ "eval_f1": 1.0,
111
+ "eval_loss": 0.43215131759643555,
112
+ "eval_precision": 1.0,
113
+ "eval_recall": 1.0,
114
+ "eval_runtime": 0.1119,
115
+ "eval_samples_per_second": 17.88,
116
+ "eval_steps_per_second": 8.94,
117
+ "step": 8
118
+ }
119
+ ],
120
+ "logging_steps": 1,
121
+ "max_steps": 20,
122
+ "num_input_tokens_seen": 0,
123
+ "num_train_epochs": 10,
124
+ "save_steps": 500,
125
+ "stateful_callbacks": {
126
+ "EarlyStoppingCallback": {
127
+ "args": {
128
+ "early_stopping_patience": 5,
129
+ "early_stopping_threshold": 0.01
130
+ },
131
+ "attributes": {
132
+ "early_stopping_patience_counter": 0
133
+ }
134
+ },
135
+ "TrainerControl": {
136
+ "args": {
137
+ "should_epoch_stop": false,
138
+ "should_evaluate": false,
139
+ "should_log": false,
140
+ "should_save": true,
141
+ "should_training_stop": false
142
+ },
143
+ "attributes": {}
144
+ }
145
+ },
146
+ "total_flos": 84045069287424.0,
147
+ "train_batch_size": 4,
148
+ "trial_name": null,
149
+ "trial_params": null
150
+ }
checkpoint-8/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d8555e2dfe94f73712a68f8fe7f1f721b37dbaaf06ee8f3bf91dc2f72e4a4e2
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:725acfaaa08b8204367e17c60bc2710cfcc84e859915447e3bf94a292365347d
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-20_r-amiune-clasificador-de-bananas-ewkfxk1p-20be7-z0b9b/events.out.tfevents.1731057922.r-amiune-clasificador-de-bananas-ewkfxk1p-20be7-z0b9b.156.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:71ee64b6930fa8144b4e9b8b88a010035dca258a4f67ff3e4f8aee3b3cbff99c
3
- size 5254
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b07163b0095a66b4dbb97eb52505720d471004895863e0e93d7b458ee111a7e
3
+ size 13909
runs/Nov08_09-25-20_r-amiune-clasificador-de-bananas-ewkfxk1p-20be7-z0b9b/events.out.tfevents.1731057938.r-amiune-clasificador-de-bananas-ewkfxk1p-20be7-z0b9b.156.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ff205eb179585e71674402585fbbef1ff02f315aded39fed916091c3bb13f44
3
+ size 597
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d8555e2dfe94f73712a68f8fe7f1f721b37dbaaf06ee8f3bf91dc2f72e4a4e2
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": "amiune",
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
+ }