hf-transformers-bot commited on
Commit
309611c
·
verified ·
1 Parent(s): 2a647c6

Update tiny models for PPOCRV5MobileDetForObjectDetection

Browse files
Files changed (3) hide show
  1. config.json +174 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +38 -0
config.json ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "PPOCRV5MobileDetForObjectDetection"
4
+ ],
5
+ "backbone_config": {
6
+ "block_configs": [
7
+ [
8
+ [
9
+ 3,
10
+ 16,
11
+ 32,
12
+ 1,
13
+ false
14
+ ]
15
+ ],
16
+ [
17
+ [
18
+ 3,
19
+ 32,
20
+ 32,
21
+ 2,
22
+ false
23
+ ],
24
+ [
25
+ 3,
26
+ 32,
27
+ 32,
28
+ 1,
29
+ false
30
+ ]
31
+ ],
32
+ [
33
+ [
34
+ 3,
35
+ 32,
36
+ 32,
37
+ 2,
38
+ false
39
+ ],
40
+ [
41
+ 3,
42
+ 32,
43
+ 32,
44
+ 1,
45
+ false
46
+ ]
47
+ ],
48
+ [
49
+ [
50
+ 3,
51
+ 32,
52
+ 32,
53
+ 2,
54
+ false
55
+ ],
56
+ [
57
+ 5,
58
+ 32,
59
+ 32,
60
+ 1,
61
+ false
62
+ ],
63
+ [
64
+ 5,
65
+ 32,
66
+ 32,
67
+ 1,
68
+ false
69
+ ],
70
+ [
71
+ 5,
72
+ 32,
73
+ 32,
74
+ 1,
75
+ false
76
+ ],
77
+ [
78
+ 5,
79
+ 32,
80
+ 32,
81
+ 1,
82
+ false
83
+ ]
84
+ ],
85
+ [
86
+ [
87
+ 5,
88
+ 32,
89
+ 32,
90
+ 2,
91
+ true
92
+ ],
93
+ [
94
+ 5,
95
+ 32,
96
+ 32,
97
+ 1,
98
+ true
99
+ ],
100
+ [
101
+ 5,
102
+ 32,
103
+ 32,
104
+ 1,
105
+ false
106
+ ],
107
+ [
108
+ 5,
109
+ 32,
110
+ 32,
111
+ 1,
112
+ false
113
+ ]
114
+ ]
115
+ ],
116
+ "conv_symmetric_num": 4,
117
+ "depths": [
118
+ 1,
119
+ 2,
120
+ 2,
121
+ 5,
122
+ 4
123
+ ],
124
+ "divisor": 16,
125
+ "hidden_act": "hardswish",
126
+ "model_type": "pp_lcnet_v3",
127
+ "out_features": [
128
+ "stage2",
129
+ "stage3",
130
+ "stage4",
131
+ "stage5"
132
+ ],
133
+ "out_indices": [
134
+ 2,
135
+ 3,
136
+ 4,
137
+ 5
138
+ ],
139
+ "reduction": 4,
140
+ "scale": 1,
141
+ "stage_names": [
142
+ "stem",
143
+ "stage1",
144
+ "stage2",
145
+ "stage3",
146
+ "stage4",
147
+ "stage5"
148
+ ],
149
+ "stem_channels": 16,
150
+ "stem_stride": 2
151
+ },
152
+ "dtype": "float32",
153
+ "hidden_act": "hardswish",
154
+ "id2label": {
155
+ "0": "text"
156
+ },
157
+ "interpolate_mode": "nearest",
158
+ "kernel_list": [
159
+ 3,
160
+ 2,
161
+ 2
162
+ ],
163
+ "label2id": null,
164
+ "layer_list_out_channels": [
165
+ 12,
166
+ 24,
167
+ 42,
168
+ 360
169
+ ],
170
+ "model_type": "pp_ocrv5_mobile_det",
171
+ "neck_out_channels": 96,
172
+ "reduction": 4,
173
+ "transformers_version": "5.16.0.dev0"
174
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7667e036bf9823a7b793e279eb08d7970ea88ed96bfe4ecee0d007f9f20d8754
3
+ size 1331924
preprocessor_config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "channel_first": false,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.406,
8
+ 0.456,
9
+ 0.485
10
+ ],
11
+ "image_mode": "BGR",
12
+ "image_processor_type": "PPOCRV5ServerDetImageProcessor",
13
+ "image_std": [
14
+ 0.225,
15
+ 0.224,
16
+ 0.229
17
+ ],
18
+ "keep_keys": [
19
+ "image",
20
+ "shape",
21
+ "polys",
22
+ "ignore_tags"
23
+ ],
24
+ "limit_side_len": 960,
25
+ "limit_type": "max",
26
+ "max_side_limit": 4000,
27
+ "model_input_names": [
28
+ "pixel_values",
29
+ "original_image_size"
30
+ ],
31
+ "model_type": "pp_ocrv5_mobile_det",
32
+ "resample": 2,
33
+ "rescale_factor": 0.00392156862745098,
34
+ "size": {
35
+ "height": 960,
36
+ "width": 960
37
+ }
38
+ }