Tingquan commited on
Commit
b5ee305
·
verified ·
1 Parent(s): f94eea8

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +210 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +106 -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,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_3cls"
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
+ "image",
41
+ "table",
42
+ "seal"
43
+ ],
44
+ "Hpi": {
45
+ "backend_configs": {
46
+ "paddle_infer": {
47
+ "trt_dynamic_shapes": {
48
+ "im_shape": [
49
+ [
50
+ 1,
51
+ 2
52
+ ],
53
+ [
54
+ 1,
55
+ 2
56
+ ],
57
+ [
58
+ 8,
59
+ 2
60
+ ]
61
+ ],
62
+ "image": [
63
+ [
64
+ 1,
65
+ 3,
66
+ 640,
67
+ 640
68
+ ],
69
+ [
70
+ 1,
71
+ 3,
72
+ 640,
73
+ 640
74
+ ],
75
+ [
76
+ 8,
77
+ 3,
78
+ 640,
79
+ 640
80
+ ]
81
+ ],
82
+ "scale_factor": [
83
+ [
84
+ 1,
85
+ 2
86
+ ],
87
+ [
88
+ 1,
89
+ 2
90
+ ],
91
+ [
92
+ 8,
93
+ 2
94
+ ]
95
+ ]
96
+ },
97
+ "trt_dynamic_shape_input_data": {
98
+ "im_shape": [
99
+ [
100
+ 640,
101
+ 640
102
+ ],
103
+ [
104
+ 640,
105
+ 640
106
+ ],
107
+ [
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
+ 640,
123
+ 640
124
+ ]
125
+ ],
126
+ "scale_factor": [
127
+ [
128
+ 2,
129
+ 2
130
+ ],
131
+ [
132
+ 1,
133
+ 1
134
+ ],
135
+ [
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
+ 0.67,
151
+ 0.67
152
+ ]
153
+ ]
154
+ }
155
+ },
156
+ "tensorrt": {
157
+ "dynamic_shapes": {
158
+ "im_shape": [
159
+ [
160
+ 1,
161
+ 2
162
+ ],
163
+ [
164
+ 1,
165
+ 2
166
+ ],
167
+ [
168
+ 8,
169
+ 2
170
+ ]
171
+ ],
172
+ "image": [
173
+ [
174
+ 1,
175
+ 3,
176
+ 640,
177
+ 640
178
+ ],
179
+ [
180
+ 1,
181
+ 3,
182
+ 640,
183
+ 640
184
+ ],
185
+ [
186
+ 8,
187
+ 3,
188
+ 640,
189
+ 640
190
+ ]
191
+ ],
192
+ "scale_factor": [
193
+ [
194
+ 1,
195
+ 2
196
+ ],
197
+ [
198
+ 1,
199
+ 2
200
+ ],
201
+ [
202
+ 8,
203
+ 2
204
+ ]
205
+ ]
206
+ }
207
+ }
208
+ }
209
+ }
210
+ }
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:dd3731580dc388479e30a61dabcaa21ec4ffca493cc5a7dfc837b7f44fc30400
3
+ size 491439477
inference.yml ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_3cls
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
+ - image
29
+ - table
30
+ - seal
31
+ Hpi:
32
+ backend_configs:
33
+ paddle_infer:
34
+ trt_dynamic_shapes: &id001
35
+ im_shape:
36
+ - - 1
37
+ - 2
38
+ - - 1
39
+ - 2
40
+ - - 8
41
+ - 2
42
+ image:
43
+ - - 1
44
+ - 3
45
+ - 640
46
+ - 640
47
+ - - 1
48
+ - 3
49
+ - 640
50
+ - 640
51
+ - - 8
52
+ - 3
53
+ - 640
54
+ - 640
55
+ scale_factor:
56
+ - - 1
57
+ - 2
58
+ - - 1
59
+ - 2
60
+ - - 8
61
+ - 2
62
+ trt_dynamic_shape_input_data:
63
+ im_shape:
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
+ - 640
83
+ - 640
84
+ scale_factor:
85
+ - - 2
86
+ - 2
87
+ - - 1
88
+ - 1
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
+ - 0.67
104
+ - 0.67
105
+ tensorrt:
106
+ dynamic_shapes: *id001