Tingquan commited on
Commit
e67d101
·
verified ·
1 Parent(s): 9ef5ccb

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +227 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +123 -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,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "paddle",
3
+ "draw_threshold": 0.5,
4
+ "metric": "COCO",
5
+ "use_dynamic_shape": false,
6
+ "Global": {
7
+ "model_name": "PP-DocLayout_plus-L"
8
+ },
9
+ "arch": "DETR",
10
+ "min_subgraph_size": 3,
11
+ "Preprocess": [
12
+ {
13
+ "interp": 2,
14
+ "keep_ratio": false,
15
+ "target_size": [
16
+ 800,
17
+ 800
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
+ "reference",
50
+ "doc_title",
51
+ "footnote",
52
+ "header",
53
+ "algorithm",
54
+ "footer",
55
+ "seal",
56
+ "chart",
57
+ "formula_number",
58
+ "aside_text",
59
+ "reference_content"
60
+ ],
61
+ "Hpi": {
62
+ "backend_configs": {
63
+ "paddle_infer": {
64
+ "trt_dynamic_shapes": {
65
+ "im_shape": [
66
+ [
67
+ 1,
68
+ 2
69
+ ],
70
+ [
71
+ 1,
72
+ 2
73
+ ],
74
+ [
75
+ 8,
76
+ 2
77
+ ]
78
+ ],
79
+ "image": [
80
+ [
81
+ 1,
82
+ 3,
83
+ 800,
84
+ 800
85
+ ],
86
+ [
87
+ 1,
88
+ 3,
89
+ 800,
90
+ 800
91
+ ],
92
+ [
93
+ 8,
94
+ 3,
95
+ 800,
96
+ 800
97
+ ]
98
+ ],
99
+ "scale_factor": [
100
+ [
101
+ 1,
102
+ 2
103
+ ],
104
+ [
105
+ 1,
106
+ 2
107
+ ],
108
+ [
109
+ 8,
110
+ 2
111
+ ]
112
+ ]
113
+ },
114
+ "trt_dynamic_shape_input_data": {
115
+ "im_shape": [
116
+ [
117
+ 800,
118
+ 800
119
+ ],
120
+ [
121
+ 800,
122
+ 800
123
+ ],
124
+ [
125
+ 800,
126
+ 800,
127
+ 800,
128
+ 800,
129
+ 800,
130
+ 800,
131
+ 800,
132
+ 800,
133
+ 800,
134
+ 800,
135
+ 800,
136
+ 800,
137
+ 800,
138
+ 800,
139
+ 800,
140
+ 800
141
+ ]
142
+ ],
143
+ "scale_factor": [
144
+ [
145
+ 2,
146
+ 2
147
+ ],
148
+ [
149
+ 1,
150
+ 1
151
+ ],
152
+ [
153
+ 0.67,
154
+ 0.67,
155
+ 0.67,
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
+ ]
170
+ ]
171
+ }
172
+ },
173
+ "tensorrt": {
174
+ "dynamic_shapes": {
175
+ "im_shape": [
176
+ [
177
+ 1,
178
+ 2
179
+ ],
180
+ [
181
+ 1,
182
+ 2
183
+ ],
184
+ [
185
+ 8,
186
+ 2
187
+ ]
188
+ ],
189
+ "image": [
190
+ [
191
+ 1,
192
+ 3,
193
+ 800,
194
+ 800
195
+ ],
196
+ [
197
+ 1,
198
+ 3,
199
+ 800,
200
+ 800
201
+ ],
202
+ [
203
+ 8,
204
+ 3,
205
+ 800,
206
+ 800
207
+ ]
208
+ ],
209
+ "scale_factor": [
210
+ [
211
+ 1,
212
+ 2
213
+ ],
214
+ [
215
+ 1,
216
+ 2
217
+ ],
218
+ [
219
+ 8,
220
+ 2
221
+ ]
222
+ ]
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }
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:24ca3e2e442164505e250deef59f7ee9a54ea12dd32875c9cd6155d959dc97da
3
+ size 129307978
inference.yml ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mode: paddle
2
+ draw_threshold: 0.5
3
+ metric: COCO
4
+ use_dynamic_shape: false
5
+ Global:
6
+ model_name: PP-DocLayout_plus-L
7
+ arch: DETR
8
+ min_subgraph_size: 3
9
+ Preprocess:
10
+ - interp: 2
11
+ keep_ratio: false
12
+ target_size:
13
+ - 800
14
+ - 800
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
+ - reference
38
+ - doc_title
39
+ - footnote
40
+ - header
41
+ - algorithm
42
+ - footer
43
+ - seal
44
+ - chart
45
+ - formula_number
46
+ - aside_text
47
+ - reference_content
48
+ Hpi:
49
+ backend_configs:
50
+ paddle_infer:
51
+ trt_dynamic_shapes: &id001
52
+ im_shape:
53
+ - - 1
54
+ - 2
55
+ - - 1
56
+ - 2
57
+ - - 8
58
+ - 2
59
+ image:
60
+ - - 1
61
+ - 3
62
+ - 800
63
+ - 800
64
+ - - 1
65
+ - 3
66
+ - 800
67
+ - 800
68
+ - - 8
69
+ - 3
70
+ - 800
71
+ - 800
72
+ scale_factor:
73
+ - - 1
74
+ - 2
75
+ - - 1
76
+ - 2
77
+ - - 8
78
+ - 2
79
+ trt_dynamic_shape_input_data:
80
+ im_shape:
81
+ - - 800
82
+ - 800
83
+ - - 800
84
+ - 800
85
+ - - 800
86
+ - 800
87
+ - 800
88
+ - 800
89
+ - 800
90
+ - 800
91
+ - 800
92
+ - 800
93
+ - 800
94
+ - 800
95
+ - 800
96
+ - 800
97
+ - 800
98
+ - 800
99
+ - 800
100
+ - 800
101
+ scale_factor:
102
+ - - 2
103
+ - 2
104
+ - - 1
105
+ - 1
106
+ - - 0.67
107
+ - 0.67
108
+ - 0.67
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
+ tensorrt:
123
+ dynamic_shapes: *id001