Niraya666 commited on
Commit
e7b4391
1 Parent(s): a8fb9bd

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

Browse files
Files changed (4) hide show
  1. README.md +86 -0
  2. config.json +70 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_6_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_6_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.0632
25
+ - Accuracy: 0.9760
26
+ - Precision: 0.9607
27
+ - Recall: 0.9621
28
+ - F1: 0.9611
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
+ | 1.131 | 0.1697 | 100 | 0.6398 | 0.7195 | 0.6527 | 0.5655 | 0.5087 |
63
+ | 0.6353 | 0.3394 | 200 | 0.2183 | 0.9314 | 0.8628 | 0.8571 | 0.8592 |
64
+ | 0.5429 | 0.5091 | 300 | 0.1273 | 0.9594 | 0.9347 | 0.8905 | 0.9073 |
65
+ | 0.4432 | 0.6788 | 400 | 0.1040 | 0.9680 | 0.9322 | 0.9489 | 0.9397 |
66
+ | 0.4109 | 0.8485 | 500 | 0.0998 | 0.9697 | 0.9508 | 0.9442 | 0.9474 |
67
+ | 0.3775 | 1.0182 | 600 | 0.1209 | 0.9573 | 0.9323 | 0.9382 | 0.9326 |
68
+ | 0.3661 | 1.1880 | 700 | 0.0968 | 0.9697 | 0.9313 | 0.9579 | 0.9428 |
69
+ | 0.3609 | 1.3577 | 800 | 0.0879 | 0.9707 | 0.9479 | 0.9524 | 0.9498 |
70
+ | 0.3393 | 1.5274 | 900 | 0.0785 | 0.9734 | 0.9536 | 0.9566 | 0.9547 |
71
+ | 0.3242 | 1.6971 | 1000 | 0.0773 | 0.9732 | 0.9456 | 0.9626 | 0.9533 |
72
+ | 0.3307 | 1.8668 | 1100 | 0.0626 | 0.9781 | 0.9631 | 0.9601 | 0.9615 |
73
+ | 0.3325 | 2.0365 | 1200 | 0.0662 | 0.9767 | 0.9575 | 0.9637 | 0.9603 |
74
+ | 0.2889 | 2.2062 | 1300 | 0.0609 | 0.9780 | 0.9526 | 0.9673 | 0.9594 |
75
+ | 0.2818 | 2.3759 | 1400 | 0.0656 | 0.9762 | 0.9566 | 0.9619 | 0.9588 |
76
+ | 0.3038 | 2.5456 | 1500 | 0.0561 | 0.9795 | 0.9666 | 0.9633 | 0.9647 |
77
+ | 0.2823 | 2.7153 | 1600 | 0.0610 | 0.9781 | 0.9590 | 0.9668 | 0.9626 |
78
+ | 0.2478 | 2.8850 | 1700 | 0.0632 | 0.9760 | 0.9607 | 0.9621 | 0.9611 |
79
+
80
+
81
+ ### Framework versions
82
+
83
+ - Transformers 4.45.2
84
+ - Pytorch 2.4.1+cu121
85
+ - Datasets 3.0.1
86
+ - Tokenizers 0.20.1
config.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
28
+ "image_size": 224,
29
+ "initializer_range": 0.02,
30
+ "label2id": {
31
+ "LABEL_0": 0,
32
+ "LABEL_1": 1,
33
+ "LABEL_2": 2,
34
+ "LABEL_3": 3,
35
+ "LABEL_4": 4,
36
+ "LABEL_5": 5
37
+ },
38
+ "layer_norm_eps": 1e-05,
39
+ "mlp_ratio": 4.0,
40
+ "model_type": "swin",
41
+ "num_channels": 3,
42
+ "num_heads": [
43
+ 3,
44
+ 6,
45
+ 12,
46
+ 24
47
+ ],
48
+ "num_layers": 4,
49
+ "out_features": [
50
+ "stage4"
51
+ ],
52
+ "out_indices": [
53
+ 4
54
+ ],
55
+ "patch_size": 4,
56
+ "path_norm": true,
57
+ "problem_type": "single_label_classification",
58
+ "qkv_bias": true,
59
+ "stage_names": [
60
+ "stem",
61
+ "stage1",
62
+ "stage2",
63
+ "stage3",
64
+ "stage4"
65
+ ],
66
+ "torch_dtype": "float32",
67
+ "transformers_version": "4.45.2",
68
+ "use_absolute_embeddings": false,
69
+ "window_size": 7
70
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ed53f9646f7b821205d6e5da904cb45a2ce3c0a5f535af1a77b51810467f91f
3
+ size 110355136
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:374169baf5b897ee7cc888c444c8393ef0ae015e811c413513ff291edad1b4a8
3
+ size 5304