Tingquan commited on
Commit
f5657c4
·
verified ·
1 Parent(s): 836e252

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +208 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +104 -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,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "paddle",
3
+ "draw_threshold": 0.5,
4
+ "metric": "COCO",
5
+ "use_dynamic_shape": false,
6
+ "Global": {
7
+ "model_name": "PP-DocBlockLayout"
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
+ "Region"
41
+ ],
42
+ "Hpi": {
43
+ "backend_configs": {
44
+ "paddle_infer": {
45
+ "trt_dynamic_shapes": {
46
+ "im_shape": [
47
+ [
48
+ 1,
49
+ 2
50
+ ],
51
+ [
52
+ 1,
53
+ 2
54
+ ],
55
+ [
56
+ 8,
57
+ 2
58
+ ]
59
+ ],
60
+ "image": [
61
+ [
62
+ 1,
63
+ 3,
64
+ 640,
65
+ 640
66
+ ],
67
+ [
68
+ 1,
69
+ 3,
70
+ 640,
71
+ 640
72
+ ],
73
+ [
74
+ 8,
75
+ 3,
76
+ 640,
77
+ 640
78
+ ]
79
+ ],
80
+ "scale_factor": [
81
+ [
82
+ 1,
83
+ 2
84
+ ],
85
+ [
86
+ 1,
87
+ 2
88
+ ],
89
+ [
90
+ 8,
91
+ 2
92
+ ]
93
+ ]
94
+ },
95
+ "trt_dynamic_shape_input_data": {
96
+ "im_shape": [
97
+ [
98
+ 640,
99
+ 640
100
+ ],
101
+ [
102
+ 640,
103
+ 640
104
+ ],
105
+ [
106
+ 640,
107
+ 640,
108
+ 640,
109
+ 640,
110
+ 640,
111
+ 640,
112
+ 640,
113
+ 640,
114
+ 640,
115
+ 640,
116
+ 640,
117
+ 640,
118
+ 640,
119
+ 640,
120
+ 640,
121
+ 640
122
+ ]
123
+ ],
124
+ "scale_factor": [
125
+ [
126
+ 2,
127
+ 2
128
+ ],
129
+ [
130
+ 1,
131
+ 1
132
+ ],
133
+ [
134
+ 0.67,
135
+ 0.67,
136
+ 0.67,
137
+ 0.67,
138
+ 0.67,
139
+ 0.67,
140
+ 0.67,
141
+ 0.67,
142
+ 0.67,
143
+ 0.67,
144
+ 0.67,
145
+ 0.67,
146
+ 0.67,
147
+ 0.67,
148
+ 0.67,
149
+ 0.67
150
+ ]
151
+ ]
152
+ }
153
+ },
154
+ "tensorrt": {
155
+ "dynamic_shapes": {
156
+ "im_shape": [
157
+ [
158
+ 1,
159
+ 2
160
+ ],
161
+ [
162
+ 1,
163
+ 2
164
+ ],
165
+ [
166
+ 8,
167
+ 2
168
+ ]
169
+ ],
170
+ "image": [
171
+ [
172
+ 1,
173
+ 3,
174
+ 640,
175
+ 640
176
+ ],
177
+ [
178
+ 1,
179
+ 3,
180
+ 640,
181
+ 640
182
+ ],
183
+ [
184
+ 8,
185
+ 3,
186
+ 640,
187
+ 640
188
+ ]
189
+ ],
190
+ "scale_factor": [
191
+ [
192
+ 1,
193
+ 2
194
+ ],
195
+ [
196
+ 1,
197
+ 2
198
+ ],
199
+ [
200
+ 8,
201
+ 2
202
+ ]
203
+ ]
204
+ }
205
+ }
206
+ }
207
+ }
208
+ }
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:0ab733dcabfee41517b68b37fde4c696129b88096a93f8b9d8feaa43c27c8942
3
+ size 128841073
inference.yml ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mode: paddle
2
+ draw_threshold: 0.5
3
+ metric: COCO
4
+ use_dynamic_shape: false
5
+ Global:
6
+ model_name: PP-DocBlockLayout
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
+ - Region
29
+ Hpi:
30
+ backend_configs:
31
+ paddle_infer:
32
+ trt_dynamic_shapes: &id001
33
+ im_shape:
34
+ - - 1
35
+ - 2
36
+ - - 1
37
+ - 2
38
+ - - 8
39
+ - 2
40
+ image:
41
+ - - 1
42
+ - 3
43
+ - 640
44
+ - 640
45
+ - - 1
46
+ - 3
47
+ - 640
48
+ - 640
49
+ - - 8
50
+ - 3
51
+ - 640
52
+ - 640
53
+ scale_factor:
54
+ - - 1
55
+ - 2
56
+ - - 1
57
+ - 2
58
+ - - 8
59
+ - 2
60
+ trt_dynamic_shape_input_data:
61
+ im_shape:
62
+ - - 640
63
+ - 640
64
+ - - 640
65
+ - 640
66
+ - - 640
67
+ - 640
68
+ - 640
69
+ - 640
70
+ - 640
71
+ - 640
72
+ - 640
73
+ - 640
74
+ - 640
75
+ - 640
76
+ - 640
77
+ - 640
78
+ - 640
79
+ - 640
80
+ - 640
81
+ - 640
82
+ scale_factor:
83
+ - - 2
84
+ - 2
85
+ - - 1
86
+ - 1
87
+ - - 0.67
88
+ - 0.67
89
+ - 0.67
90
+ - 0.67
91
+ - 0.67
92
+ - 0.67
93
+ - 0.67
94
+ - 0.67
95
+ - 0.67
96
+ - 0.67
97
+ - 0.67
98
+ - 0.67
99
+ - 0.67
100
+ - 0.67
101
+ - 0.67
102
+ - 0.67
103
+ tensorrt:
104
+ dynamic_shapes: *id001