Tingquan commited on
Commit
10ce238
·
verified ·
1 Parent(s): 2db7b75

Upload folder using huggingface_hub

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