Niraya666 commited on
Commit
ddd4ce5
1 Parent(s): bdf2589

./wmc_v2_swin-tiny-patch4-window7-224_base_wm811k_cls_contra_learning_1017_all_cls

Browse files
Files changed (4) hide show
  1. README.md +96 -0
  2. config.json +76 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: microsoft/swin-tiny-patch4-window7-224
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - precision
10
+ - recall
11
+ - f1
12
+ model-index:
13
+ - name: wmc_v2_swin-tiny-patch4-window7-224_base_wm811k_cls_contra_learning_1017_all_cls
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # wmc_v2_swin-tiny-patch4-window7-224_base_wm811k_cls_contra_learning_1017_all_cls
21
+
22
+ This model is a fine-tuned version of [microsoft/swin-tiny-patch4-window7-224](https://huggingface.co/microsoft/swin-tiny-patch4-window7-224) on an unknown dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.0733
25
+ - Accuracy: 0.9767
26
+ - Precision: 0.8901
27
+ - Recall: 0.9041
28
+ - F1: 0.8937
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 2e-05
48
+ - train_batch_size: 32
49
+ - eval_batch_size: 32
50
+ - seed: 42
51
+ - gradient_accumulation_steps: 4
52
+ - total_train_batch_size: 128
53
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
54
+ - lr_scheduler_type: linear
55
+ - num_epochs: 3
56
+ - mixed_precision_training: Native AMP
57
+
58
+ ### Training results
59
+
60
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
61
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
62
+ | 0.3022 | 0.1079 | 100 | 0.8643 | 0.6787 | 0.0969 | 0.1188 | 0.1016 |
63
+ | 0.1973 | 0.2158 | 200 | 0.4558 | 0.8645 | 0.5013 | 0.4063 | 0.3734 |
64
+ | 0.1885 | 0.3237 | 300 | 0.2848 | 0.8865 | 0.5775 | 0.5620 | 0.5382 |
65
+ | 0.17 | 0.4316 | 400 | 0.2082 | 0.9122 | 0.7820 | 0.6967 | 0.6702 |
66
+ | 0.1565 | 0.5395 | 500 | 0.1775 | 0.9164 | 0.7701 | 0.7289 | 0.6901 |
67
+ | 0.1251 | 0.6474 | 600 | 0.1820 | 0.9265 | 0.6982 | 0.8022 | 0.6862 |
68
+ | 0.087 | 0.7553 | 700 | 0.1075 | 0.9688 | 0.8296 | 0.8707 | 0.8433 |
69
+ | 0.1474 | 0.8632 | 800 | 0.1504 | 0.9351 | 0.7887 | 0.8037 | 0.7687 |
70
+ | 0.1065 | 0.9711 | 900 | 0.1576 | 0.9262 | 0.8158 | 0.7454 | 0.7077 |
71
+ | 0.1262 | 1.0790 | 1000 | 0.1323 | 0.9475 | 0.8042 | 0.8150 | 0.7552 |
72
+ | 0.1223 | 1.1869 | 1100 | 0.1503 | 0.9340 | 0.7646 | 0.8377 | 0.7605 |
73
+ | 0.1433 | 1.2948 | 1200 | 0.0846 | 0.9739 | 0.8748 | 0.8704 | 0.8688 |
74
+ | 0.11 | 1.4028 | 1300 | 0.1043 | 0.9608 | 0.8525 | 0.8474 | 0.8353 |
75
+ | 0.0907 | 1.5107 | 1400 | 0.0814 | 0.9757 | 0.8717 | 0.8733 | 0.8619 |
76
+ | 0.0951 | 1.6186 | 1500 | 0.0899 | 0.9731 | 0.8459 | 0.9010 | 0.8669 |
77
+ | 0.1085 | 1.7265 | 1600 | 0.1138 | 0.9593 | 0.7984 | 0.8802 | 0.8262 |
78
+ | 0.0883 | 1.8344 | 1700 | 0.0794 | 0.9756 | 0.8803 | 0.8954 | 0.8832 |
79
+ | 0.0835 | 1.9423 | 1800 | 0.0853 | 0.9751 | 0.8444 | 0.9116 | 0.8706 |
80
+ | 0.0907 | 2.0502 | 1900 | 0.0992 | 0.9640 | 0.8266 | 0.8745 | 0.8319 |
81
+ | 0.091 | 2.1581 | 2000 | 0.0729 | 0.9779 | 0.8858 | 0.9061 | 0.8936 |
82
+ | 0.1216 | 2.2660 | 2100 | 0.0802 | 0.9743 | 0.8711 | 0.9100 | 0.8879 |
83
+ | 0.0866 | 2.3739 | 2200 | 0.0853 | 0.9742 | 0.8656 | 0.9099 | 0.8845 |
84
+ | 0.0815 | 2.4818 | 2300 | 0.0799 | 0.9735 | 0.8860 | 0.8924 | 0.8849 |
85
+ | 0.0767 | 2.5897 | 2400 | 0.0643 | 0.9803 | 0.8870 | 0.9182 | 0.9010 |
86
+ | 0.0809 | 2.6976 | 2500 | 0.0720 | 0.9779 | 0.8813 | 0.9173 | 0.8978 |
87
+ | 0.1004 | 2.8055 | 2600 | 0.0731 | 0.9780 | 0.8966 | 0.9072 | 0.8998 |
88
+ | 0.0607 | 2.9134 | 2700 | 0.0733 | 0.9767 | 0.8901 | 0.9041 | 0.8937 |
89
+
90
+
91
+ ### Framework versions
92
+
93
+ - Transformers 4.45.2
94
+ - Pytorch 2.4.1+cu121
95
+ - Datasets 3.0.1
96
+ - Tokenizers 0.20.1
config.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swin-tiny-patch4-window7-224",
3
+ "architectures": [
4
+ "SwinForClassificationAndContrastiveLearning"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 6,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "embed_dim": 96,
15
+ "encoder_stride": 32,
16
+ "finetuning_task": "image-classification",
17
+ "hidden_act": "gelu",
18
+ "hidden_dropout_prob": 0.0,
19
+ "hidden_size": 768,
20
+ "id2label": {
21
+ "0": "LABEL_0",
22
+ "1": "LABEL_1",
23
+ "2": "LABEL_2",
24
+ "3": "LABEL_3",
25
+ "4": "LABEL_4",
26
+ "5": "LABEL_5",
27
+ "6": "LABEL_6",
28
+ "7": "LABEL_7",
29
+ "8": "LABEL_8"
30
+ },
31
+ "image_size": 224,
32
+ "initializer_range": 0.02,
33
+ "label2id": {
34
+ "LABEL_0": 0,
35
+ "LABEL_1": 1,
36
+ "LABEL_2": 2,
37
+ "LABEL_3": 3,
38
+ "LABEL_4": 4,
39
+ "LABEL_5": 5,
40
+ "LABEL_6": 6,
41
+ "LABEL_7": 7,
42
+ "LABEL_8": 8
43
+ },
44
+ "layer_norm_eps": 1e-05,
45
+ "mlp_ratio": 4.0,
46
+ "model_type": "swin",
47
+ "num_channels": 3,
48
+ "num_heads": [
49
+ 3,
50
+ 6,
51
+ 12,
52
+ 24
53
+ ],
54
+ "num_layers": 4,
55
+ "out_features": [
56
+ "stage4"
57
+ ],
58
+ "out_indices": [
59
+ 4
60
+ ],
61
+ "patch_size": 4,
62
+ "path_norm": true,
63
+ "problem_type": "single_label_classification",
64
+ "qkv_bias": true,
65
+ "stage_names": [
66
+ "stem",
67
+ "stage1",
68
+ "stage2",
69
+ "stage3",
70
+ "stage4"
71
+ ],
72
+ "torch_dtype": "float32",
73
+ "transformers_version": "4.45.2",
74
+ "use_absolute_embeddings": false,
75
+ "window_size": 7
76
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c32cb4d170600f9e55d76a9d76f01d90a9df8a1f4b5feb1f9ebc7933d5df9f1
3
+ size 110364364
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:430eb01791c8df09401ca294c6704564c7b05b887ca11f5ba5c69b832025eae5
3
+ size 5304