Tingquan commited on
Commit
e50d82e
·
verified ·
1 Parent(s): 39a2244

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +262 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +209 -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,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Global": {
3
+ "model_name": "devanagari_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
+ "९",
259
+ "॰"
260
+ ]
261
+ }
262
+ }
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:123fb672ec1b8525124f702cc036f74e02cf49a8a7883bb53300e0833c948ead
3
+ size 8935538
inference.yml ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: devanagari_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
+ - ६
206
+ - ७
207
+ - ८
208
+ - ९
209
+ - ॰