zypchn commited on
Commit
60a4e06
·
verified ·
1 Parent(s): ca4335c

End of training

Browse files
Files changed (5) hide show
  1. README.md +82 -0
  2. config.json +59 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +30 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: microsoft/swin-small-patch4-window7-224
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - precision
10
+ - f1
11
+ model-index:
12
+ - name: swin-small-patch4-window7-224
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # swin-small-patch4-window7-224
20
+
21
+ This model is a fine-tuned version of [microsoft/swin-small-patch4-window7-224](https://huggingface.co/microsoft/swin-small-patch4-window7-224) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.1892
24
+ - Accuracy: 0.9778
25
+ - Precision: 0.9804
26
+ - Sensitivity: 1.0
27
+ - Specificity: 0.9733
28
+ - F1: 0.9783
29
+ - Auc: 0.9909
30
+ - Mcc: 0.9267
31
+ - J Stat: 0.9733
32
+ - Confusion Matrix: [[146, 4], [0, 30]]
33
+
34
+ ## Model description
35
+
36
+ More information needed
37
+
38
+ ## Intended uses & limitations
39
+
40
+ More information needed
41
+
42
+ ## Training and evaluation data
43
+
44
+ More information needed
45
+
46
+ ## Training procedure
47
+
48
+ ### Training hyperparameters
49
+
50
+ The following hyperparameters were used during training:
51
+ - learning_rate: 8.068420130106194e-05
52
+ - train_batch_size: 32
53
+ - eval_batch_size: 32
54
+ - seed: 42
55
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
56
+ - lr_scheduler_type: linear
57
+ - lr_scheduler_warmup_ratio: 0.06206076180207542
58
+ - num_epochs: 10
59
+ - label_smoothing_factor: 0.06417838785936565
60
+
61
+ ### Training results
62
+
63
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Sensitivity | Specificity | F1 | Auc | Mcc | J Stat | Confusion Matrix |
64
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:-----------:|:-----------:|:------:|:------:|:------:|:------:|:------------------------:|
65
+ | No log | 1.0 | 47 | 0.2904 | 0.9228 | 0.9256 | 0.7333 | 0.9892 | 0.9191 | 0.9754 | 0.7944 | 0.7225 | [[1100, 12], [104, 286]] |
66
+ | 0.4216 | 2.0 | 94 | 0.2247 | 0.9634 | 0.9640 | 0.8769 | 0.9937 | 0.9627 | 0.9866 | 0.9038 | 0.8706 | [[1105, 7], [48, 342]] |
67
+ | 0.2859 | 3.0 | 141 | 0.2064 | 0.9800 | 0.9800 | 0.9410 | 0.9937 | 0.9799 | 0.9914 | 0.9477 | 0.9347 | [[1105, 7], [23, 367]] |
68
+ | 0.2231 | 4.0 | 188 | 0.1778 | 0.9847 | 0.9847 | 0.9513 | 0.9964 | 0.9846 | 0.9956 | 0.9600 | 0.9477 | [[1108, 4], [19, 371]] |
69
+ | 0.1986 | 5.0 | 235 | 0.1590 | 0.9933 | 0.9933 | 0.9872 | 0.9955 | 0.9933 | 0.9982 | 0.9827 | 0.9827 | [[1107, 5], [5, 385]] |
70
+ | 0.174 | 6.0 | 282 | 0.1484 | 0.9973 | 0.9973 | 0.9923 | 0.9991 | 0.9973 | 0.9995 | 0.9931 | 0.9914 | [[1111, 1], [3, 387]] |
71
+ | 0.1526 | 7.0 | 329 | 0.1469 | 0.9980 | 0.9980 | 0.9949 | 0.9991 | 0.9980 | 0.9999 | 0.9948 | 0.9940 | [[1111, 1], [2, 388]] |
72
+ | 0.1518 | 8.0 | 376 | 0.1461 | 0.9987 | 0.9987 | 0.9949 | 1.0 | 0.9987 | 0.9997 | 0.9965 | 0.9949 | [[1112, 0], [2, 388]] |
73
+ | 0.148 | 9.0 | 423 | 0.1459 | 0.9987 | 0.9987 | 0.9949 | 1.0 | 0.9987 | 1.0000 | 0.9965 | 0.9949 | [[1112, 0], [2, 388]] |
74
+ | 0.1496 | 10.0 | 470 | 0.1458 | 0.9987 | 0.9987 | 0.9949 | 1.0 | 0.9987 | 1.0000 | 0.9965 | 0.9949 | [[1112, 0], [2, 388]] |
75
+
76
+
77
+ ### Framework versions
78
+
79
+ - Transformers 4.52.4
80
+ - Pytorch 2.6.0+cu124
81
+ - Datasets 4.0.0
82
+ - Tokenizers 0.21.2
config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "SwinForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "depths": [
7
+ 2,
8
+ 2,
9
+ 18,
10
+ 2
11
+ ],
12
+ "drop_path_rate": 0.1,
13
+ "embed_dim": 96,
14
+ "encoder_stride": 32,
15
+ "hidden_act": "gelu",
16
+ "hidden_dropout_prob": 0.0,
17
+ "hidden_size": 768,
18
+ "id2label": {
19
+ "0": "negative",
20
+ "1": "positive"
21
+ },
22
+ "image_size": 224,
23
+ "initializer_range": 0.02,
24
+ "label2id": {
25
+ "negative": "0",
26
+ "positive": "1"
27
+ },
28
+ "layer_norm_eps": 1e-05,
29
+ "mlp_ratio": 4.0,
30
+ "model_type": "swin",
31
+ "num_channels": 3,
32
+ "num_heads": [
33
+ 3,
34
+ 6,
35
+ 12,
36
+ 24
37
+ ],
38
+ "num_layers": 4,
39
+ "out_features": [
40
+ "stage4"
41
+ ],
42
+ "out_indices": [
43
+ 4
44
+ ],
45
+ "patch_size": 4,
46
+ "path_norm": true,
47
+ "qkv_bias": true,
48
+ "stage_names": [
49
+ "stem",
50
+ "stage1",
51
+ "stage2",
52
+ "stage3",
53
+ "stage4"
54
+ ],
55
+ "torch_dtype": "float32",
56
+ "transformers_version": "4.52.4",
57
+ "use_absolute_embeddings": false,
58
+ "window_size": 7
59
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a5baefa509a36e0949de4d0d0f7a12cbf57bd23a91977b78568b7904eeea0fa
3
+ size 195872552
preprocessor_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "data_format": "channels_first",
4
+ "default_to_square": true,
5
+ "device": null,
6
+ "do_center_crop": null,
7
+ "do_convert_rgb": null,
8
+ "do_normalize": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 0.485,
13
+ 0.456,
14
+ 0.406
15
+ ],
16
+ "image_processor_type": "ViTImageProcessorFast",
17
+ "image_std": [
18
+ 0.229,
19
+ 0.224,
20
+ 0.225
21
+ ],
22
+ "input_data_format": null,
23
+ "resample": 3,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "return_tensors": null,
26
+ "size": {
27
+ "height": 224,
28
+ "width": 224
29
+ }
30
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eef6b9fbe5688b2beac3a19f773118eba31fa4072791df891080c4675627bad0
3
+ size 5368