b07611031 commited on
Commit
ed2674d
1 Parent(s): 8a02b13

End of training

Browse files
Files changed (5) hide show
  1. README.md +72 -0
  2. config.json +111 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +22 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: microsoft/cvt-w24-384-22k
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: cvt-w24-384-22k-finetuned-LeafType-v1
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.8866995073891626
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-w24-384-22k-finetuned-LeafType-v1
32
+
33
+ This model is a fine-tuned version of [microsoft/cvt-w24-384-22k](https://huggingface.co/microsoft/cvt-w24-384-22k) on the imagefolder dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.5823
36
+ - Accuracy: 0.8867
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: 0.0005
56
+ - train_batch_size: 32
57
+ - eval_batch_size: 16
58
+ - seed: 42
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - num_epochs: 30
62
+
63
+ ### Training results
64
+
65
+
66
+
67
+ ### Framework versions
68
+
69
+ - Transformers 4.38.1
70
+ - Pytorch 1.10.0+cu111
71
+ - Datasets 2.17.1
72
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/cvt-w24-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
+ 2,
18
+ 2,
19
+ 20
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
+ 192,
33
+ 768,
34
+ 1024
35
+ ],
36
+ "id2label": {
37
+ "0": "leaflet",
38
+ "1": "pinnate"
39
+ },
40
+ "initializer_range": 0.02,
41
+ "kernel_qkv": [
42
+ 3,
43
+ 3,
44
+ 3
45
+ ],
46
+ "label2id": {
47
+ "leaflet": 0,
48
+ "pinnate": 1
49
+ },
50
+ "layer_norm_eps": 1e-12,
51
+ "mlp_ratio": [
52
+ 4.0,
53
+ 4.0,
54
+ 4.0
55
+ ],
56
+ "model_type": "cvt",
57
+ "num_channels": 3,
58
+ "num_heads": [
59
+ 3,
60
+ 12,
61
+ 16
62
+ ],
63
+ "padding_kv": [
64
+ 1,
65
+ 1,
66
+ 1
67
+ ],
68
+ "padding_q": [
69
+ 1,
70
+ 1,
71
+ 1
72
+ ],
73
+ "patch_padding": [
74
+ 2,
75
+ 1,
76
+ 1
77
+ ],
78
+ "patch_sizes": [
79
+ 7,
80
+ 3,
81
+ 3
82
+ ],
83
+ "patch_stride": [
84
+ 4,
85
+ 2,
86
+ 2
87
+ ],
88
+ "problem_type": "single_label_classification",
89
+ "qkv_bias": [
90
+ true,
91
+ true,
92
+ true
93
+ ],
94
+ "qkv_projection_method": [
95
+ "dw_bn",
96
+ "dw_bn",
97
+ "dw_bn"
98
+ ],
99
+ "stride_kv": [
100
+ 2,
101
+ 2,
102
+ 2
103
+ ],
104
+ "stride_q": [
105
+ 1,
106
+ 1,
107
+ 1
108
+ ],
109
+ "torch_dtype": "float32",
110
+ "transformers_version": "4.38.1"
111
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c03833158e2b7fab9a0027a442daa46686c24bf493db02765f8c096d9c680ab6
3
+ size 1105368576
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:c8f199c80a3cc665b7c7ed94f2a54f8af0bc5d888047cfe19f6c83f484e6810f
3
+ size 4399