Model save
Browse files- README.md +163 -0
- adapter_model.bin +1 -1
README.md
ADDED
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: microsoft/swin-base-patch4-window7-224-in22k
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: swin-base-patch4-window7-224-in22k-finetuned-lora-ISIC-2019
|
12 |
+
results: []
|
13 |
+
---
|
14 |
+
|
15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
+
should probably proofread and complete it, then remove this comment. -->
|
17 |
+
|
18 |
+
# swin-base-patch4-window7-224-in22k-finetuned-lora-ISIC-2019
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [microsoft/swin-base-patch4-window7-224-in22k](https://huggingface.co/microsoft/swin-base-patch4-window7-224-in22k) on the imagefolder dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.4238
|
23 |
+
- Accuracy: 0.8985
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 0.001
|
43 |
+
- train_batch_size: 64
|
44 |
+
- eval_batch_size: 64
|
45 |
+
- seed: 42
|
46 |
+
- gradient_accumulation_steps: 4
|
47 |
+
- total_train_batch_size: 256
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: linear
|
50 |
+
- num_epochs: 100
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
55 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
56 |
+
| 0.858 | 0.99 | 62 | 0.7349 | 0.7339 |
|
57 |
+
| 0.7403 | 2.0 | 125 | 0.6364 | 0.7762 |
|
58 |
+
| 0.675 | 2.99 | 187 | 0.5777 | 0.7999 |
|
59 |
+
| 0.6309 | 4.0 | 250 | 0.5701 | 0.7875 |
|
60 |
+
| 0.5734 | 4.99 | 312 | 0.5294 | 0.8016 |
|
61 |
+
| 0.5338 | 6.0 | 375 | 0.5418 | 0.8010 |
|
62 |
+
| 0.5104 | 6.99 | 437 | 0.5057 | 0.8179 |
|
63 |
+
| 0.5091 | 8.0 | 500 | 0.5010 | 0.8207 |
|
64 |
+
| 0.4678 | 8.99 | 562 | 0.4757 | 0.8247 |
|
65 |
+
| 0.467 | 10.0 | 625 | 0.4579 | 0.8151 |
|
66 |
+
| 0.4416 | 10.99 | 687 | 0.4650 | 0.8315 |
|
67 |
+
| 0.4277 | 12.0 | 750 | 0.4405 | 0.8405 |
|
68 |
+
| 0.4261 | 12.99 | 812 | 0.4414 | 0.8388 |
|
69 |
+
| 0.4016 | 14.0 | 875 | 0.4392 | 0.8286 |
|
70 |
+
| 0.3729 | 14.99 | 937 | 0.4471 | 0.8281 |
|
71 |
+
| 0.3813 | 16.0 | 1000 | 0.4155 | 0.8433 |
|
72 |
+
| 0.3454 | 16.99 | 1062 | 0.4322 | 0.8365 |
|
73 |
+
| 0.3639 | 18.0 | 1125 | 0.4332 | 0.8360 |
|
74 |
+
| 0.3393 | 18.99 | 1187 | 0.4190 | 0.8523 |
|
75 |
+
| 0.3135 | 20.0 | 1250 | 0.4166 | 0.8534 |
|
76 |
+
| 0.3094 | 20.99 | 1312 | 0.4005 | 0.8563 |
|
77 |
+
| 0.3263 | 22.0 | 1375 | 0.4399 | 0.8495 |
|
78 |
+
| 0.3009 | 22.99 | 1437 | 0.4122 | 0.8523 |
|
79 |
+
| 0.2804 | 24.0 | 1500 | 0.4293 | 0.8563 |
|
80 |
+
| 0.2516 | 24.99 | 1562 | 0.4289 | 0.8563 |
|
81 |
+
| 0.2763 | 26.0 | 1625 | 0.4125 | 0.8647 |
|
82 |
+
| 0.2707 | 26.99 | 1687 | 0.4231 | 0.8664 |
|
83 |
+
| 0.2585 | 28.0 | 1750 | 0.4210 | 0.8596 |
|
84 |
+
| 0.2317 | 28.99 | 1812 | 0.4296 | 0.8602 |
|
85 |
+
| 0.2118 | 30.0 | 1875 | 0.4440 | 0.8636 |
|
86 |
+
| 0.2224 | 30.99 | 1937 | 0.3928 | 0.8726 |
|
87 |
+
| 0.2166 | 32.0 | 2000 | 0.4246 | 0.8602 |
|
88 |
+
| 0.2038 | 32.99 | 2062 | 0.4146 | 0.8709 |
|
89 |
+
| 0.2183 | 34.0 | 2125 | 0.4165 | 0.8698 |
|
90 |
+
| 0.22 | 34.99 | 2187 | 0.4212 | 0.8766 |
|
91 |
+
| 0.206 | 36.0 | 2250 | 0.4139 | 0.8726 |
|
92 |
+
| 0.199 | 36.99 | 2312 | 0.3793 | 0.8833 |
|
93 |
+
| 0.1926 | 38.0 | 2375 | 0.4127 | 0.8839 |
|
94 |
+
| 0.1648 | 38.99 | 2437 | 0.4296 | 0.8822 |
|
95 |
+
| 0.1578 | 40.0 | 2500 | 0.4132 | 0.8833 |
|
96 |
+
| 0.181 | 40.99 | 2562 | 0.4217 | 0.8777 |
|
97 |
+
| 0.1735 | 42.0 | 2625 | 0.4186 | 0.8715 |
|
98 |
+
| 0.1603 | 42.99 | 2687 | 0.4117 | 0.8805 |
|
99 |
+
| 0.1516 | 44.0 | 2750 | 0.4250 | 0.8816 |
|
100 |
+
| 0.1733 | 44.99 | 2812 | 0.3914 | 0.8844 |
|
101 |
+
| 0.164 | 46.0 | 2875 | 0.4369 | 0.8828 |
|
102 |
+
| 0.1519 | 46.99 | 2937 | 0.4276 | 0.8771 |
|
103 |
+
| 0.1534 | 48.0 | 3000 | 0.4421 | 0.8822 |
|
104 |
+
| 0.158 | 48.99 | 3062 | 0.4240 | 0.8873 |
|
105 |
+
| 0.1531 | 50.0 | 3125 | 0.4250 | 0.8794 |
|
106 |
+
| 0.1286 | 50.99 | 3187 | 0.4228 | 0.8732 |
|
107 |
+
| 0.1396 | 52.0 | 3250 | 0.4317 | 0.8782 |
|
108 |
+
| 0.1436 | 52.99 | 3312 | 0.4361 | 0.8856 |
|
109 |
+
| 0.1411 | 54.0 | 3375 | 0.4402 | 0.8850 |
|
110 |
+
| 0.1312 | 54.99 | 3437 | 0.4327 | 0.8884 |
|
111 |
+
| 0.1359 | 56.0 | 3500 | 0.4144 | 0.8856 |
|
112 |
+
| 0.1361 | 56.99 | 3562 | 0.4181 | 0.8867 |
|
113 |
+
| 0.1272 | 58.0 | 3625 | 0.4204 | 0.8878 |
|
114 |
+
| 0.1222 | 58.99 | 3687 | 0.4137 | 0.8884 |
|
115 |
+
| 0.1272 | 60.0 | 3750 | 0.4317 | 0.8890 |
|
116 |
+
| 0.1132 | 60.99 | 3812 | 0.4351 | 0.8918 |
|
117 |
+
| 0.1239 | 62.0 | 3875 | 0.4348 | 0.8828 |
|
118 |
+
| 0.1188 | 62.99 | 3937 | 0.4258 | 0.8861 |
|
119 |
+
| 0.1203 | 64.0 | 4000 | 0.4318 | 0.8912 |
|
120 |
+
| 0.1204 | 64.99 | 4062 | 0.4055 | 0.8952 |
|
121 |
+
| 0.1053 | 66.0 | 4125 | 0.4222 | 0.8918 |
|
122 |
+
| 0.1187 | 66.99 | 4187 | 0.4248 | 0.8946 |
|
123 |
+
| 0.1129 | 68.0 | 4250 | 0.4302 | 0.8923 |
|
124 |
+
| 0.1117 | 68.99 | 4312 | 0.4149 | 0.8968 |
|
125 |
+
| 0.1194 | 70.0 | 4375 | 0.4160 | 0.8895 |
|
126 |
+
| 0.1003 | 70.99 | 4437 | 0.4256 | 0.8946 |
|
127 |
+
| 0.1088 | 72.0 | 4500 | 0.4356 | 0.8918 |
|
128 |
+
| 0.11 | 72.99 | 4562 | 0.4277 | 0.8935 |
|
129 |
+
| 0.1016 | 74.0 | 4625 | 0.4095 | 0.8952 |
|
130 |
+
| 0.0906 | 74.99 | 4687 | 0.4262 | 0.8935 |
|
131 |
+
| 0.0969 | 76.0 | 4750 | 0.4057 | 0.8940 |
|
132 |
+
| 0.111 | 76.99 | 4812 | 0.4099 | 0.8997 |
|
133 |
+
| 0.091 | 78.0 | 4875 | 0.4232 | 0.8963 |
|
134 |
+
| 0.1013 | 78.99 | 4937 | 0.4311 | 0.8884 |
|
135 |
+
| 0.119 | 80.0 | 5000 | 0.4302 | 0.8929 |
|
136 |
+
| 0.0877 | 80.99 | 5062 | 0.4369 | 0.8923 |
|
137 |
+
| 0.0926 | 82.0 | 5125 | 0.4353 | 0.8968 |
|
138 |
+
| 0.0969 | 82.99 | 5187 | 0.4336 | 0.8952 |
|
139 |
+
| 0.092 | 84.0 | 5250 | 0.4214 | 0.8935 |
|
140 |
+
| 0.0914 | 84.99 | 5312 | 0.4403 | 0.8890 |
|
141 |
+
| 0.0924 | 86.0 | 5375 | 0.4285 | 0.8929 |
|
142 |
+
| 0.0964 | 86.99 | 5437 | 0.4207 | 0.8968 |
|
143 |
+
| 0.0916 | 88.0 | 5500 | 0.4254 | 0.8946 |
|
144 |
+
| 0.0962 | 88.99 | 5562 | 0.4249 | 0.8980 |
|
145 |
+
| 0.0927 | 90.0 | 5625 | 0.4242 | 0.8935 |
|
146 |
+
| 0.0993 | 90.99 | 5687 | 0.4230 | 0.8985 |
|
147 |
+
| 0.0893 | 92.0 | 5750 | 0.4229 | 0.8980 |
|
148 |
+
| 0.0878 | 92.99 | 5812 | 0.4215 | 0.8985 |
|
149 |
+
| 0.0882 | 94.0 | 5875 | 0.4262 | 0.8980 |
|
150 |
+
| 0.0854 | 94.99 | 5937 | 0.4256 | 0.8974 |
|
151 |
+
| 0.0795 | 96.0 | 6000 | 0.4229 | 0.9008 |
|
152 |
+
| 0.0931 | 96.99 | 6062 | 0.4218 | 0.8991 |
|
153 |
+
| 0.0826 | 98.0 | 6125 | 0.4235 | 0.8985 |
|
154 |
+
| 0.0926 | 98.99 | 6187 | 0.4237 | 0.8985 |
|
155 |
+
| 0.0829 | 99.2 | 6200 | 0.4238 | 0.8985 |
|
156 |
+
|
157 |
+
|
158 |
+
### Framework versions
|
159 |
+
|
160 |
+
- Transformers 4.32.1
|
161 |
+
- Pytorch 2.0.1
|
162 |
+
- Datasets 2.12.0
|
163 |
+
- Tokenizers 0.13.2
|
adapter_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 12390295
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:82204f597841b73d292db3c64712a31bcd15ddedf097b63488160b46e867066f
|
3 |
size 12390295
|