samihaafaf commited on
Commit
ff35873
1 Parent(s): cb4b5d7

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - samihaafaf/autotrain-data-test2
15
+ ---
16
+
17
+ # Model Trained Using AutoTrain
18
+
19
+ - Problem type: Image Classification
20
+
21
+ ## Validation Metricsg
22
+ loss: 0.6926904320716858
23
+
24
+ f1: 0.6644144144144143
25
+
26
+ precision: 0.5017006802721088
27
+
28
+ recall: 0.9833333333333333
29
+
30
+ auc: 0.5401888888888888
31
+
32
+ accuracy: 0.5033333333333333
checkpoint-300/config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/resnet-50",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "ResNetForImageClassification"
6
+ ],
7
+ "depths": [
8
+ 3,
9
+ 4,
10
+ 6,
11
+ 3
12
+ ],
13
+ "downsample_in_bottleneck": false,
14
+ "downsample_in_first_stage": false,
15
+ "embedding_size": 64,
16
+ "hidden_act": "relu",
17
+ "hidden_sizes": [
18
+ 256,
19
+ 512,
20
+ 1024,
21
+ 2048
22
+ ],
23
+ "id2label": {
24
+ "0": "PVP",
25
+ "1": "non-PVP"
26
+ },
27
+ "label2id": {
28
+ "PVP": 0,
29
+ "non-PVP": 1
30
+ },
31
+ "layer_type": "bottleneck",
32
+ "model_type": "resnet",
33
+ "num_channels": 3,
34
+ "out_features": [
35
+ "stage4"
36
+ ],
37
+ "out_indices": [
38
+ 4
39
+ ],
40
+ "problem_type": "single_label_classification",
41
+ "stage_names": [
42
+ "stem",
43
+ "stage1",
44
+ "stage2",
45
+ "stage3",
46
+ "stage4"
47
+ ],
48
+ "torch_dtype": "float32",
49
+ "transformers_version": "4.36.1"
50
+ }
checkpoint-300/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48bd2690a0732f28b6d560c24a75ae03043b3a19771dc19ddd4e007256757d94
3
+ size 94302952
checkpoint-300/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae993b874e39b86bcfa9b8186bee9e134f91f430b57aad752e176562f1ed6b17
3
+ size 188232506
checkpoint-300/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da9f1e82f589e3362d7b7670faa84a8215a1cd0ad680ac98a0054fe26f73670e
3
+ size 14244
checkpoint-300/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96e1eecfadc48ec0df3dc7546213d043fbb340b7267f0294d0cbc54eb82be546
3
+ size 1064
checkpoint-300/trainer_state.json ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.6926904320716858,
3
+ "best_model_checkpoint": "/tmp/model/checkpoint-300",
4
+ "epoch": 4.0,
5
+ "eval_steps": 500,
6
+ "global_step": 300,
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.2,
13
+ "learning_rate": 2e-05,
14
+ "loss": 0.6932,
15
+ "step": 15
16
+ },
17
+ {
18
+ "epoch": 0.4,
19
+ "learning_rate": 4e-05,
20
+ "loss": 0.6935,
21
+ "step": 30
22
+ },
23
+ {
24
+ "epoch": 0.6,
25
+ "learning_rate": 6e-05,
26
+ "loss": 0.6934,
27
+ "step": 45
28
+ },
29
+ {
30
+ "epoch": 0.8,
31
+ "learning_rate": 8e-05,
32
+ "loss": 0.6936,
33
+ "step": 60
34
+ },
35
+ {
36
+ "epoch": 1.0,
37
+ "learning_rate": 0.0001,
38
+ "loss": 0.6936,
39
+ "step": 75
40
+ },
41
+ {
42
+ "epoch": 1.0,
43
+ "eval_accuracy": 0.5533333333333333,
44
+ "eval_auc": 0.5650777777777778,
45
+ "eval_f1": 0.5620915032679739,
46
+ "eval_loss": 0.6929760575294495,
47
+ "eval_precision": 0.5512820512820513,
48
+ "eval_recall": 0.5733333333333334,
49
+ "eval_runtime": 4.573,
50
+ "eval_samples_per_second": 131.205,
51
+ "eval_steps_per_second": 8.31,
52
+ "step": 75
53
+ },
54
+ {
55
+ "epoch": 1.2,
56
+ "learning_rate": 9.777777777777778e-05,
57
+ "loss": 0.6933,
58
+ "step": 90
59
+ },
60
+ {
61
+ "epoch": 1.4,
62
+ "learning_rate": 9.555555555555557e-05,
63
+ "loss": 0.6913,
64
+ "step": 105
65
+ },
66
+ {
67
+ "epoch": 1.6,
68
+ "learning_rate": 9.333333333333334e-05,
69
+ "loss": 0.6926,
70
+ "step": 120
71
+ },
72
+ {
73
+ "epoch": 1.8,
74
+ "learning_rate": 9.111111111111112e-05,
75
+ "loss": 0.6945,
76
+ "step": 135
77
+ },
78
+ {
79
+ "epoch": 2.0,
80
+ "learning_rate": 8.888888888888889e-05,
81
+ "loss": 0.7082,
82
+ "step": 150
83
+ },
84
+ {
85
+ "epoch": 2.0,
86
+ "eval_accuracy": 0.5,
87
+ "eval_auc": 0.5238666666666667,
88
+ "eval_f1": 0.6666666666666666,
89
+ "eval_loss": 0.6932576298713684,
90
+ "eval_precision": 0.5,
91
+ "eval_recall": 1.0,
92
+ "eval_runtime": 4.5135,
93
+ "eval_samples_per_second": 132.936,
94
+ "eval_steps_per_second": 8.419,
95
+ "step": 150
96
+ },
97
+ {
98
+ "epoch": 2.2,
99
+ "learning_rate": 8.666666666666667e-05,
100
+ "loss": 0.6868,
101
+ "step": 165
102
+ },
103
+ {
104
+ "epoch": 2.4,
105
+ "learning_rate": 8.444444444444444e-05,
106
+ "loss": 0.6979,
107
+ "step": 180
108
+ },
109
+ {
110
+ "epoch": 2.6,
111
+ "learning_rate": 8.222222222222222e-05,
112
+ "loss": 0.6939,
113
+ "step": 195
114
+ },
115
+ {
116
+ "epoch": 2.8,
117
+ "learning_rate": 8e-05,
118
+ "loss": 0.6946,
119
+ "step": 210
120
+ },
121
+ {
122
+ "epoch": 3.0,
123
+ "learning_rate": 7.777777777777778e-05,
124
+ "loss": 0.6936,
125
+ "step": 225
126
+ },
127
+ {
128
+ "epoch": 3.0,
129
+ "eval_accuracy": 0.5466666666666666,
130
+ "eval_auc": 0.5420722222222223,
131
+ "eval_f1": 0.4999999999999999,
132
+ "eval_loss": 0.6928548216819763,
133
+ "eval_precision": 0.5573770491803278,
134
+ "eval_recall": 0.4533333333333333,
135
+ "eval_runtime": 4.4853,
136
+ "eval_samples_per_second": 133.77,
137
+ "eval_steps_per_second": 8.472,
138
+ "step": 225
139
+ },
140
+ {
141
+ "epoch": 3.2,
142
+ "learning_rate": 7.555555555555556e-05,
143
+ "loss": 0.6932,
144
+ "step": 240
145
+ },
146
+ {
147
+ "epoch": 3.4,
148
+ "learning_rate": 7.333333333333333e-05,
149
+ "loss": 0.693,
150
+ "step": 255
151
+ },
152
+ {
153
+ "epoch": 3.6,
154
+ "learning_rate": 7.111111111111112e-05,
155
+ "loss": 0.6905,
156
+ "step": 270
157
+ },
158
+ {
159
+ "epoch": 3.8,
160
+ "learning_rate": 6.88888888888889e-05,
161
+ "loss": 0.6906,
162
+ "step": 285
163
+ },
164
+ {
165
+ "epoch": 4.0,
166
+ "learning_rate": 6.666666666666667e-05,
167
+ "loss": 0.6952,
168
+ "step": 300
169
+ },
170
+ {
171
+ "epoch": 4.0,
172
+ "eval_accuracy": 0.5033333333333333,
173
+ "eval_auc": 0.5401888888888888,
174
+ "eval_f1": 0.6644144144144143,
175
+ "eval_loss": 0.6926904320716858,
176
+ "eval_precision": 0.5017006802721088,
177
+ "eval_recall": 0.9833333333333333,
178
+ "eval_runtime": 4.4974,
179
+ "eval_samples_per_second": 133.412,
180
+ "eval_steps_per_second": 8.449,
181
+ "step": 300
182
+ }
183
+ ],
184
+ "logging_steps": 15,
185
+ "max_steps": 750,
186
+ "num_input_tokens_seen": 0,
187
+ "num_train_epochs": 10,
188
+ "save_steps": 500,
189
+ "total_flos": 5.0964968226816e+16,
190
+ "train_batch_size": 8,
191
+ "trial_name": null,
192
+ "trial_params": null
193
+ }
checkpoint-300/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85432150e61d98b195e4fe1b3925412d2b39bde0c82224fcd7d025fc3988cd88
3
+ size 4728
config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/resnet-50",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "ResNetForImageClassification"
6
+ ],
7
+ "depths": [
8
+ 3,
9
+ 4,
10
+ 6,
11
+ 3
12
+ ],
13
+ "downsample_in_bottleneck": false,
14
+ "downsample_in_first_stage": false,
15
+ "embedding_size": 64,
16
+ "hidden_act": "relu",
17
+ "hidden_sizes": [
18
+ 256,
19
+ 512,
20
+ 1024,
21
+ 2048
22
+ ],
23
+ "id2label": {
24
+ "0": "PVP",
25
+ "1": "non-PVP"
26
+ },
27
+ "label2id": {
28
+ "PVP": 0,
29
+ "non-PVP": 1
30
+ },
31
+ "layer_type": "bottleneck",
32
+ "model_type": "resnet",
33
+ "num_channels": 3,
34
+ "out_features": [
35
+ "stage4"
36
+ ],
37
+ "out_indices": [
38
+ 4
39
+ ],
40
+ "problem_type": "single_label_classification",
41
+ "stage_names": [
42
+ "stem",
43
+ "stage1",
44
+ "stage2",
45
+ "stage3",
46
+ "stage4"
47
+ ],
48
+ "torch_dtype": "float32",
49
+ "transformers_version": "4.36.1"
50
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48bd2690a0732f28b6d560c24a75ae03043b3a19771dc19ddd4e007256757d94
3
+ size 94302952
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": 224
21
+ }
22
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85432150e61d98b195e4fe1b3925412d2b39bde0c82224fcd7d025fc3988cd88
3
+ size 4728
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "samihaafaf/autotrain-data-test2",
3
+ "model": "microsoft/resnet-50",
4
+ "username": "samihaafaf",
5
+ "lr": 0.0001,
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": "/tmp/model",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": "fp16",
21
+ "save_total_limit": 1,
22
+ "save_strategy": "epoch",
23
+ "push_to_hub": true,
24
+ "repo_id": "samihaafaf/test2",
25
+ "evaluation_strategy": "epoch",
26
+ "image_column": "autotrain_image",
27
+ "target_column": "autotrain_label",
28
+ "log": "none"
29
+ }