Tingquan commited on
Commit
11839ce
·
verified ·
1 Parent(s): 444ddd1

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +258 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +205 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ inference.pdiparams filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Global": {
3
+ "model_name": "cyrillic_PP-OCRv3_mobile_rec"
4
+ },
5
+ "Hpi": {
6
+ "backend_configs": {
7
+ "paddle_infer": {
8
+ "trt_dynamic_shapes": {
9
+ "x": [
10
+ [
11
+ 1,
12
+ 3,
13
+ 48,
14
+ 160
15
+ ],
16
+ [
17
+ 1,
18
+ 3,
19
+ 48,
20
+ 320
21
+ ],
22
+ [
23
+ 8,
24
+ 3,
25
+ 48,
26
+ 3200
27
+ ]
28
+ ]
29
+ }
30
+ },
31
+ "tensorrt": {
32
+ "dynamic_shapes": {
33
+ "x": [
34
+ [
35
+ 1,
36
+ 3,
37
+ 48,
38
+ 160
39
+ ],
40
+ [
41
+ 1,
42
+ 3,
43
+ 48,
44
+ 320
45
+ ],
46
+ [
47
+ 8,
48
+ 3,
49
+ 48,
50
+ 3200
51
+ ]
52
+ ]
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "PreProcess": {
58
+ "transform_ops": [
59
+ {
60
+ "DecodeImage": {
61
+ "channel_first": false,
62
+ "img_mode": "BGR"
63
+ }
64
+ },
65
+ {
66
+ "MultiLabelEncode": null
67
+ },
68
+ {
69
+ "RecResizeImg": {
70
+ "image_shape": [
71
+ 3,
72
+ 48,
73
+ 320
74
+ ]
75
+ }
76
+ },
77
+ {
78
+ "KeepKeys": {
79
+ "keep_keys": [
80
+ "image",
81
+ "label_ctc",
82
+ "label_sar",
83
+ "length",
84
+ "valid_ratio"
85
+ ]
86
+ }
87
+ }
88
+ ]
89
+ },
90
+ "PostProcess": {
91
+ "name": "CTCLabelDecode",
92
+ "character_dict": [
93
+ " ",
94
+ "!",
95
+ "#",
96
+ "$",
97
+ "%",
98
+ "&",
99
+ "'",
100
+ "(",
101
+ "+",
102
+ ",",
103
+ "-",
104
+ ".",
105
+ "/",
106
+ "0",
107
+ "1",
108
+ "2",
109
+ "3",
110
+ "4",
111
+ "5",
112
+ "6",
113
+ "7",
114
+ "8",
115
+ "9",
116
+ ":",
117
+ "?",
118
+ "@",
119
+ "A",
120
+ "B",
121
+ "C",
122
+ "D",
123
+ "E",
124
+ "F",
125
+ "G",
126
+ "H",
127
+ "I",
128
+ "J",
129
+ "K",
130
+ "L",
131
+ "M",
132
+ "N",
133
+ "O",
134
+ "P",
135
+ "Q",
136
+ "R",
137
+ "S",
138
+ "T",
139
+ "U",
140
+ "V",
141
+ "W",
142
+ "X",
143
+ "Y",
144
+ "Z",
145
+ "_",
146
+ "a",
147
+ "b",
148
+ "c",
149
+ "d",
150
+ "e",
151
+ "f",
152
+ "g",
153
+ "h",
154
+ "i",
155
+ "j",
156
+ "k",
157
+ "l",
158
+ "m",
159
+ "n",
160
+ "o",
161
+ "p",
162
+ "q",
163
+ "r",
164
+ "s",
165
+ "t",
166
+ "u",
167
+ "v",
168
+ "w",
169
+ "x",
170
+ "y",
171
+ "z",
172
+ "É",
173
+ "é",
174
+ "Ё",
175
+ "Є",
176
+ "І",
177
+ "Ј",
178
+ "Љ",
179
+ "Ў",
180
+ "А",
181
+ "Б",
182
+ "В",
183
+ "Г",
184
+ "Д",
185
+ "Е",
186
+ "Ж",
187
+ "З",
188
+ "И",
189
+ "Й",
190
+ "К",
191
+ "Л",
192
+ "М",
193
+ "Н",
194
+ "О",
195
+ "П",
196
+ "Р",
197
+ "С",
198
+ "Т",
199
+ "У",
200
+ "Ф",
201
+ "Х",
202
+ "Ц",
203
+ "Ч",
204
+ "Ш",
205
+ "Щ",
206
+ "Ъ",
207
+ "Ы",
208
+ "Ь",
209
+ "Э",
210
+ "Ю",
211
+ "Я",
212
+ "а",
213
+ "б",
214
+ "в",
215
+ "г",
216
+ "д",
217
+ "е",
218
+ "ж",
219
+ "з",
220
+ "и",
221
+ "й",
222
+ "к",
223
+ "л",
224
+ "м",
225
+ "н",
226
+ "о",
227
+ "п",
228
+ "р",
229
+ "с",
230
+ "т",
231
+ "у",
232
+ "ф",
233
+ "х",
234
+ "ц",
235
+ "ч",
236
+ "ш",
237
+ "щ",
238
+ "ъ",
239
+ "ы",
240
+ "ь",
241
+ "э",
242
+ "ю",
243
+ "я",
244
+ "ё",
245
+ "ђ",
246
+ "є",
247
+ "і",
248
+ "ј",
249
+ "љ",
250
+ "њ",
251
+ "ћ",
252
+ "ў",
253
+ "џ",
254
+ "Ґ",
255
+ "ґ"
256
+ ]
257
+ }
258
+ }
inference.json ADDED
The diff for this file is too large to render. See raw diff
 
inference.pdiparams ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ef815afbb8970610618561946ce86faf60745ada64cd316ed34bfe34bdbf46f
3
+ size 8934498
inference.yml ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: cyrillic_PP-OCRv3_mobile_rec
3
+ Hpi:
4
+ backend_configs:
5
+ paddle_infer:
6
+ trt_dynamic_shapes: &id001
7
+ x:
8
+ - - 1
9
+ - 3
10
+ - 48
11
+ - 160
12
+ - - 1
13
+ - 3
14
+ - 48
15
+ - 320
16
+ - - 8
17
+ - 3
18
+ - 48
19
+ - 3200
20
+ tensorrt:
21
+ dynamic_shapes: *id001
22
+ PreProcess:
23
+ transform_ops:
24
+ - DecodeImage:
25
+ channel_first: false
26
+ img_mode: BGR
27
+ - MultiLabelEncode: null
28
+ - RecResizeImg:
29
+ image_shape:
30
+ - 3
31
+ - 48
32
+ - 320
33
+ - KeepKeys:
34
+ keep_keys:
35
+ - image
36
+ - label_ctc
37
+ - label_sar
38
+ - length
39
+ - valid_ratio
40
+ PostProcess:
41
+ name: CTCLabelDecode
42
+ character_dict:
43
+ - ' '
44
+ - '!'
45
+ - '#'
46
+ - $
47
+ - '%'
48
+ - '&'
49
+ - ''''
50
+ - (
51
+ - +
52
+ - ','
53
+ - '-'
54
+ - .
55
+ - /
56
+ - '0'
57
+ - '1'
58
+ - '2'
59
+ - '3'
60
+ - '4'
61
+ - '5'
62
+ - '6'
63
+ - '7'
64
+ - '8'
65
+ - '9'
66
+ - ':'
67
+ - '?'
68
+ - '@'
69
+ - A
70
+ - B
71
+ - C
72
+ - D
73
+ - E
74
+ - F
75
+ - G
76
+ - H
77
+ - I
78
+ - J
79
+ - K
80
+ - L
81
+ - M
82
+ - N
83
+ - O
84
+ - P
85
+ - Q
86
+ - R
87
+ - S
88
+ - T
89
+ - U
90
+ - V
91
+ - W
92
+ - X
93
+ - Y
94
+ - Z
95
+ - _
96
+ - a
97
+ - b
98
+ - c
99
+ - d
100
+ - e
101
+ - f
102
+ - g
103
+ - h
104
+ - i
105
+ - j
106
+ - k
107
+ - l
108
+ - m
109
+ - n
110
+ - o
111
+ - p
112
+ - q
113
+ - r
114
+ - s
115
+ - t
116
+ - u
117
+ - v
118
+ - w
119
+ - x
120
+ - y
121
+ - z
122
+ - É
123
+ - é
124
+ - Ё
125
+ - Є
126
+ - І
127
+ - Ј
128
+ - Љ
129
+ - Ў
130
+ - А
131
+ - Б
132
+ - В
133
+ - Г
134
+ - Д
135
+ - Е
136
+ - Ж
137
+ - З
138
+ - И
139
+ - Й
140
+ - К
141
+ - Л
142
+ - М
143
+ - Н
144
+ - О
145
+ - П
146
+ - Р
147
+ - С
148
+ - Т
149
+ - У
150
+ - Ф
151
+ - Х
152
+ - Ц
153
+ - Ч
154
+ - Ш
155
+ - Щ
156
+ - Ъ
157
+ - Ы
158
+ - Ь
159
+ - Э
160
+ - Ю
161
+ - Я
162
+ - а
163
+ - б
164
+ - в
165
+ - г
166
+ - д
167
+ - е
168
+ - ж
169
+ - з
170
+ - и
171
+ - й
172
+ - к
173
+ - л
174
+ - м
175
+ - н
176
+ - о
177
+ - п
178
+ - р
179
+ - с
180
+ - т
181
+ - у
182
+ - ф
183
+ - х
184
+ - ц
185
+ - ч
186
+ - ш
187
+ - щ
188
+ - ъ
189
+ - ы
190
+ - ь
191
+ - э
192
+ - ю
193
+ - я
194
+ - ё
195
+ - ђ
196
+ - є
197
+ - і
198
+ - ј
199
+ - љ
200
+ - њ
201
+ - ћ
202
+ - ў
203
+ - џ
204
+ - Ґ
205
+ - ґ