Tingquan commited on
Commit
27184dc
·
verified ·
1 Parent(s): cefec98

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +451 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +397 -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,451 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Global": {
3
+ "model_name": "el_PP-OCRv5_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": {
67
+ "gtc_encode": "NRTRLabelEncode"
68
+ }
69
+ },
70
+ {
71
+ "RecResizeImg": {
72
+ "image_shape": [
73
+ 3,
74
+ 48,
75
+ 320
76
+ ]
77
+ }
78
+ },
79
+ {
80
+ "KeepKeys": {
81
+ "keep_keys": [
82
+ "image",
83
+ "label_ctc",
84
+ "label_gtc",
85
+ "length",
86
+ "valid_ratio"
87
+ ]
88
+ }
89
+ }
90
+ ]
91
+ },
92
+ "PostProcess": {
93
+ "name": "CTCLabelDecode",
94
+ "character_dict": [
95
+ "!",
96
+ "\"",
97
+ "#",
98
+ "$",
99
+ "%",
100
+ "&",
101
+ "'",
102
+ "(",
103
+ ")",
104
+ "*",
105
+ "+",
106
+ ",",
107
+ "-",
108
+ ".",
109
+ "/",
110
+ "0",
111
+ "1",
112
+ "2",
113
+ "3",
114
+ "4",
115
+ "5",
116
+ "6",
117
+ "7",
118
+ "8",
119
+ "9",
120
+ ":",
121
+ ";",
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
+ "∝",
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
+ "ⅳ",
259
+ "ⅴ",
260
+ "ⅵ",
261
+ "ⅶ",
262
+ "ⅷ",
263
+ "ⅸ",
264
+ "ⅹ",
265
+ "ⅺ",
266
+ "ⅻ",
267
+ "①",
268
+ "②",
269
+ "③",
270
+ "④",
271
+ "⑤",
272
+ "⑥",
273
+ "⑦",
274
+ "⑧",
275
+ "⑨",
276
+ "⑩",
277
+ "❶",
278
+ "❷",
279
+ "❸",
280
+ "❹",
281
+ "❺",
282
+ "❻",
283
+ "❼",
284
+ "❽",
285
+ "❾",
286
+ "❿",
287
+ "A",
288
+ "B",
289
+ "C",
290
+ "D",
291
+ "E",
292
+ "F",
293
+ "G",
294
+ "H",
295
+ "I",
296
+ "J",
297
+ "K",
298
+ "L",
299
+ "M",
300
+ "N",
301
+ "O",
302
+ "P",
303
+ "Q",
304
+ "R",
305
+ "S",
306
+ "T",
307
+ "U",
308
+ "V",
309
+ "W",
310
+ "X",
311
+ "Y",
312
+ "Z",
313
+ "a",
314
+ "b",
315
+ "c",
316
+ "d",
317
+ "e",
318
+ "f",
319
+ "g",
320
+ "h",
321
+ "i",
322
+ "j",
323
+ "k",
324
+ "l",
325
+ "m",
326
+ "n",
327
+ "o",
328
+ "p",
329
+ "q",
330
+ "r",
331
+ "s",
332
+ "t",
333
+ "u",
334
+ "v",
335
+ "w",
336
+ "x",
337
+ "y",
338
+ "z",
339
+ "Α",
340
+ "Β",
341
+ "Γ",
342
+ "Δ",
343
+ "Ε",
344
+ "Ζ",
345
+ "Η",
346
+ "Θ",
347
+ "Ι",
348
+ "Κ",
349
+ "Λ",
350
+ "Μ",
351
+ "Ν",
352
+ "Ξ",
353
+ "Ο",
354
+ "Π",
355
+ "Ρ",
356
+ "Σ",
357
+ "Τ",
358
+ "Υ",
359
+ "Φ",
360
+ "Χ",
361
+ "Ψ",
362
+ "Ω",
363
+ "ά",
364
+ "έ",
365
+ "ή",
366
+ "ί",
367
+ "Ό",
368
+ "ύ",
369
+ "ώ",
370
+ "Ϊ",
371
+ "Ϋ",
372
+ "Ά",
373
+ "Έ",
374
+ "Ή",
375
+ "Ί",
376
+ "Ό",
377
+ "Ύ",
378
+ "Ώ",
379
+ "ϊ",
380
+ "ΐ",
381
+ "ϋ",
382
+ "ΰ",
383
+ "α",
384
+ "β",
385
+ "γ",
386
+ "δ",
387
+ "ε",
388
+ "ζ",
389
+ "η",
390
+ "θ",
391
+ "ι",
392
+ "κ",
393
+ "λ",
394
+ "μ",
395
+ "ν",
396
+ "ξ",
397
+ "ο",
398
+ "π",
399
+ "ρ",
400
+ "ς",
401
+ "σ",
402
+ "τ",
403
+ "υ",
404
+ "φ",
405
+ "χ",
406
+ "ψ",
407
+ "ω",
408
+ "ϐ",
409
+ "ϑ",
410
+ "ϒ",
411
+ "ϓ",
412
+ "ϔ",
413
+ "ϕ",
414
+ "ϖ",
415
+ "Ϛ",
416
+ "ϛ",
417
+ "Ϝ",
418
+ "ϝ",
419
+ "Ϟ",
420
+ "ϟ",
421
+ "Ϡ",
422
+ "ϡ",
423
+ "Ϣ",
424
+ "ϣ",
425
+ "Ϥ",
426
+ "ϥ",
427
+ "Ϧ",
428
+ "ϧ",
429
+ "Ϩ",
430
+ "ϩ",
431
+ "Ϫ",
432
+ "ϫ",
433
+ "Ϭ",
434
+ "ϭ",
435
+ "Ϯ",
436
+ "ϯ",
437
+ "ϰ",
438
+ "ϱ",
439
+ "ϲ",
440
+ "ϳ",
441
+ "ϴ",
442
+ "ϵ",
443
+ "϶",
444
+ "Ϸ",
445
+ "ϸ",
446
+ "Ϲ",
447
+ "Ϻ",
448
+ "ϻ"
449
+ ]
450
+ }
451
+ }
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:34749e1517520dbef741e507c8c8665c301d586bbb041b469a3433dc2eec18c7
3
+ size 7732627
inference.yml ADDED
@@ -0,0 +1,397 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: el_PP-OCRv5_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:
28
+ gtc_encode: NRTRLabelEncode
29
+ - RecResizeImg:
30
+ image_shape:
31
+ - 3
32
+ - 48
33
+ - 320
34
+ - KeepKeys:
35
+ keep_keys:
36
+ - image
37
+ - label_ctc
38
+ - label_gtc
39
+ - length
40
+ - valid_ratio
41
+ PostProcess:
42
+ name: CTCLabelDecode
43
+ character_dict:
44
+ - '!'
45
+ - '"'
46
+ - '#'
47
+ - $
48
+ - '%'
49
+ - '&'
50
+ - ''''
51
+ - (
52
+ - )
53
+ - '*'
54
+ - +
55
+ - ','
56
+ - '-'
57
+ - .
58
+ - /
59
+ - '0'
60
+ - '1'
61
+ - '2'
62
+ - '3'
63
+ - '4'
64
+ - '5'
65
+ - '6'
66
+ - '7'
67
+ - '8'
68
+ - '9'
69
+ - ':'
70
+ - ;
71
+ - <
72
+ - '='
73
+ - '>'
74
+ - '?'
75
+ - '@'
76
+ - '['
77
+ - ']'
78
+ - _
79
+ - '`'
80
+ - ^
81
+ - '~'
82
+ - ©
83
+ - ®
84
+ - ™
85
+ - °
86
+ - ²
87
+ - ³
88
+ - ´
89
+ - µ
90
+ - ¶
91
+ - ·
92
+ - ¸
93
+ - ¹
94
+ - º
95
+ - »
96
+ - ¼
97
+ - ½
98
+ - ¾
99
+ - ¿
100
+ - ×
101
+ - ÷
102
+ - ‖
103
+ - ‗
104
+ - ‘
105
+ - ’
106
+ - ‚
107
+ - ‛
108
+ - “
109
+ - ”
110
+ - „
111
+ - †
112
+ - ‡
113
+ - …
114
+ - ‰
115
+ - ′
116
+ - ″
117
+ - ‴
118
+ - ‵
119
+ - ‶
120
+ - ‷
121
+ - ‹
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
+ - ⅱ
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
+ - A
237
+ - B
238
+ - C
239
+ - D
240
+ - E
241
+ - F
242
+ - G
243
+ - H
244
+ - I
245
+ - J
246
+ - K
247
+ - L
248
+ - M
249
+ - N
250
+ - O
251
+ - P
252
+ - Q
253
+ - R
254
+ - S
255
+ - T
256
+ - U
257
+ - V
258
+ - W
259
+ - X
260
+ - Y
261
+ - Z
262
+ - a
263
+ - b
264
+ - c
265
+ - d
266
+ - e
267
+ - f
268
+ - g
269
+ - h
270
+ - i
271
+ - j
272
+ - k
273
+ - l
274
+ - m
275
+ - n
276
+ - o
277
+ - p
278
+ - q
279
+ - r
280
+ - s
281
+ - t
282
+ - u
283
+ - v
284
+ - w
285
+ - x
286
+ - y
287
+ - z
288
+ - Α
289
+ - Β
290
+ - Γ
291
+ - Δ
292
+ - Ε
293
+ - Ζ
294
+ - Η
295
+ - Θ
296
+ - Ι
297
+ - Κ
298
+ - Λ
299
+ - Μ
300
+ - Ν
301
+ - Ξ
302
+ - Ο
303
+ - Π
304
+ - Ρ
305
+ - Σ
306
+ - Τ
307
+ - Υ
308
+ - Φ
309
+ - Χ
310
+ - Ψ
311
+ - Ω
312
+ - ά
313
+ - έ
314
+ - ή
315
+ - ί
316
+ - Ό
317
+ - ύ
318
+ - ώ
319
+ - Ϊ
320
+ - Ϋ
321
+ - Ά
322
+ - Έ
323
+ - Ή
324
+ - Ί
325
+ - Ό
326
+ - Ύ
327
+ - Ώ
328
+ - ϊ
329
+ - ΐ
330
+ - ϋ
331
+ - ΰ
332
+ - α
333
+ - β
334
+ - γ
335
+ - δ
336
+ - ε
337
+ - ζ
338
+ - η
339
+ - θ
340
+ - ι
341
+ - κ
342
+ - λ
343
+ - μ
344
+ - ν
345
+ - ξ
346
+ - ο
347
+ - π
348
+ - ρ
349
+ - ς
350
+ - σ
351
+ - τ
352
+ - υ
353
+ - φ
354
+ - χ
355
+ - ψ
356
+ - ω
357
+ - ϐ
358
+ - ϑ
359
+ - ϒ
360
+ - ϓ
361
+ - ϔ
362
+ - ϕ
363
+ - ϖ
364
+ - Ϛ
365
+ - ϛ
366
+ - Ϝ
367
+ - ϝ
368
+ - Ϟ
369
+ - ϟ
370
+ - Ϡ
371
+ - ϡ
372
+ - Ϣ
373
+ - ϣ
374
+ - Ϥ
375
+ - ϥ
376
+ - Ϧ
377
+ - ϧ
378
+ - Ϩ
379
+ - ϩ
380
+ - Ϫ
381
+ - ϫ
382
+ - Ϭ
383
+ - ϭ
384
+ - Ϯ
385
+ - ϯ
386
+ - ϰ
387
+ - ϱ
388
+ - ϲ
389
+ - ϳ
390
+ - ϴ
391
+ - ϵ
392
+ - ϶
393
+ - Ϸ
394
+ - ϸ
395
+ - Ϲ
396
+ - Ϻ
397
+ - ϻ