Tingquan commited on
Commit
3a1f676
·
verified ·
1 Parent(s): 22ab25f

Upload folder using huggingface_hub

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