ahmedesmail16 commited on
Commit
3be3a69
1 Parent(s): 94a9da6

End of training

Browse files
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  license: apache-2.0
3
- base_model: microsoft/swinv2-large-patch4-window12-192-22k
4
  tags:
5
  - generated_from_trainer
6
  datasets:
@@ -22,7 +22,7 @@ model-index:
22
  metrics:
23
  - name: Accuracy
24
  type: accuracy
25
- value: 0.8305676855895197
26
  ---
27
 
28
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -30,10 +30,10 @@ should probably proofread and complete it, then remove this comment. -->
30
 
31
  # Psoriasis-500-100aug-224-swinv2-large
32
 
33
- This model is a fine-tuned version of [microsoft/swinv2-large-patch4-window12-192-22k](https://huggingface.co/microsoft/swinv2-large-patch4-window12-192-22k) on the imagefolder dataset.
34
  It achieves the following results on the evaluation set:
35
- - Loss: 0.9383
36
- - Accuracy: 0.8306
37
 
38
  ## Model description
39
 
@@ -67,16 +67,16 @@ The following hyperparameters were used during training:
67
 
68
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
  |:-------------:|:------:|:----:|:---------------:|:--------:|
70
- | 0.8251 | 0.9840 | 46 | 0.8572 | 0.7118 |
71
- | 0.3662 | 1.9893 | 93 | 0.8063 | 0.7389 |
72
- | 0.1443 | 2.9947 | 140 | 0.8198 | 0.7755 |
73
- | 0.0974 | 4.0 | 187 | 0.8232 | 0.8105 |
74
- | 0.0464 | 4.9840 | 233 | 0.9549 | 0.7904 |
75
- | 0.0234 | 5.9893 | 280 | 0.9775 | 0.7956 |
76
- | 0.0125 | 6.9947 | 327 | 0.9146 | 0.8192 |
77
- | 0.0066 | 8.0 | 374 | 0.9364 | 0.8279 |
78
- | 0.0025 | 8.9840 | 420 | 0.9412 | 0.8288 |
79
- | 0.0006 | 9.8396 | 460 | 0.9383 | 0.8306 |
80
 
81
 
82
  ### Framework versions
 
1
  ---
2
  license: apache-2.0
3
+ base_model: microsoft/swin-large-patch4-window7-224
4
  tags:
5
  - generated_from_trainer
6
  datasets:
 
22
  metrics:
23
  - name: Accuracy
24
  type: accuracy
25
+ value: 0.8227074235807861
26
  ---
27
 
28
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
30
 
31
  # Psoriasis-500-100aug-224-swinv2-large
32
 
33
+ This model is a fine-tuned version of [microsoft/swin-large-patch4-window7-224](https://huggingface.co/microsoft/swin-large-patch4-window7-224) on the imagefolder dataset.
34
  It achieves the following results on the evaluation set:
35
+ - Loss: 0.7383
36
+ - Accuracy: 0.8227
37
 
38
  ## Model description
39
 
 
67
 
68
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
  |:-------------:|:------:|:----:|:---------------:|:--------:|
70
+ | 1.4126 | 0.9840 | 46 | 0.9408 | 0.6882 |
71
+ | 0.3672 | 1.9893 | 93 | 0.6431 | 0.7703 |
72
+ | 0.133 | 2.9947 | 140 | 0.5938 | 0.7921 |
73
+ | 0.0624 | 4.0 | 187 | 0.6128 | 0.8035 |
74
+ | 0.0473 | 4.9840 | 233 | 0.6654 | 0.8114 |
75
+ | 0.0276 | 5.9893 | 280 | 0.7090 | 0.8166 |
76
+ | 0.0111 | 6.9947 | 327 | 0.7133 | 0.8140 |
77
+ | 0.0081 | 8.0 | 374 | 0.7639 | 0.8183 |
78
+ | 0.0039 | 8.9840 | 420 | 0.7387 | 0.8236 |
79
+ | 0.0065 | 9.8396 | 460 | 0.7383 | 0.8227 |
80
 
81
 
82
  ### Framework versions
config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
- "_name_or_path": "microsoft/swinv2-large-patch4-window12-192-22k",
3
  "architectures": [
4
- "Swinv2ForImageClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.0,
7
  "depths": [
@@ -30,7 +30,7 @@
30
  "10": "Pustular",
31
  "11": "Scalp"
32
  },
33
- "image_size": 192,
34
  "initializer_range": 0.02,
35
  "label2id": {
36
  "Abnormal": 0,
@@ -48,7 +48,7 @@
48
  },
49
  "layer_norm_eps": 1e-05,
50
  "mlp_ratio": 4.0,
51
- "model_type": "swinv2",
52
  "num_channels": 3,
53
  "num_heads": [
54
  6,
@@ -65,12 +65,6 @@
65
  ],
66
  "patch_size": 4,
67
  "path_norm": true,
68
- "pretrained_window_sizes": [
69
- 0,
70
- 0,
71
- 0,
72
- 0
73
- ],
74
  "problem_type": "single_label_classification",
75
  "qkv_bias": true,
76
  "stage_names": [
@@ -83,5 +77,5 @@
83
  "torch_dtype": "float32",
84
  "transformers_version": "4.41.2",
85
  "use_absolute_embeddings": false,
86
- "window_size": 12
87
  }
 
1
  {
2
+ "_name_or_path": "microsoft/swin-large-patch4-window7-224",
3
  "architectures": [
4
+ "SwinForImageClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.0,
7
  "depths": [
 
30
  "10": "Pustular",
31
  "11": "Scalp"
32
  },
33
+ "image_size": 224,
34
  "initializer_range": 0.02,
35
  "label2id": {
36
  "Abnormal": 0,
 
48
  },
49
  "layer_norm_eps": 1e-05,
50
  "mlp_ratio": 4.0,
51
+ "model_type": "swin",
52
  "num_channels": 3,
53
  "num_heads": [
54
  6,
 
65
  ],
66
  "patch_size": 4,
67
  "path_norm": true,
 
 
 
 
 
 
68
  "problem_type": "single_label_classification",
69
  "qkv_bias": true,
70
  "stage_names": [
 
77
  "torch_dtype": "float32",
78
  "transformers_version": "4.41.2",
79
  "use_absolute_embeddings": false,
80
+ "window_size": 7
81
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:efe7d950de1e8564de5074fbd2bd5c0d7040e9849ecfb508e54419ec58068efd
3
- size 780947768
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cb2f5777f5663ead672dc7cb4b113cd4798c18e785cfe8de2c3da5af4832a6b
3
+ size 780573600
preprocessor_config.json CHANGED
@@ -30,7 +30,7 @@
30
  "resample": 3,
31
  "rescale_factor": 0.00392156862745098,
32
  "size": {
33
- "height": 192,
34
- "width": 192
35
  }
36
  }
 
30
  "resample": 3,
31
  "rescale_factor": 0.00392156862745098,
32
  "size": {
33
+ "height": 224,
34
+ "width": 224
35
  }
36
  }
runs/Jun28_13-21-43_40ede51d48df/events.out.tfevents.1719580904.40ede51d48df.34.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c60286f67cf26127fd29dee6ab606d5e78ecd1da08173b8254ddec0920737fc
3
+ size 18924
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d1f373ca2ed0f060a18c28789a502392a68cd1f8581e5aefce8792a5abd64828
3
  size 5176
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ccd422d773ec41f255c19a3f61cb112de67efd624c356c602efc717076f8daa0
3
  size 5176