egujr001 commited on
Commit
b2bae8c
1 Parent(s): ab8fc92

egujr001/swim2-base-model

Browse files
README.md ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: microsoft/swinv2-tiny-patch4-window8-256
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: swim2-base-model
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # swim2-base-model
17
+
18
+ This model is a fine-tuned version of [microsoft/swinv2-tiny-patch4-window8-256](https://huggingface.co/microsoft/swinv2-tiny-patch4-window8-256) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.3146
21
+ - Accuracy: 0.9206
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 64
42
+ - eval_batch_size: 64
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - lr_scheduler_warmup_ratio: 0.1
47
+ - num_epochs: 3
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
53
+ | 0.5804 | 0.05 | 100 | 0.5395 | 0.7388 |
54
+ | 0.2244 | 0.09 | 200 | 0.3057 | 0.8787 |
55
+ | 0.134 | 0.14 | 300 | 0.2218 | 0.9129 |
56
+ | 0.1786 | 0.18 | 400 | 0.1567 | 0.9373 |
57
+ | 0.0924 | 0.23 | 500 | 0.1360 | 0.9464 |
58
+ | 0.1217 | 0.27 | 600 | 0.1732 | 0.9349 |
59
+ | 0.144 | 0.32 | 700 | 0.1233 | 0.9538 |
60
+ | 0.0917 | 0.37 | 800 | 0.1655 | 0.9379 |
61
+ | 0.1005 | 0.41 | 900 | 0.1047 | 0.9632 |
62
+ | 0.1391 | 0.46 | 1000 | 0.1281 | 0.9554 |
63
+ | 0.0488 | 0.5 | 1100 | 0.0965 | 0.9688 |
64
+ | 0.0587 | 0.55 | 1200 | 0.1926 | 0.9460 |
65
+ | 0.0827 | 0.59 | 1300 | 0.0982 | 0.9630 |
66
+ | 0.035 | 0.64 | 1400 | 0.1011 | 0.9676 |
67
+ | 0.0529 | 0.69 | 1500 | 0.0984 | 0.9646 |
68
+ | 0.0653 | 0.73 | 1600 | 0.0877 | 0.9666 |
69
+ | 0.0749 | 0.78 | 1700 | 0.1208 | 0.9604 |
70
+ | 0.0686 | 0.82 | 1800 | 0.0742 | 0.9719 |
71
+ | 0.039 | 0.87 | 1900 | 0.0829 | 0.9717 |
72
+ | 0.0607 | 0.91 | 2000 | 0.0767 | 0.9746 |
73
+ | 0.0478 | 0.96 | 2100 | 0.0789 | 0.9725 |
74
+ | 0.0408 | 1.01 | 2200 | 0.0750 | 0.9757 |
75
+ | 0.0228 | 1.05 | 2300 | 0.0707 | 0.9773 |
76
+ | 0.0431 | 1.1 | 2400 | 0.0690 | 0.9787 |
77
+ | 0.0675 | 1.14 | 2500 | 0.0712 | 0.9773 |
78
+ | 0.0624 | 1.19 | 2600 | 0.1109 | 0.9640 |
79
+ | 0.0843 | 1.23 | 2700 | 0.1077 | 0.9692 |
80
+ | 0.0328 | 1.28 | 2800 | 0.0663 | 0.9795 |
81
+ | 0.0724 | 1.33 | 2900 | 0.0811 | 0.9766 |
82
+ | 0.0385 | 1.37 | 3000 | 0.0820 | 0.9732 |
83
+ | 0.0315 | 1.42 | 3100 | 0.0711 | 0.9788 |
84
+ | 0.0367 | 1.46 | 3200 | 0.0806 | 0.9765 |
85
+ | 0.0382 | 1.51 | 3300 | 0.1444 | 0.9612 |
86
+ | 0.024 | 1.55 | 3400 | 0.1038 | 0.9738 |
87
+ | 0.0331 | 1.6 | 3500 | 0.1181 | 0.9660 |
88
+ | 0.0419 | 1.65 | 3600 | 0.0687 | 0.9790 |
89
+ | 0.0352 | 1.69 | 3700 | 0.0687 | 0.9789 |
90
+ | 0.0588 | 1.74 | 3800 | 0.0620 | 0.9804 |
91
+ | 0.0313 | 1.78 | 3900 | 0.0975 | 0.9722 |
92
+ | 0.0421 | 1.83 | 4000 | 0.0588 | 0.9803 |
93
+ | 0.0182 | 1.87 | 4100 | 0.0601 | 0.9819 |
94
+ | 0.0323 | 1.92 | 4200 | 0.0593 | 0.9819 |
95
+ | 0.0565 | 1.97 | 4300 | 0.0537 | 0.9820 |
96
+ | 0.0266 | 2.01 | 4400 | 0.0693 | 0.9804 |
97
+ | 0.0374 | 2.06 | 4500 | 0.0610 | 0.9819 |
98
+ | 0.0246 | 2.1 | 4600 | 0.0580 | 0.9822 |
99
+ | 0.0316 | 2.15 | 4700 | 0.0674 | 0.9804 |
100
+ | 0.0415 | 2.19 | 4800 | 0.0569 | 0.9826 |
101
+ | 0.0361 | 2.24 | 4900 | 0.0550 | 0.9840 |
102
+ | 0.0298 | 2.29 | 5000 | 0.0575 | 0.9830 |
103
+ | 0.0275 | 2.33 | 5100 | 0.0600 | 0.9836 |
104
+ | 0.0194 | 2.38 | 5200 | 0.0678 | 0.9825 |
105
+ | 0.0279 | 2.42 | 5300 | 0.0608 | 0.9838 |
106
+ | 0.0585 | 2.47 | 5400 | 0.0548 | 0.9840 |
107
+ | 0.0272 | 2.51 | 5500 | 0.0565 | 0.9841 |
108
+ | 0.027 | 2.56 | 5600 | 0.0565 | 0.9840 |
109
+ | 0.0154 | 2.61 | 5700 | 0.0671 | 0.9818 |
110
+ | 0.0315 | 2.65 | 5800 | 0.0554 | 0.9851 |
111
+ | 0.0351 | 2.7 | 5900 | 0.0638 | 0.9832 |
112
+ | 0.0216 | 2.74 | 6000 | 0.0517 | 0.9851 |
113
+ | 0.0218 | 2.79 | 6100 | 0.0574 | 0.9844 |
114
+ | 0.0324 | 2.83 | 6200 | 0.0526 | 0.9851 |
115
+ | 0.0365 | 2.88 | 6300 | 0.0546 | 0.9852 |
116
+ | 0.0333 | 2.93 | 6400 | 0.0523 | 0.9854 |
117
+ | 0.0121 | 2.97 | 6500 | 0.0570 | 0.9845 |
118
+
119
+
120
+ ### Framework versions
121
+
122
+ - Transformers 4.33.0
123
+ - Pytorch 2.0.0+cu117
124
+ - Datasets 2.19.1
125
+ - Tokenizers 0.13.3
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.9205868867491976,
4
+ "eval_loss": 0.3146313428878784,
5
+ "eval_runtime": 26.7942,
6
+ "eval_samples_per_second": 406.991,
7
+ "eval_steps_per_second": 6.382,
8
+ "total_flos": 1.366461317950577e+19,
9
+ "train_loss": 0.06796654012328891,
10
+ "train_runtime": 7965.932,
11
+ "train_samples_per_second": 52.725,
12
+ "train_steps_per_second": 0.824
13
+ }
config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swinv2-tiny-patch4-window8-256",
3
+ "architectures": [
4
+ "Swinv2ForImageClassification"
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
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 768,
19
+ "id2label": {
20
+ "0": "Fake",
21
+ "1": "Real"
22
+ },
23
+ "image_size": 256,
24
+ "initializer_range": 0.02,
25
+ "label2id": {
26
+ "Fake": "0",
27
+ "Real": "1"
28
+ },
29
+ "layer_norm_eps": 1e-05,
30
+ "mlp_ratio": 4.0,
31
+ "model_type": "swinv2",
32
+ "num_channels": 3,
33
+ "num_heads": [
34
+ 3,
35
+ 6,
36
+ 12,
37
+ 24
38
+ ],
39
+ "num_layers": 4,
40
+ "patch_size": 4,
41
+ "path_norm": true,
42
+ "pretrained_window_sizes": [
43
+ 0,
44
+ 0,
45
+ 0,
46
+ 0
47
+ ],
48
+ "problem_type": "single_label_classification",
49
+ "qkv_bias": true,
50
+ "torch_dtype": "float32",
51
+ "transformers_version": "4.33.0",
52
+ "use_absolute_embeddings": false,
53
+ "window_size": 8
54
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": false,
4
+ "do_resize": true,
5
+ "feature_extractor_type": "ViTFeatureExtractor",
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_processor_type": "ViTImageProcessor",
12
+ "image_std": [
13
+ 0.229,
14
+ 0.224,
15
+ 0.225
16
+ ],
17
+ "resample": 3,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 256,
21
+ "width": 256
22
+ }
23
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a2e1908d2818ed1bee2bbb1be57ed0b5c3e9fc6d83199d880ccbdedaa94c7ff
3
+ size 110405153
test_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.9205868867491976,
4
+ "eval_loss": 0.3146313428878784,
5
+ "eval_runtime": 26.7942,
6
+ "eval_samples_per_second": 406.991,
7
+ "eval_steps_per_second": 6.382
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.9933929515292639,
4
+ "eval_loss": 0.017951341345906258,
5
+ "eval_runtime": 352.1451,
6
+ "eval_samples_per_second": 397.569,
7
+ "eval_steps_per_second": 6.213
8
+ }
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af06d83af3497277e6f2bdb1ffd63d3d33286759bf27825794010a516729a63b
3
+ size 4027
val_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.9850997025448937,
4
+ "eval_loss": 0.05167504400014877,
5
+ "eval_runtime": 88.2766,
6
+ "eval_samples_per_second": 411.298,
7
+ "eval_steps_per_second": 6.434
8
+ }