Tingquan commited on
Commit
6d88ef6
·
verified ·
1 Parent(s): c52c170

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +246 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +193 -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,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Global": {
3
+ "model_name": "te_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
+ "t",
94
+ "e",
95
+ "_",
96
+ "i",
97
+ "m",
98
+ "g",
99
+ "/",
100
+ "5",
101
+ "I",
102
+ "L",
103
+ "S",
104
+ "V",
105
+ "R",
106
+ "C",
107
+ "2",
108
+ "0",
109
+ "1",
110
+ "v",
111
+ "a",
112
+ "l",
113
+ "3",
114
+ "4",
115
+ "8",
116
+ "9",
117
+ ".",
118
+ "j",
119
+ "p",
120
+ "త",
121
+ "ె",
122
+ "ర",
123
+ "క",
124
+ "్",
125
+ "ి",
126
+ "ం",
127
+ "చ",
128
+ "ే",
129
+ "ద",
130
+ "ు",
131
+ "7",
132
+ "6",
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
+ "s",
204
+ "c",
205
+ "n",
206
+ "w",
207
+ "k",
208
+ "J",
209
+ "G",
210
+ "u",
211
+ "d",
212
+ "r",
213
+ "E",
214
+ "o",
215
+ "h",
216
+ "y",
217
+ "b",
218
+ "f",
219
+ "B",
220
+ "M",
221
+ "O",
222
+ "T",
223
+ "N",
224
+ "D",
225
+ "P",
226
+ "A",
227
+ "F",
228
+ "x",
229
+ "W",
230
+ "Y",
231
+ "U",
232
+ "H",
233
+ "K",
234
+ "X",
235
+ "z",
236
+ "Z",
237
+ "Q",
238
+ "q",
239
+ "É",
240
+ "%",
241
+ "#",
242
+ "@",
243
+ "é"
244
+ ]
245
+ }
246
+ }
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:d44718384934f27c492ced68710200a22c7e3d10be1201e3ab606b02026f948e
3
+ size 8931378
inference.yml ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: te_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
+ - t
44
+ - e
45
+ - _
46
+ - i
47
+ - m
48
+ - g
49
+ - /
50
+ - '5'
51
+ - I
52
+ - L
53
+ - S
54
+ - V
55
+ - R
56
+ - C
57
+ - '2'
58
+ - '0'
59
+ - '1'
60
+ - v
61
+ - a
62
+ - l
63
+ - '3'
64
+ - '4'
65
+ - '8'
66
+ - '9'
67
+ - .
68
+ - j
69
+ - p
70
+ - త
71
+ - ె
72
+ - ర
73
+ - క
74
+ - ్
75
+ - ి
76
+ - ం
77
+ - చ
78
+ - ే
79
+ - ద
80
+ - ు
81
+ - '7'
82
+ - '6'
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
+ - s
154
+ - c
155
+ - n
156
+ - w
157
+ - k
158
+ - J
159
+ - G
160
+ - u
161
+ - d
162
+ - r
163
+ - E
164
+ - o
165
+ - h
166
+ - y
167
+ - b
168
+ - f
169
+ - B
170
+ - M
171
+ - O
172
+ - T
173
+ - N
174
+ - D
175
+ - P
176
+ - A
177
+ - F
178
+ - x
179
+ - W
180
+ - Y
181
+ - U
182
+ - H
183
+ - K
184
+ - X
185
+ - z
186
+ - Z
187
+ - Q
188
+ - q
189
+ - É
190
+ - '%'
191
+ - '#'
192
+ - '@'
193
+ - é