End of training
Browse files- README.md +134 -0
- config.json +118 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: microsoft/cvt-13-384-22k
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: cvt-13-384-22k-finetuned-LeafBack
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: Image Classification
|
15 |
+
type: image-classification
|
16 |
+
dataset:
|
17 |
+
name: imagefolder
|
18 |
+
type: imagefolder
|
19 |
+
config: default
|
20 |
+
split: validation
|
21 |
+
args: default
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.948051948051948
|
26 |
+
---
|
27 |
+
|
28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
29 |
+
should probably proofread and complete it, then remove this comment. -->
|
30 |
+
|
31 |
+
# cvt-13-384-22k-finetuned-LeafBack
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [microsoft/cvt-13-384-22k](https://huggingface.co/microsoft/cvt-13-384-22k) on the imagefolder dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.1695
|
36 |
+
- Accuracy: 0.9481
|
37 |
+
|
38 |
+
## Model description
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Intended uses & limitations
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training and evaluation data
|
47 |
+
|
48 |
+
More information needed
|
49 |
+
|
50 |
+
## Training procedure
|
51 |
+
|
52 |
+
### Training hyperparameters
|
53 |
+
|
54 |
+
The following hyperparameters were used during training:
|
55 |
+
- learning_rate: 2e-05
|
56 |
+
- train_batch_size: 100
|
57 |
+
- eval_batch_size: 50
|
58 |
+
- seed: 42
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- num_epochs: 60
|
62 |
+
|
63 |
+
### Training results
|
64 |
+
|
65 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
66 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
67 |
+
| No log | 1.0 | 7 | 0.6404 | 0.6623 |
|
68 |
+
| No log | 2.0 | 14 | 0.5304 | 0.7273 |
|
69 |
+
| No log | 3.0 | 21 | 0.4551 | 0.7922 |
|
70 |
+
| No log | 4.0 | 28 | 0.3175 | 0.8571 |
|
71 |
+
| No log | 5.0 | 35 | 0.2922 | 0.8701 |
|
72 |
+
| No log | 6.0 | 42 | 0.2964 | 0.8701 |
|
73 |
+
| No log | 7.0 | 49 | 0.2839 | 0.8701 |
|
74 |
+
| No log | 8.0 | 56 | 0.2930 | 0.8571 |
|
75 |
+
| No log | 9.0 | 63 | 0.2856 | 0.8831 |
|
76 |
+
| No log | 10.0 | 70 | 0.2969 | 0.8831 |
|
77 |
+
| No log | 11.0 | 77 | 0.3002 | 0.8701 |
|
78 |
+
| No log | 12.0 | 84 | 0.2919 | 0.8831 |
|
79 |
+
| No log | 13.0 | 91 | 0.2780 | 0.8961 |
|
80 |
+
| No log | 14.0 | 98 | 0.2733 | 0.8831 |
|
81 |
+
| No log | 15.0 | 105 | 0.2489 | 0.8961 |
|
82 |
+
| No log | 16.0 | 112 | 0.2569 | 0.8961 |
|
83 |
+
| No log | 17.0 | 119 | 0.2371 | 0.9091 |
|
84 |
+
| No log | 18.0 | 126 | 0.2367 | 0.9091 |
|
85 |
+
| No log | 19.0 | 133 | 0.2297 | 0.9091 |
|
86 |
+
| No log | 20.0 | 140 | 0.2170 | 0.9221 |
|
87 |
+
| No log | 21.0 | 147 | 0.2132 | 0.9351 |
|
88 |
+
| No log | 22.0 | 154 | 0.2080 | 0.9351 |
|
89 |
+
| No log | 23.0 | 161 | 0.2010 | 0.9481 |
|
90 |
+
| No log | 24.0 | 168 | 0.2106 | 0.9221 |
|
91 |
+
| No log | 25.0 | 175 | 0.2055 | 0.9351 |
|
92 |
+
| No log | 26.0 | 182 | 0.1982 | 0.9481 |
|
93 |
+
| No log | 27.0 | 189 | 0.2105 | 0.9351 |
|
94 |
+
| No log | 28.0 | 196 | 0.2204 | 0.9351 |
|
95 |
+
| No log | 29.0 | 203 | 0.2095 | 0.9351 |
|
96 |
+
| No log | 30.0 | 210 | 0.2107 | 0.9221 |
|
97 |
+
| No log | 31.0 | 217 | 0.1808 | 0.9221 |
|
98 |
+
| No log | 32.0 | 224 | 0.1711 | 0.9351 |
|
99 |
+
| No log | 33.0 | 231 | 0.1777 | 0.9351 |
|
100 |
+
| No log | 34.0 | 238 | 0.1700 | 0.9351 |
|
101 |
+
| No log | 35.0 | 245 | 0.1743 | 0.9221 |
|
102 |
+
| No log | 36.0 | 252 | 0.1877 | 0.9481 |
|
103 |
+
| No log | 37.0 | 259 | 0.1855 | 0.9481 |
|
104 |
+
| No log | 38.0 | 266 | 0.1792 | 0.9481 |
|
105 |
+
| No log | 39.0 | 273 | 0.1607 | 0.9481 |
|
106 |
+
| No log | 40.0 | 280 | 0.1681 | 0.9481 |
|
107 |
+
| No log | 41.0 | 287 | 0.1768 | 0.9481 |
|
108 |
+
| No log | 42.0 | 294 | 0.1909 | 0.9481 |
|
109 |
+
| No log | 43.0 | 301 | 0.1812 | 0.9481 |
|
110 |
+
| No log | 44.0 | 308 | 0.1822 | 0.9481 |
|
111 |
+
| No log | 45.0 | 315 | 0.1731 | 0.9481 |
|
112 |
+
| No log | 46.0 | 322 | 0.1846 | 0.9351 |
|
113 |
+
| No log | 47.0 | 329 | 0.1846 | 0.9481 |
|
114 |
+
| No log | 48.0 | 336 | 0.1915 | 0.9351 |
|
115 |
+
| No log | 49.0 | 343 | 0.1879 | 0.9351 |
|
116 |
+
| No log | 50.0 | 350 | 0.1860 | 0.9351 |
|
117 |
+
| No log | 51.0 | 357 | 0.1907 | 0.9351 |
|
118 |
+
| No log | 52.0 | 364 | 0.1729 | 0.9481 |
|
119 |
+
| No log | 53.0 | 371 | 0.1837 | 0.9351 |
|
120 |
+
| No log | 54.0 | 378 | 0.1793 | 0.9351 |
|
121 |
+
| No log | 55.0 | 385 | 0.1783 | 0.9481 |
|
122 |
+
| No log | 56.0 | 392 | 0.1844 | 0.9351 |
|
123 |
+
| No log | 57.0 | 399 | 0.1724 | 0.9351 |
|
124 |
+
| No log | 58.0 | 406 | 0.1819 | 0.9351 |
|
125 |
+
| No log | 59.0 | 413 | 0.1792 | 0.9351 |
|
126 |
+
| No log | 60.0 | 420 | 0.1695 | 0.9481 |
|
127 |
+
|
128 |
+
|
129 |
+
### Framework versions
|
130 |
+
|
131 |
+
- Transformers 4.38.1
|
132 |
+
- Pytorch 1.10.0+cu111
|
133 |
+
- Datasets 2.17.1
|
134 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/cvt-13-384-22k",
|
3 |
+
"architectures": [
|
4 |
+
"CvtForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_drop_rate": [
|
7 |
+
0.0,
|
8 |
+
0.0,
|
9 |
+
0.0
|
10 |
+
],
|
11 |
+
"cls_token": [
|
12 |
+
false,
|
13 |
+
false,
|
14 |
+
true
|
15 |
+
],
|
16 |
+
"depth": [
|
17 |
+
1,
|
18 |
+
2,
|
19 |
+
10
|
20 |
+
],
|
21 |
+
"drop_path_rate": [
|
22 |
+
0.0,
|
23 |
+
0.0,
|
24 |
+
0.1
|
25 |
+
],
|
26 |
+
"drop_rate": [
|
27 |
+
0.0,
|
28 |
+
0.0,
|
29 |
+
0.0
|
30 |
+
],
|
31 |
+
"embed_dim": [
|
32 |
+
64,
|
33 |
+
192,
|
34 |
+
384
|
35 |
+
],
|
36 |
+
"id2label": {
|
37 |
+
"0": "leafmold",
|
38 |
+
"1": "powdery"
|
39 |
+
},
|
40 |
+
"image_size": 384,
|
41 |
+
"initializer_range": 0.02,
|
42 |
+
"kernel_qkv": [
|
43 |
+
3,
|
44 |
+
3,
|
45 |
+
3
|
46 |
+
],
|
47 |
+
"label2id": {
|
48 |
+
"leafmold": 0,
|
49 |
+
"powdery": 1
|
50 |
+
},
|
51 |
+
"layer_norm_eps": 1e-12,
|
52 |
+
"mlp_ratio": [
|
53 |
+
4.0,
|
54 |
+
4.0,
|
55 |
+
4.0
|
56 |
+
],
|
57 |
+
"model_type": "cvt",
|
58 |
+
"num_channels": 3,
|
59 |
+
"num_heads": [
|
60 |
+
1,
|
61 |
+
3,
|
62 |
+
6
|
63 |
+
],
|
64 |
+
"num_stages": 3,
|
65 |
+
"padding_kv": [
|
66 |
+
1,
|
67 |
+
1,
|
68 |
+
1
|
69 |
+
],
|
70 |
+
"padding_q": [
|
71 |
+
1,
|
72 |
+
1,
|
73 |
+
1
|
74 |
+
],
|
75 |
+
"patch_padding": [
|
76 |
+
2,
|
77 |
+
1,
|
78 |
+
1
|
79 |
+
],
|
80 |
+
"patch_sizes": [
|
81 |
+
7,
|
82 |
+
3,
|
83 |
+
3
|
84 |
+
],
|
85 |
+
"patch_stride": [
|
86 |
+
4,
|
87 |
+
2,
|
88 |
+
2
|
89 |
+
],
|
90 |
+
"pos_embed": [
|
91 |
+
false,
|
92 |
+
false,
|
93 |
+
false
|
94 |
+
],
|
95 |
+
"problem_type": "single_label_classification",
|
96 |
+
"qkv_bias": [
|
97 |
+
true,
|
98 |
+
true,
|
99 |
+
true
|
100 |
+
],
|
101 |
+
"qkv_projection_method": [
|
102 |
+
"dw_bn",
|
103 |
+
"dw_bn",
|
104 |
+
"dw_bn"
|
105 |
+
],
|
106 |
+
"stride_kv": [
|
107 |
+
2,
|
108 |
+
2,
|
109 |
+
2
|
110 |
+
],
|
111 |
+
"stride_q": [
|
112 |
+
1,
|
113 |
+
1,
|
114 |
+
1
|
115 |
+
],
|
116 |
+
"torch_dtype": "float32",
|
117 |
+
"transformers_version": "4.38.1"
|
118 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:865c08f646c0f338914011f390119b8fcf42eaf8e00fcf49c0ffc7c8c866e790
|
3 |
+
size 78629584
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTImageProcessor",
|
11 |
+
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"resample": 2,
|
17 |
+
"rescale_factor": 0.00392156862745098,
|
18 |
+
"size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
}
|
22 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:67438c3d06ce8a1877c21e0e3ceb4a6fe7f7d7f28043fde33e8c634a8960e0b0
|
3 |
+
size 4399
|