NeuronZero commited on
Commit
b51a4d9
1 Parent(s): 2273888

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - Pranavkpba2000/skin_cancer_dataset
15
+ ---
16
+
17
+ # Model Trained Using AutoTrain
18
+
19
+ - Problem type: Image Classification
20
+
21
+ ## Validation Metrics
22
+ No validation metrics available
checkpoint-10695/config.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swin-base-patch4-window7-224-in22k",
3
+ "_num_labels": 8,
4
+ "architectures": [
5
+ "SwinForImageClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "depths": [
9
+ 2,
10
+ 2,
11
+ 18,
12
+ 2
13
+ ],
14
+ "drop_path_rate": 0.1,
15
+ "embed_dim": 128,
16
+ "encoder_stride": 32,
17
+ "hidden_act": "gelu",
18
+ "hidden_dropout_prob": 0.0,
19
+ "hidden_size": 1024,
20
+ "id2label": {
21
+ "0": "AK",
22
+ "1": "BCC",
23
+ "2": "BKL",
24
+ "3": "DF",
25
+ "4": "MEL",
26
+ "5": "NV",
27
+ "6": "SCC",
28
+ "7": "VASC"
29
+ },
30
+ "image_size": 224,
31
+ "initializer_range": 0.02,
32
+ "label2id": {
33
+ "AK": 0,
34
+ "BCC": 1,
35
+ "BKL": 2,
36
+ "DF": 3,
37
+ "MEL": 4,
38
+ "NV": 5,
39
+ "SCC": 6,
40
+ "VASC": 7
41
+ },
42
+ "layer_norm_eps": 1e-05,
43
+ "mlp_ratio": 4.0,
44
+ "model_type": "swin",
45
+ "num_channels": 3,
46
+ "num_heads": [
47
+ 4,
48
+ 8,
49
+ 16,
50
+ 32
51
+ ],
52
+ "num_layers": 4,
53
+ "out_features": [
54
+ "stage4"
55
+ ],
56
+ "out_indices": [
57
+ 4
58
+ ],
59
+ "patch_size": 4,
60
+ "path_norm": true,
61
+ "problem_type": "single_label_classification",
62
+ "qkv_bias": true,
63
+ "stage_names": [
64
+ "stem",
65
+ "stage1",
66
+ "stage2",
67
+ "stage3",
68
+ "stage4"
69
+ ],
70
+ "torch_dtype": "float32",
71
+ "transformers_version": "4.39.0",
72
+ "use_absolute_embeddings": false,
73
+ "window_size": 7
74
+ }
checkpoint-10695/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eada057239c274dcf90bacfeb17d0c3298dfa3d6f214a26f3a3ca8d2d592f9e5
3
+ size 347523416
checkpoint-10695/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d219e5f8d2177c2040ca23df7cc4be5367b9121fc64c4f0b703cccd12d411d1
3
+ size 694354893
checkpoint-10695/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70107898eae2a6993041ade1609353284d5b32b1e1ae13669f70bd5f0bd50d97
3
+ size 13990
checkpoint-10695/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fefa400e1d882c71bf8b7e1b675d50d75cd10280a9e931c09584820051f23b1
3
+ size 1064
checkpoint-10695/trainer_state.json ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 10695,
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
+ "grad_norm": 34.351593017578125,
14
+ "learning_rate": 3.327102803738318e-05,
15
+ "loss": 1.2122,
16
+ "step": 712
17
+ },
18
+ {
19
+ "epoch": 0.4,
20
+ "grad_norm": 10.322906494140625,
21
+ "learning_rate": 4.816103896103896e-05,
22
+ "loss": 0.8692,
23
+ "step": 1424
24
+ },
25
+ {
26
+ "epoch": 0.6,
27
+ "grad_norm": 23.850841522216797,
28
+ "learning_rate": 4.446233766233767e-05,
29
+ "loss": 0.747,
30
+ "step": 2136
31
+ },
32
+ {
33
+ "epoch": 0.8,
34
+ "grad_norm": 26.398853302001953,
35
+ "learning_rate": 4.076363636363636e-05,
36
+ "loss": 0.6957,
37
+ "step": 2848
38
+ },
39
+ {
40
+ "epoch": 1.0,
41
+ "grad_norm": 39.551414489746094,
42
+ "learning_rate": 3.706493506493507e-05,
43
+ "loss": 0.6323,
44
+ "step": 3560
45
+ },
46
+ {
47
+ "epoch": 1.2,
48
+ "grad_norm": 20.38348388671875,
49
+ "learning_rate": 3.3366233766233766e-05,
50
+ "loss": 0.5724,
51
+ "step": 4272
52
+ },
53
+ {
54
+ "epoch": 1.4,
55
+ "grad_norm": 18.263744354248047,
56
+ "learning_rate": 2.9667532467532467e-05,
57
+ "loss": 0.5256,
58
+ "step": 4984
59
+ },
60
+ {
61
+ "epoch": 1.6,
62
+ "grad_norm": 7.960543632507324,
63
+ "learning_rate": 2.596883116883117e-05,
64
+ "loss": 0.522,
65
+ "step": 5696
66
+ },
67
+ {
68
+ "epoch": 1.8,
69
+ "grad_norm": 5.682173252105713,
70
+ "learning_rate": 2.227012987012987e-05,
71
+ "loss": 0.4766,
72
+ "step": 6408
73
+ },
74
+ {
75
+ "epoch": 2.0,
76
+ "grad_norm": 7.151096820831299,
77
+ "learning_rate": 1.8571428571428572e-05,
78
+ "loss": 0.466,
79
+ "step": 7120
80
+ },
81
+ {
82
+ "epoch": 2.2,
83
+ "grad_norm": 48.665584564208984,
84
+ "learning_rate": 1.4872727272727275e-05,
85
+ "loss": 0.3953,
86
+ "step": 7832
87
+ },
88
+ {
89
+ "epoch": 2.4,
90
+ "grad_norm": 3.8058860301971436,
91
+ "learning_rate": 1.1174025974025975e-05,
92
+ "loss": 0.3673,
93
+ "step": 8544
94
+ },
95
+ {
96
+ "epoch": 2.6,
97
+ "grad_norm": 17.926410675048828,
98
+ "learning_rate": 7.475324675324675e-06,
99
+ "loss": 0.3625,
100
+ "step": 9256
101
+ },
102
+ {
103
+ "epoch": 2.8,
104
+ "grad_norm": 25.310287475585938,
105
+ "learning_rate": 3.776623376623377e-06,
106
+ "loss": 0.348,
107
+ "step": 9968
108
+ },
109
+ {
110
+ "epoch": 3.0,
111
+ "grad_norm": 18.61994743347168,
112
+ "learning_rate": 7.792207792207792e-08,
113
+ "loss": 0.3617,
114
+ "step": 10680
115
+ }
116
+ ],
117
+ "logging_steps": 712,
118
+ "max_steps": 10695,
119
+ "num_input_tokens_seen": 0,
120
+ "num_train_epochs": 3,
121
+ "save_steps": 500,
122
+ "total_flos": 6.702780767795675e+18,
123
+ "train_batch_size": 8,
124
+ "trial_name": null,
125
+ "trial_params": null
126
+ }
checkpoint-10695/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be0595590217ba4954ff2a7831242d6ff503684dd682e1468e0a306bd8d28d07
3
+ size 4984
config.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swin-base-patch4-window7-224-in22k",
3
+ "_num_labels": 8,
4
+ "architectures": [
5
+ "SwinForImageClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "depths": [
9
+ 2,
10
+ 2,
11
+ 18,
12
+ 2
13
+ ],
14
+ "drop_path_rate": 0.1,
15
+ "embed_dim": 128,
16
+ "encoder_stride": 32,
17
+ "hidden_act": "gelu",
18
+ "hidden_dropout_prob": 0.0,
19
+ "hidden_size": 1024,
20
+ "id2label": {
21
+ "0": "AK",
22
+ "1": "BCC",
23
+ "2": "BKL",
24
+ "3": "DF",
25
+ "4": "MEL",
26
+ "5": "NV",
27
+ "6": "SCC",
28
+ "7": "VASC"
29
+ },
30
+ "image_size": 224,
31
+ "initializer_range": 0.02,
32
+ "label2id": {
33
+ "AK": 0,
34
+ "BCC": 1,
35
+ "BKL": 2,
36
+ "DF": 3,
37
+ "MEL": 4,
38
+ "NV": 5,
39
+ "SCC": 6,
40
+ "VASC": 7
41
+ },
42
+ "layer_norm_eps": 1e-05,
43
+ "mlp_ratio": 4.0,
44
+ "model_type": "swin",
45
+ "num_channels": 3,
46
+ "num_heads": [
47
+ 4,
48
+ 8,
49
+ 16,
50
+ 32
51
+ ],
52
+ "num_layers": 4,
53
+ "out_features": [
54
+ "stage4"
55
+ ],
56
+ "out_indices": [
57
+ 4
58
+ ],
59
+ "patch_size": 4,
60
+ "path_norm": true,
61
+ "problem_type": "single_label_classification",
62
+ "qkv_bias": true,
63
+ "stage_names": [
64
+ "stem",
65
+ "stage1",
66
+ "stage2",
67
+ "stage3",
68
+ "stage4"
69
+ ],
70
+ "torch_dtype": "float32",
71
+ "transformers_version": "4.39.0",
72
+ "use_absolute_embeddings": false,
73
+ "window_size": 7
74
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eada057239c274dcf90bacfeb17d0c3298dfa3d6f214a26f3a3ca8d2d592f9e5
3
+ size 347523416
preprocessor_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
+ "do_normalize": true,
17
+ "do_rescale": true,
18
+ "do_resize": true,
19
+ "image_mean": [
20
+ 0.485,
21
+ 0.456,
22
+ 0.406
23
+ ],
24
+ "image_processor_type": "ViTImageProcessor",
25
+ "image_std": [
26
+ 0.229,
27
+ 0.224,
28
+ 0.225
29
+ ],
30
+ "resample": 3,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "height": 224,
34
+ "width": 224
35
+ }
36
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be0595590217ba4954ff2a7831242d6ff503684dd682e1468e0a306bd8d28d07
3
+ size 4984
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "Pranavkpba2000/skin_cancer_dataset",
3
+ "model": "microsoft/swin-base-patch4-window7-224-in22k",
4
+ "username": "NeuronZero",
5
+ "lr": 5e-05,
6
+ "epochs": 3,
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": null,
17
+ "logging_steps": -1,
18
+ "project_name": "SkinCancerClassifier",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": "fp8",
21
+ "save_total_limit": 1,
22
+ "save_strategy": "epoch",
23
+ "push_to_hub": true,
24
+ "repo_id": "NeuronZero/SkinCancerClassifier",
25
+ "evaluation_strategy": "epoch",
26
+ "image_column": "image",
27
+ "target_column": "label",
28
+ "log": "none"
29
+ }