Tingquan commited on
Commit
0aa60e8
·
verified ·
1 Parent(s): 5287a42

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +230 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +126 -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,230 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "paddle",
3
+ "draw_threshold": 0.5,
4
+ "metric": "COCO",
5
+ "use_dynamic_shape": false,
6
+ "Global": {
7
+ "model_name": "PP-DocLayout-L"
8
+ },
9
+ "arch": "DETR",
10
+ "min_subgraph_size": 3,
11
+ "Preprocess": [
12
+ {
13
+ "interp": 2,
14
+ "keep_ratio": false,
15
+ "target_size": [
16
+ 640,
17
+ 640
18
+ ],
19
+ "type": "Resize"
20
+ },
21
+ {
22
+ "mean": [
23
+ 0.0,
24
+ 0.0,
25
+ 0.0
26
+ ],
27
+ "norm_type": "none",
28
+ "std": [
29
+ 1.0,
30
+ 1.0,
31
+ 1.0
32
+ ],
33
+ "type": "NormalizeImage"
34
+ },
35
+ {
36
+ "type": "Permute"
37
+ }
38
+ ],
39
+ "label_list": [
40
+ "paragraph_title",
41
+ "image",
42
+ "text",
43
+ "number",
44
+ "abstract",
45
+ "content",
46
+ "figure_title",
47
+ "formula",
48
+ "table",
49
+ "table_title",
50
+ "reference",
51
+ "doc_title",
52
+ "footnote",
53
+ "header",
54
+ "algorithm",
55
+ "footer",
56
+ "seal",
57
+ "chart_title",
58
+ "chart",
59
+ "formula_number",
60
+ "header_image",
61
+ "footer_image",
62
+ "aside_text"
63
+ ],
64
+ "Hpi": {
65
+ "backend_configs": {
66
+ "paddle_infer": {
67
+ "trt_dynamic_shapes": {
68
+ "im_shape": [
69
+ [
70
+ 1,
71
+ 2
72
+ ],
73
+ [
74
+ 1,
75
+ 2
76
+ ],
77
+ [
78
+ 8,
79
+ 2
80
+ ]
81
+ ],
82
+ "image": [
83
+ [
84
+ 1,
85
+ 3,
86
+ 640,
87
+ 640
88
+ ],
89
+ [
90
+ 1,
91
+ 3,
92
+ 640,
93
+ 640
94
+ ],
95
+ [
96
+ 8,
97
+ 3,
98
+ 640,
99
+ 640
100
+ ]
101
+ ],
102
+ "scale_factor": [
103
+ [
104
+ 1,
105
+ 2
106
+ ],
107
+ [
108
+ 1,
109
+ 2
110
+ ],
111
+ [
112
+ 8,
113
+ 2
114
+ ]
115
+ ]
116
+ },
117
+ "trt_dynamic_shape_input_data": {
118
+ "im_shape": [
119
+ [
120
+ 640,
121
+ 640
122
+ ],
123
+ [
124
+ 640,
125
+ 640
126
+ ],
127
+ [
128
+ 640,
129
+ 640,
130
+ 640,
131
+ 640,
132
+ 640,
133
+ 640,
134
+ 640,
135
+ 640,
136
+ 640,
137
+ 640,
138
+ 640,
139
+ 640,
140
+ 640,
141
+ 640,
142
+ 640,
143
+ 640
144
+ ]
145
+ ],
146
+ "scale_factor": [
147
+ [
148
+ 2,
149
+ 2
150
+ ],
151
+ [
152
+ 1,
153
+ 1
154
+ ],
155
+ [
156
+ 0.67,
157
+ 0.67,
158
+ 0.67,
159
+ 0.67,
160
+ 0.67,
161
+ 0.67,
162
+ 0.67,
163
+ 0.67,
164
+ 0.67,
165
+ 0.67,
166
+ 0.67,
167
+ 0.67,
168
+ 0.67,
169
+ 0.67,
170
+ 0.67,
171
+ 0.67
172
+ ]
173
+ ]
174
+ }
175
+ },
176
+ "tensorrt": {
177
+ "dynamic_shapes": {
178
+ "im_shape": [
179
+ [
180
+ 1,
181
+ 2
182
+ ],
183
+ [
184
+ 1,
185
+ 2
186
+ ],
187
+ [
188
+ 8,
189
+ 2
190
+ ]
191
+ ],
192
+ "image": [
193
+ [
194
+ 1,
195
+ 3,
196
+ 640,
197
+ 640
198
+ ],
199
+ [
200
+ 1,
201
+ 3,
202
+ 640,
203
+ 640
204
+ ],
205
+ [
206
+ 8,
207
+ 3,
208
+ 640,
209
+ 640
210
+ ]
211
+ ],
212
+ "scale_factor": [
213
+ [
214
+ 1,
215
+ 2
216
+ ],
217
+ [
218
+ 1,
219
+ 2
220
+ ],
221
+ [
222
+ 8,
223
+ 2
224
+ ]
225
+ ]
226
+ }
227
+ }
228
+ }
229
+ }
230
+ }
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:4df69115349e1e6215629d058e3bc7f087cad7a0d2776ef40c463daf73c38982
3
+ size 129021913
inference.yml ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mode: paddle
2
+ draw_threshold: 0.5
3
+ metric: COCO
4
+ use_dynamic_shape: false
5
+ Global:
6
+ model_name: PP-DocLayout-L
7
+ arch: DETR
8
+ min_subgraph_size: 3
9
+ Preprocess:
10
+ - interp: 2
11
+ keep_ratio: false
12
+ target_size:
13
+ - 640
14
+ - 640
15
+ type: Resize
16
+ - mean:
17
+ - 0.0
18
+ - 0.0
19
+ - 0.0
20
+ norm_type: none
21
+ std:
22
+ - 1.0
23
+ - 1.0
24
+ - 1.0
25
+ type: NormalizeImage
26
+ - type: Permute
27
+ label_list:
28
+ - paragraph_title
29
+ - image
30
+ - text
31
+ - number
32
+ - abstract
33
+ - content
34
+ - figure_title
35
+ - formula
36
+ - table
37
+ - table_title
38
+ - reference
39
+ - doc_title
40
+ - footnote
41
+ - header
42
+ - algorithm
43
+ - footer
44
+ - seal
45
+ - chart_title
46
+ - chart
47
+ - formula_number
48
+ - header_image
49
+ - footer_image
50
+ - aside_text
51
+ Hpi:
52
+ backend_configs:
53
+ paddle_infer:
54
+ trt_dynamic_shapes: &id001
55
+ im_shape:
56
+ - - 1
57
+ - 2
58
+ - - 1
59
+ - 2
60
+ - - 8
61
+ - 2
62
+ image:
63
+ - - 1
64
+ - 3
65
+ - 640
66
+ - 640
67
+ - - 1
68
+ - 3
69
+ - 640
70
+ - 640
71
+ - - 8
72
+ - 3
73
+ - 640
74
+ - 640
75
+ scale_factor:
76
+ - - 1
77
+ - 2
78
+ - - 1
79
+ - 2
80
+ - - 8
81
+ - 2
82
+ trt_dynamic_shape_input_data:
83
+ im_shape:
84
+ - - 640
85
+ - 640
86
+ - - 640
87
+ - 640
88
+ - - 640
89
+ - 640
90
+ - 640
91
+ - 640
92
+ - 640
93
+ - 640
94
+ - 640
95
+ - 640
96
+ - 640
97
+ - 640
98
+ - 640
99
+ - 640
100
+ - 640
101
+ - 640
102
+ - 640
103
+ - 640
104
+ scale_factor:
105
+ - - 2
106
+ - 2
107
+ - - 1
108
+ - 1
109
+ - - 0.67
110
+ - 0.67
111
+ - 0.67
112
+ - 0.67
113
+ - 0.67
114
+ - 0.67
115
+ - 0.67
116
+ - 0.67
117
+ - 0.67
118
+ - 0.67
119
+ - 0.67
120
+ - 0.67
121
+ - 0.67
122
+ - 0.67
123
+ - 0.67
124
+ - 0.67
125
+ tensorrt:
126
+ dynamic_shapes: *id001