Tingquan commited on
Commit
b0ad0a1
·
verified ·
1 Parent(s): 3f43537

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +173 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +93 -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,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "paddle",
3
+ "draw_threshold": 0.5,
4
+ "metric": "COCO",
5
+ "use_dynamic_shape": false,
6
+ "Global": {
7
+ "model_name": "PicoDet_layout_1x"
8
+ },
9
+ "arch": "GFL",
10
+ "min_subgraph_size": 3,
11
+ "Preprocess": [
12
+ {
13
+ "interp": 2,
14
+ "keep_ratio": false,
15
+ "target_size": [
16
+ 800,
17
+ 608
18
+ ],
19
+ "type": "Resize"
20
+ },
21
+ {
22
+ "is_scale": true,
23
+ "mean": [
24
+ 0.485,
25
+ 0.456,
26
+ 0.406
27
+ ],
28
+ "std": [
29
+ 0.229,
30
+ 0.224,
31
+ 0.225
32
+ ],
33
+ "type": "NormalizeImage"
34
+ },
35
+ {
36
+ "type": "Permute"
37
+ },
38
+ {
39
+ "stride": 32,
40
+ "type": "PadStride"
41
+ }
42
+ ],
43
+ "label_list": [
44
+ "Text",
45
+ "Title",
46
+ "List",
47
+ "Table",
48
+ "Figure"
49
+ ],
50
+ "Hpi": {
51
+ "backend_configs": {
52
+ "paddle_infer": {
53
+ "trt_dynamic_shapes": {
54
+ "image": [
55
+ [
56
+ 1,
57
+ 3,
58
+ 800,
59
+ 608
60
+ ],
61
+ [
62
+ 1,
63
+ 3,
64
+ 800,
65
+ 608
66
+ ],
67
+ [
68
+ 8,
69
+ 3,
70
+ 800,
71
+ 608
72
+ ]
73
+ ],
74
+ "scale_factor": [
75
+ [
76
+ 1,
77
+ 2
78
+ ],
79
+ [
80
+ 1,
81
+ 2
82
+ ],
83
+ [
84
+ 8,
85
+ 2
86
+ ]
87
+ ]
88
+ },
89
+ "trt_dynamic_shape_input_data": {
90
+ "scale_factor": [
91
+ [
92
+ 2,
93
+ 2
94
+ ],
95
+ [
96
+ 1,
97
+ 1
98
+ ],
99
+ [
100
+ 0.67,
101
+ 0.67,
102
+ 0.67,
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
+ ]
117
+ ]
118
+ }
119
+ },
120
+ "tensorrt": {
121
+ "dynamic_shapes": {
122
+ "image": [
123
+ [
124
+ 1,
125
+ 3,
126
+ 800,
127
+ 608
128
+ ],
129
+ [
130
+ 1,
131
+ 3,
132
+ 800,
133
+ 608
134
+ ],
135
+ [
136
+ 8,
137
+ 3,
138
+ 800,
139
+ 608
140
+ ]
141
+ ],
142
+ "scale_factor": [
143
+ [
144
+ 1,
145
+ 2
146
+ ],
147
+ [
148
+ 1,
149
+ 2
150
+ ],
151
+ [
152
+ 8,
153
+ 2
154
+ ]
155
+ ]
156
+ }
157
+ }
158
+ }
159
+ },
160
+ "NMS": {
161
+ "keep_top_k": 100,
162
+ "name": "MultiClassNMS",
163
+ "nms_threshold": 0.5,
164
+ "nms_top_k": 1000,
165
+ "score_threshold": 0.3
166
+ },
167
+ "fpn_stride": [
168
+ 8,
169
+ 16,
170
+ 32,
171
+ 64
172
+ ]
173
+ }
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:b4cfc99fa753700887cea54f5e923a15b78feef7b16bd7d023b8c271826cafe1
3
+ size 7283011
inference.yml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mode: paddle
2
+ draw_threshold: 0.5
3
+ metric: COCO
4
+ use_dynamic_shape: false
5
+ Global:
6
+ model_name: PicoDet_layout_1x
7
+ arch: GFL
8
+ min_subgraph_size: 3
9
+ Preprocess:
10
+ - interp: 2
11
+ keep_ratio: false
12
+ target_size:
13
+ - 800
14
+ - 608
15
+ type: Resize
16
+ - is_scale: true
17
+ mean:
18
+ - 0.485
19
+ - 0.456
20
+ - 0.406
21
+ std:
22
+ - 0.229
23
+ - 0.224
24
+ - 0.225
25
+ type: NormalizeImage
26
+ - type: Permute
27
+ - stride: 32
28
+ type: PadStride
29
+ label_list:
30
+ - Text
31
+ - Title
32
+ - List
33
+ - Table
34
+ - Figure
35
+ Hpi:
36
+ backend_configs:
37
+ paddle_infer:
38
+ trt_dynamic_shapes: &id001
39
+ image:
40
+ - - 1
41
+ - 3
42
+ - 800
43
+ - 608
44
+ - - 1
45
+ - 3
46
+ - 800
47
+ - 608
48
+ - - 8
49
+ - 3
50
+ - 800
51
+ - 608
52
+ scale_factor:
53
+ - - 1
54
+ - 2
55
+ - - 1
56
+ - 2
57
+ - - 8
58
+ - 2
59
+ trt_dynamic_shape_input_data:
60
+ scale_factor:
61
+ - - 2
62
+ - 2
63
+ - - 1
64
+ - 1
65
+ - - 0.67
66
+ - 0.67
67
+ - 0.67
68
+ - 0.67
69
+ - 0.67
70
+ - 0.67
71
+ - 0.67
72
+ - 0.67
73
+ - 0.67
74
+ - 0.67
75
+ - 0.67
76
+ - 0.67
77
+ - 0.67
78
+ - 0.67
79
+ - 0.67
80
+ - 0.67
81
+ tensorrt:
82
+ dynamic_shapes: *id001
83
+ NMS:
84
+ keep_top_k: 100
85
+ name: MultiClassNMS
86
+ nms_threshold: 0.5
87
+ nms_top_k: 1000
88
+ score_threshold: 0.3
89
+ fpn_stride:
90
+ - 8
91
+ - 16
92
+ - 32
93
+ - 64