Tingquan commited on
Commit
e5f3a7b
·
verified ·
1 Parent(s): 52ab2b7

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +223 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +170 -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,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Global": {
3
+ "model_name": "ta_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
+ "a",
95
+ "_",
96
+ "i",
97
+ "m",
98
+ "g",
99
+ "/",
100
+ "3",
101
+ "I",
102
+ "L",
103
+ "S",
104
+ "V",
105
+ "R",
106
+ "C",
107
+ "2",
108
+ "0",
109
+ "1",
110
+ "v",
111
+ "l",
112
+ "9",
113
+ "7",
114
+ "8",
115
+ ".",
116
+ "j",
117
+ "p",
118
+ "ப",
119
+ "ூ",
120
+ "த",
121
+ "ம",
122
+ "ி",
123
+ "வ",
124
+ "ர",
125
+ "்",
126
+ "ந",
127
+ "ோ",
128
+ "ன",
129
+ "6",
130
+ "ஆ",
131
+ "ற",
132
+ "ல",
133
+ "5",
134
+ "ள",
135
+ "ா",
136
+ "ொ",
137
+ "ழ",
138
+ "ு",
139
+ "4",
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
+ "s",
169
+ "c",
170
+ "e",
171
+ "n",
172
+ "w",
173
+ "F",
174
+ "T",
175
+ "O",
176
+ "P",
177
+ "K",
178
+ "A",
179
+ "N",
180
+ "G",
181
+ "Y",
182
+ "E",
183
+ "M",
184
+ "H",
185
+ "U",
186
+ "B",
187
+ "o",
188
+ "b",
189
+ "D",
190
+ "d",
191
+ "r",
192
+ "W",
193
+ "u",
194
+ "y",
195
+ "f",
196
+ "X",
197
+ "k",
198
+ "q",
199
+ "h",
200
+ "J",
201
+ "z",
202
+ "Z",
203
+ "Q",
204
+ "x",
205
+ "-",
206
+ "'",
207
+ "$",
208
+ ",",
209
+ "%",
210
+ "@",
211
+ "é",
212
+ "!",
213
+ "#",
214
+ "+",
215
+ "É",
216
+ "&",
217
+ ":",
218
+ "(",
219
+ "?",
220
+ " "
221
+ ]
222
+ }
223
+ }
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:9bd673fa4cd1b38b7296857ce71a7921f26dfbea3c6600ce999f5d57526b7e26
3
+ size 8925398
inference.yml ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: ta_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
+ - a
45
+ - _
46
+ - i
47
+ - m
48
+ - g
49
+ - /
50
+ - '3'
51
+ - I
52
+ - L
53
+ - S
54
+ - V
55
+ - R
56
+ - C
57
+ - '2'
58
+ - '0'
59
+ - '1'
60
+ - v
61
+ - l
62
+ - '9'
63
+ - '7'
64
+ - '8'
65
+ - .
66
+ - j
67
+ - p
68
+ - ப
69
+ - ூ
70
+ - த
71
+ - ம
72
+ - ி
73
+ - வ
74
+ - ர
75
+ - ்
76
+ - ந
77
+ - ோ
78
+ - ன
79
+ - '6'
80
+ - ஆ
81
+ - ற
82
+ - ல
83
+ - '5'
84
+ - ள
85
+ - ா
86
+ - ொ
87
+ - ழ
88
+ - ு
89
+ - '4'
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
+ - s
119
+ - c
120
+ - e
121
+ - n
122
+ - w
123
+ - F
124
+ - T
125
+ - O
126
+ - P
127
+ - K
128
+ - A
129
+ - N
130
+ - G
131
+ - Y
132
+ - E
133
+ - M
134
+ - H
135
+ - U
136
+ - B
137
+ - o
138
+ - b
139
+ - D
140
+ - d
141
+ - r
142
+ - W
143
+ - u
144
+ - y
145
+ - f
146
+ - X
147
+ - k
148
+ - q
149
+ - h
150
+ - J
151
+ - z
152
+ - Z
153
+ - Q
154
+ - x
155
+ - '-'
156
+ - ''''
157
+ - $
158
+ - ','
159
+ - '%'
160
+ - '@'
161
+ - é
162
+ - '!'
163
+ - '#'
164
+ - +
165
+ - É
166
+ - '&'
167
+ - ':'
168
+ - (
169
+ - '?'
170
+ - ' '