Tingquan commited on
Commit
58ccebe
·
verified ·
1 Parent(s): e96b759

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +190 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +137 -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,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Global": {
3
+ "model_name": "en_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
+ "0",
94
+ "1",
95
+ "2",
96
+ "3",
97
+ "4",
98
+ "5",
99
+ "6",
100
+ "7",
101
+ "8",
102
+ "9",
103
+ ":",
104
+ ";",
105
+ "<",
106
+ "=",
107
+ ">",
108
+ "?",
109
+ "@",
110
+ "A",
111
+ "B",
112
+ "C",
113
+ "D",
114
+ "E",
115
+ "F",
116
+ "G",
117
+ "H",
118
+ "I",
119
+ "J",
120
+ "K",
121
+ "L",
122
+ "M",
123
+ "N",
124
+ "O",
125
+ "P",
126
+ "Q",
127
+ "R",
128
+ "S",
129
+ "T",
130
+ "U",
131
+ "V",
132
+ "W",
133
+ "X",
134
+ "Y",
135
+ "Z",
136
+ "[",
137
+ "\\",
138
+ "]",
139
+ "^",
140
+ "_",
141
+ "`",
142
+ "a",
143
+ "b",
144
+ "c",
145
+ "d",
146
+ "e",
147
+ "f",
148
+ "g",
149
+ "h",
150
+ "i",
151
+ "j",
152
+ "k",
153
+ "l",
154
+ "m",
155
+ "n",
156
+ "o",
157
+ "p",
158
+ "q",
159
+ "r",
160
+ "s",
161
+ "t",
162
+ "u",
163
+ "v",
164
+ "w",
165
+ "x",
166
+ "y",
167
+ "z",
168
+ "{",
169
+ "|",
170
+ "}",
171
+ "~",
172
+ "!",
173
+ "\"",
174
+ "#",
175
+ "$",
176
+ "%",
177
+ "&",
178
+ "'",
179
+ "(",
180
+ ")",
181
+ "*",
182
+ "+",
183
+ ",",
184
+ "-",
185
+ ".",
186
+ "/",
187
+ " "
188
+ ]
189
+ }
190
+ }
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:2cea2de604d8a75fd9151b54ea2dd027659fb8cb777cde377224581110dbff13
3
+ size 8916816
inference.yml ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: en_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
+ - '0'
44
+ - '1'
45
+ - '2'
46
+ - '3'
47
+ - '4'
48
+ - '5'
49
+ - '6'
50
+ - '7'
51
+ - '8'
52
+ - '9'
53
+ - ':'
54
+ - ;
55
+ - <
56
+ - '='
57
+ - '>'
58
+ - '?'
59
+ - '@'
60
+ - A
61
+ - B
62
+ - C
63
+ - D
64
+ - E
65
+ - F
66
+ - G
67
+ - H
68
+ - I
69
+ - J
70
+ - K
71
+ - L
72
+ - M
73
+ - N
74
+ - O
75
+ - P
76
+ - Q
77
+ - R
78
+ - S
79
+ - T
80
+ - U
81
+ - V
82
+ - W
83
+ - X
84
+ - Y
85
+ - Z
86
+ - '['
87
+ - \
88
+ - ']'
89
+ - ^
90
+ - _
91
+ - '`'
92
+ - a
93
+ - b
94
+ - c
95
+ - d
96
+ - e
97
+ - f
98
+ - g
99
+ - h
100
+ - i
101
+ - j
102
+ - k
103
+ - l
104
+ - m
105
+ - n
106
+ - o
107
+ - p
108
+ - q
109
+ - r
110
+ - s
111
+ - t
112
+ - u
113
+ - v
114
+ - w
115
+ - x
116
+ - y
117
+ - z
118
+ - '{'
119
+ - '|'
120
+ - '}'
121
+ - '~'
122
+ - '!'
123
+ - '"'
124
+ - '#'
125
+ - $
126
+ - '%'
127
+ - '&'
128
+ - ''''
129
+ - (
130
+ - )
131
+ - '*'
132
+ - +
133
+ - ','
134
+ - '-'
135
+ - .
136
+ - /
137
+ - ' '