hf-transformers-bot commited on
Commit
d36b4c9
1 Parent(s): 5280c81

Upload tiny models for CvtForImageClassification

Browse files
Files changed (4) hide show
  1. config.json +103 -0
  2. preprocessor_config.json +23 -0
  3. pytorch_model.bin +3 -0
  4. tf_model.h5 +3 -0
config.json ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "tiny_models/cvt/CvtForImageClassification",
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
+ 16,
33
+ 48,
34
+ 96
35
+ ],
36
+ "image_size": 64,
37
+ "initializer_range": 0.02,
38
+ "kernel_qkv": [
39
+ 3,
40
+ 3,
41
+ 3
42
+ ],
43
+ "layer_norm_eps": 1e-12,
44
+ "mlp_ratio": [
45
+ 4.0,
46
+ 4.0,
47
+ 4.0
48
+ ],
49
+ "model_type": "cvt",
50
+ "num_channels": 3,
51
+ "num_heads": [
52
+ 1,
53
+ 3,
54
+ 6
55
+ ],
56
+ "padding_kv": [
57
+ 1,
58
+ 1,
59
+ 1
60
+ ],
61
+ "padding_q": [
62
+ 1,
63
+ 1,
64
+ 1
65
+ ],
66
+ "patch_padding": [
67
+ 2,
68
+ 1,
69
+ 1
70
+ ],
71
+ "patch_sizes": [
72
+ 7,
73
+ 3,
74
+ 3
75
+ ],
76
+ "patch_stride": [
77
+ 4,
78
+ 2,
79
+ 2
80
+ ],
81
+ "qkv_bias": [
82
+ true,
83
+ true,
84
+ true
85
+ ],
86
+ "qkv_projection_method": [
87
+ "dw_bn",
88
+ "dw_bn",
89
+ "dw_bn"
90
+ ],
91
+ "stride_kv": [
92
+ 2,
93
+ 2,
94
+ 2
95
+ ],
96
+ "stride_q": [
97
+ 1,
98
+ 1,
99
+ 1
100
+ ],
101
+ "torch_dtype": "float32",
102
+ "transformers_version": "4.28.0.dev0"
103
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_pct": 0.875,
3
+ "crop_size": 64,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.5,
9
+ 0.5,
10
+ 0.5
11
+ ],
12
+ "image_processor_type": "ConvNextImageProcessor",
13
+ "image_std": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "resample": 2,
19
+ "rescale_factor": 0.00392156862745098,
20
+ "size": {
21
+ "shortest_edge": 64
22
+ }
23
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d4b9340eda27c85f50b954855dae07e857c41945a0d21002262850075bd154a
3
+ size 5257145
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35997f7c148a7a1abe29ac5b1479cb2d310f8cafef02d8f4043a2493d43ca3f8
3
+ size 5665000