Tingquan commited on
Commit
1a7c8c9
·
verified ·
1 Parent(s): e2ed3ea

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +181 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +114 -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,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Global": {
3
+ "model_name": "SLANeXt_wireless"
4
+ },
5
+ "Hpi": {
6
+ "backend_configs": {
7
+ "paddle_infer": {
8
+ "trt_dynamic_shapes": {
9
+ "x": [
10
+ [
11
+ 1,
12
+ 3,
13
+ 512,
14
+ 512
15
+ ],
16
+ [
17
+ 1,
18
+ 3,
19
+ 512,
20
+ 512
21
+ ],
22
+ [
23
+ 1,
24
+ 3,
25
+ 512,
26
+ 512
27
+ ]
28
+ ]
29
+ }
30
+ },
31
+ "tensorrt": {
32
+ "dynamic_shapes": {
33
+ "x": [
34
+ [
35
+ 1,
36
+ 3,
37
+ 512,
38
+ 512
39
+ ],
40
+ [
41
+ 1,
42
+ 3,
43
+ 512,
44
+ 512
45
+ ],
46
+ [
47
+ 1,
48
+ 3,
49
+ 512,
50
+ 512
51
+ ]
52
+ ]
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "PreProcess": {
58
+ "transform_ops": [
59
+ {
60
+ "DecodeImage": {
61
+ "channel_first": false,
62
+ "img_mode": "BGR"
63
+ }
64
+ },
65
+ {
66
+ "TableLabelEncode": {
67
+ "learn_empty_box": false,
68
+ "loc_reg_num": 8,
69
+ "max_text_length": 500,
70
+ "merge_no_span_structure": true,
71
+ "replace_empty_cell_token": false
72
+ }
73
+ },
74
+ {
75
+ "TableBoxEncode": {
76
+ "in_box_format": "xyxyxyxy",
77
+ "out_box_format": "xyxyxyxy"
78
+ }
79
+ },
80
+ {
81
+ "ResizeTableImage": {
82
+ "max_len": 512,
83
+ "resize_bboxes": true
84
+ }
85
+ },
86
+ {
87
+ "NormalizeImage": {
88
+ "mean": [
89
+ 0.485,
90
+ 0.456,
91
+ 0.406
92
+ ],
93
+ "order": "hwc",
94
+ "scale": "1./255.",
95
+ "std": [
96
+ 0.229,
97
+ 0.224,
98
+ 0.225
99
+ ]
100
+ }
101
+ },
102
+ {
103
+ "PaddingTableImage": {
104
+ "size": [
105
+ 512,
106
+ 512
107
+ ]
108
+ }
109
+ },
110
+ {
111
+ "ToCHWImage": null
112
+ },
113
+ {
114
+ "KeepKeys": {
115
+ "keep_keys": [
116
+ "image",
117
+ "structure",
118
+ "bboxes",
119
+ "bbox_masks",
120
+ "length",
121
+ "shape"
122
+ ]
123
+ }
124
+ }
125
+ ]
126
+ },
127
+ "PostProcess": {
128
+ "name": "TableLabelDecode",
129
+ "merge_no_span_structure": true,
130
+ "character_dict": [
131
+ "<thead>",
132
+ "</thead>",
133
+ "<tbody>",
134
+ "</tbody>",
135
+ "<tr>",
136
+ "</tr>",
137
+ "<td>",
138
+ "<td",
139
+ ">",
140
+ "</td>",
141
+ " colspan=\"2\"",
142
+ " colspan=\"3\"",
143
+ " colspan=\"4\"",
144
+ " colspan=\"5\"",
145
+ " colspan=\"6\"",
146
+ " colspan=\"7\"",
147
+ " colspan=\"8\"",
148
+ " colspan=\"9\"",
149
+ " colspan=\"10\"",
150
+ " colspan=\"11\"",
151
+ " colspan=\"12\"",
152
+ " colspan=\"13\"",
153
+ " colspan=\"14\"",
154
+ " colspan=\"15\"",
155
+ " colspan=\"16\"",
156
+ " colspan=\"17\"",
157
+ " colspan=\"18\"",
158
+ " colspan=\"19\"",
159
+ " colspan=\"20\"",
160
+ " rowspan=\"2\"",
161
+ " rowspan=\"3\"",
162
+ " rowspan=\"4\"",
163
+ " rowspan=\"5\"",
164
+ " rowspan=\"6\"",
165
+ " rowspan=\"7\"",
166
+ " rowspan=\"8\"",
167
+ " rowspan=\"9\"",
168
+ " rowspan=\"10\"",
169
+ " rowspan=\"11\"",
170
+ " rowspan=\"12\"",
171
+ " rowspan=\"13\"",
172
+ " rowspan=\"14\"",
173
+ " rowspan=\"15\"",
174
+ " rowspan=\"16\"",
175
+ " rowspan=\"17\"",
176
+ " rowspan=\"18\"",
177
+ " rowspan=\"19\"",
178
+ " rowspan=\"20\""
179
+ ]
180
+ }
181
+ }
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:6bf0568e24638491c75920954a92583d8c0d46aa76a2a635fb2fa666ffb618ff
3
+ size 364771513
inference.yml ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: SLANeXt_wireless
3
+ Hpi:
4
+ backend_configs:
5
+ paddle_infer:
6
+ trt_dynamic_shapes: &id001
7
+ x:
8
+ - - 1
9
+ - 3
10
+ - 512
11
+ - 512
12
+ - - 1
13
+ - 3
14
+ - 512
15
+ - 512
16
+ - - 1
17
+ - 3
18
+ - 512
19
+ - 512
20
+ tensorrt:
21
+ dynamic_shapes: *id001
22
+ PreProcess:
23
+ transform_ops:
24
+ - DecodeImage:
25
+ channel_first: false
26
+ img_mode: BGR
27
+ - TableLabelEncode:
28
+ learn_empty_box: false
29
+ loc_reg_num: 8
30
+ max_text_length: 500
31
+ merge_no_span_structure: true
32
+ replace_empty_cell_token: false
33
+ - TableBoxEncode:
34
+ in_box_format: xyxyxyxy
35
+ out_box_format: xyxyxyxy
36
+ - ResizeTableImage:
37
+ max_len: 512
38
+ resize_bboxes: true
39
+ - NormalizeImage:
40
+ mean:
41
+ - 0.485
42
+ - 0.456
43
+ - 0.406
44
+ order: hwc
45
+ scale: 1./255.
46
+ std:
47
+ - 0.229
48
+ - 0.224
49
+ - 0.225
50
+ - PaddingTableImage:
51
+ size:
52
+ - 512
53
+ - 512
54
+ - ToCHWImage: null
55
+ - KeepKeys:
56
+ keep_keys:
57
+ - image
58
+ - structure
59
+ - bboxes
60
+ - bbox_masks
61
+ - length
62
+ - shape
63
+ PostProcess:
64
+ name: TableLabelDecode
65
+ merge_no_span_structure: true
66
+ character_dict:
67
+ - <thead>
68
+ - </thead>
69
+ - <tbody>
70
+ - </tbody>
71
+ - <tr>
72
+ - </tr>
73
+ - <td>
74
+ - <td
75
+ - '>'
76
+ - </td>
77
+ - ' colspan="2"'
78
+ - ' colspan="3"'
79
+ - ' colspan="4"'
80
+ - ' colspan="5"'
81
+ - ' colspan="6"'
82
+ - ' colspan="7"'
83
+ - ' colspan="8"'
84
+ - ' colspan="9"'
85
+ - ' colspan="10"'
86
+ - ' colspan="11"'
87
+ - ' colspan="12"'
88
+ - ' colspan="13"'
89
+ - ' colspan="14"'
90
+ - ' colspan="15"'
91
+ - ' colspan="16"'
92
+ - ' colspan="17"'
93
+ - ' colspan="18"'
94
+ - ' colspan="19"'
95
+ - ' colspan="20"'
96
+ - ' rowspan="2"'
97
+ - ' rowspan="3"'
98
+ - ' rowspan="4"'
99
+ - ' rowspan="5"'
100
+ - ' rowspan="6"'
101
+ - ' rowspan="7"'
102
+ - ' rowspan="8"'
103
+ - ' rowspan="9"'
104
+ - ' rowspan="10"'
105
+ - ' rowspan="11"'
106
+ - ' rowspan="12"'
107
+ - ' rowspan="13"'
108
+ - ' rowspan="14"'
109
+ - ' rowspan="15"'
110
+ - ' rowspan="16"'
111
+ - ' rowspan="17"'
112
+ - ' rowspan="18"'
113
+ - ' rowspan="19"'
114
+ - ' rowspan="20"'