cloudnex commited on
Commit
62b04ed
·
verified ·
1 Parent(s): 9bb1847

Upload PaddleOCR ONNX exports

Browse files
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
NOTICE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PaddleOcrNet ONNX model assets
2
+ ==============================
3
+
4
+ These ONNX model files and their character dictionaries / label lists are ONNX
5
+ exports derived from the PaddleOCR project. They are redistributed here for use
6
+ with PaddleOcrNet (a .NET runtime), and remain subject to the upstream license.
7
+
8
+ PaddleOCR
9
+ Copyright (c) PaddlePaddle Authors / Baidu, Inc.
10
+ Licensed under the Apache License, Version 2.0.
11
+ https://github.com/PaddlePaddle/PaddleOCR
12
+
13
+ The exports were produced with paddle2onnx (PaddleX `--paddle2onnx`). No model
14
+ weights were retrained or modified; only the serialization format was converted
15
+ from PaddlePaddle inference format to ONNX, plus the upstream dict/label sidecar
16
+ files copied verbatim.
17
+
18
+ A copy of the Apache License 2.0 is provided in the LICENSE file in this repo
19
+ (see also https://www.apache.org/licenses/LICENSE-2.0.txt).
20
+
21
+ Attribution and the Apache-2.0 terms apply to every file in this repository.
PP-DocLayout-M.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34ecdc84e60d5f5822fab85e3e97f30ca73fdc6c7c0aa10b3bd7227742a574b5
3
+ size 23496727
PP-DocLayout-M.yml ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mode: paddle
2
+ draw_threshold: 0.5
3
+ metric: COCO
4
+ use_dynamic_shape: false
5
+ Global:
6
+ model_name: PP-DocLayout-M
7
+ arch: GFL
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
+ - 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
+ 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
+ - chart_title
46
+ - chart
47
+ - formula_number
48
+ - header_image
49
+ - footer_image
50
+ - aside_text
51
+ Hpi:
52
+ backend_configs:
53
+ paddle_infer:
54
+ trt_dynamic_shapes: &id001
55
+ image:
56
+ - - 1
57
+ - 3
58
+ - 640
59
+ - 640
60
+ - - 1
61
+ - 3
62
+ - 640
63
+ - 640
64
+ - - 8
65
+ - 3
66
+ - 640
67
+ - 640
68
+ scale_factor:
69
+ - - 1
70
+ - 2
71
+ - - 1
72
+ - 2
73
+ - - 8
74
+ - 2
75
+ trt_dynamic_shape_input_data:
76
+ scale_factor:
77
+ - - 2
78
+ - 2
79
+ - - 1
80
+ - 1
81
+ - - 0.67
82
+ - 0.67
83
+ - 0.67
84
+ - 0.67
85
+ - 0.67
86
+ - 0.67
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
+ tensorrt:
98
+ dynamic_shapes: *id001
99
+ NMS:
100
+ keep_top_k: 100
101
+ name: MultiClassNMS
102
+ nms_threshold: 0.5
103
+ nms_top_k: 1000
104
+ score_threshold: 0.3
105
+ fpn_stride:
106
+ - 8
107
+ - 16
108
+ - 32
109
+ - 64
PP-DocLayout-S.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3a5864e9f29bfddf7ea447ce03cd42adde0a49cea93191d7858e95407d0040a
3
+ size 4914918
PP-DocLayout-S.yml ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mode: paddle
2
+ draw_threshold: 0.5
3
+ metric: COCO
4
+ use_dynamic_shape: false
5
+ Global:
6
+ model_name: PP-DocLayout-S
7
+ arch: GFL
8
+ min_subgraph_size: 3
9
+ Preprocess:
10
+ - interp: 2
11
+ keep_ratio: false
12
+ target_size:
13
+ - 480
14
+ - 480
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
+ 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
+ - chart_title
46
+ - chart
47
+ - formula_number
48
+ - header_image
49
+ - footer_image
50
+ - aside_text
51
+ Hpi:
52
+ backend_configs:
53
+ paddle_infer:
54
+ trt_dynamic_shapes: &id001
55
+ image:
56
+ - - 1
57
+ - 3
58
+ - 480
59
+ - 480
60
+ - - 1
61
+ - 3
62
+ - 480
63
+ - 480
64
+ - - 8
65
+ - 3
66
+ - 480
67
+ - 480
68
+ scale_factor:
69
+ - - 1
70
+ - 2
71
+ - - 1
72
+ - 2
73
+ - - 8
74
+ - 2
75
+ trt_dynamic_shape_input_data:
76
+ scale_factor:
77
+ - - 2
78
+ - 2
79
+ - - 1
80
+ - 1
81
+ - - 0.67
82
+ - 0.67
83
+ - 0.67
84
+ - 0.67
85
+ - 0.67
86
+ - 0.67
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
+ tensorrt:
98
+ dynamic_shapes: *id001
99
+ NMS:
100
+ keep_top_k: 100
101
+ name: MultiClassNMS
102
+ nms_threshold: 0.5
103
+ nms_top_k: 1000
104
+ score_threshold: 0.3
105
+ fpn_stride:
106
+ - 8
107
+ - 16
108
+ - 32
109
+ - 64
PP-DocLayout_plus-L.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b96b102ebef6e8c51a6b27485eb601fa6b232d389ebd21934d3d6dd7dfe46c7c
3
+ size 129714689
PP-DocLayout_plus-L.yml ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mode: paddle
2
+ draw_threshold: 0.5
3
+ metric: COCO
4
+ use_dynamic_shape: false
5
+ Global:
6
+ model_name: PP-DocLayout_plus-L
7
+ arch: DETR
8
+ min_subgraph_size: 3
9
+ Preprocess:
10
+ - interp: 2
11
+ keep_ratio: false
12
+ target_size:
13
+ - 800
14
+ - 800
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
+ - reference
38
+ - doc_title
39
+ - footnote
40
+ - header
41
+ - algorithm
42
+ - footer
43
+ - seal
44
+ - chart
45
+ - formula_number
46
+ - aside_text
47
+ - reference_content
48
+ Hpi:
49
+ backend_configs:
50
+ paddle_infer:
51
+ trt_dynamic_shapes: &id001
52
+ im_shape:
53
+ - - 1
54
+ - 2
55
+ - - 1
56
+ - 2
57
+ - - 8
58
+ - 2
59
+ image:
60
+ - - 1
61
+ - 3
62
+ - 800
63
+ - 800
64
+ - - 1
65
+ - 3
66
+ - 800
67
+ - 800
68
+ - - 8
69
+ - 3
70
+ - 800
71
+ - 800
72
+ scale_factor:
73
+ - - 1
74
+ - 2
75
+ - - 1
76
+ - 2
77
+ - - 8
78
+ - 2
79
+ trt_dynamic_shape_input_data:
80
+ im_shape:
81
+ - - 800
82
+ - 800
83
+ - - 800
84
+ - 800
85
+ - - 800
86
+ - 800
87
+ - 800
88
+ - 800
89
+ - 800
90
+ - 800
91
+ - 800
92
+ - 800
93
+ - 800
94
+ - 800
95
+ - 800
96
+ - 800
97
+ - 800
98
+ - 800
99
+ - 800
100
+ - 800
101
+ scale_factor:
102
+ - - 2
103
+ - 2
104
+ - - 1
105
+ - 1
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
+ - 0.67
120
+ - 0.67
121
+ - 0.67
122
+ tensorrt:
123
+ dynamic_shapes: *id001
PP-LCNet_x1_0_table_cls.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4d7737fdb2b0b31d9cb3d961b339174e36152ad5a48e7979cd81d7cf7e5b7de
3
+ size 6776998
PP-LCNet_x1_0_table_cls.yml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: PP-LCNet_x1_0_table_cls
3
+ Hpi:
4
+ backend_configs:
5
+ paddle_infer:
6
+ trt_dynamic_shapes: &id001
7
+ x:
8
+ - - 1
9
+ - 3
10
+ - 224
11
+ - 224
12
+ - - 1
13
+ - 3
14
+ - 224
15
+ - 224
16
+ - - 8
17
+ - 3
18
+ - 224
19
+ - 224
20
+ tensorrt:
21
+ dynamic_shapes: *id001
22
+ PreProcess:
23
+ transform_ops:
24
+ - ResizeImage:
25
+ resize_short: 256
26
+ - CropImage:
27
+ size: 224
28
+ - NormalizeImage:
29
+ channel_num: 3
30
+ mean:
31
+ - 0.485
32
+ - 0.456
33
+ - 0.406
34
+ order: ''
35
+ scale: 0.00392156862745098
36
+ std:
37
+ - 0.229
38
+ - 0.224
39
+ - 0.225
40
+ - ToCHWImage: null
41
+ PostProcess:
42
+ Topk:
43
+ topk: 5
44
+ label_list:
45
+ - wired_table
46
+ - wireless_table
PP-OCRv4_mobile_seal_det.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99190c63257f9a036f783b6ef22c49a8c1b68839a3c01c9a08df246dd1016167
3
+ size 4826518
PP-OCRv4_mobile_seal_det.yml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: PP-OCRv4_mobile_seal_det
3
+ Hpi:
4
+ backend_configs:
5
+ paddle_infer:
6
+ trt_dynamic_shapes: &id001
7
+ x:
8
+ - - 1
9
+ - 3
10
+ - 160
11
+ - 160
12
+ - - 1
13
+ - 3
14
+ - 640
15
+ - 640
16
+ - - 1
17
+ - 3
18
+ - 1280
19
+ - 1280
20
+ tensorrt:
21
+ dynamic_shapes: *id001
22
+ PreProcess:
23
+ transform_ops:
24
+ - DecodeImage:
25
+ channel_first: false
26
+ img_mode: BGR
27
+ - DetLabelEncode: null
28
+ - DetResizeForTest:
29
+ resize_long: 736
30
+ - NormalizeImage:
31
+ mean:
32
+ - 0.485
33
+ - 0.456
34
+ - 0.406
35
+ order: hwc
36
+ scale: 1./255.
37
+ std:
38
+ - 0.229
39
+ - 0.224
40
+ - 0.225
41
+ - ToCHWImage: null
42
+ - KeepKeys:
43
+ keep_keys:
44
+ - image
45
+ - shape
46
+ - polys
47
+ - ignore_tags
48
+ PostProcess:
49
+ name: DBPostProcess
50
+ thresh: 0.2
51
+ box_thresh: 0.6
52
+ max_candidates: 1000
53
+ unclip_ratio: 0.5
54
+ box_type: poly
PP-OCRv4_server_seal_det.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f83d57ee079490e7465e83017606dd1a5ed71fc99555c45b1460ff0332adc25
3
+ size 113442336
PP-OCRv4_server_seal_det.yml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: PP-OCRv4_server_seal_det
3
+ Hpi:
4
+ backend_configs:
5
+ paddle_infer:
6
+ trt_dynamic_shapes: &id001
7
+ x:
8
+ - - 1
9
+ - 3
10
+ - 32
11
+ - 32
12
+ - - 1
13
+ - 3
14
+ - 736
15
+ - 736
16
+ - - 1
17
+ - 3
18
+ - 4000
19
+ - 4000
20
+ tensorrt:
21
+ dynamic_shapes: *id001
22
+ PreProcess:
23
+ transform_ops:
24
+ - DecodeImage:
25
+ channel_first: false
26
+ img_mode: BGR
27
+ - DetLabelEncode: null
28
+ - DetResizeForTest:
29
+ resize_long: 736
30
+ - NormalizeImage:
31
+ mean:
32
+ - 0.485
33
+ - 0.456
34
+ - 0.406
35
+ order: hwc
36
+ scale: 1./255.
37
+ std:
38
+ - 0.229
39
+ - 0.224
40
+ - 0.225
41
+ - ToCHWImage: null
42
+ - KeepKeys:
43
+ keep_keys:
44
+ - image
45
+ - shape
46
+ - polys
47
+ - ignore_tags
48
+ PostProcess:
49
+ name: DBPostProcess
50
+ thresh: 0.2
51
+ box_thresh: 0.6
52
+ max_candidates: 1000
53
+ unclip_ratio: 0.5
54
+ box_type: poly
README.md CHANGED
@@ -1,3 +1,26 @@
1
  ---
2
- license: mit
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
3
+ tags:
4
+ - paddleocr
5
+ - onnx
6
+ - ocr
7
  ---
8
+
9
+ # PaddleOcrNet ONNX models
10
+
11
+ ONNX exports of PaddleOCR / PaddleX models, organized by family, for use with
12
+ the [PaddleOcrNet](https://github.com/) .NET runtime. Produced by
13
+ `tools/export_onnx.py` (paddle2onnx). Derived from
14
+ [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR), Apache-2.0
15
+ (Copyright PaddlePaddle Authors / Baidu, Inc.). See `LICENSE` and `NOTICE`.
16
+
17
+ ## Layout
18
+
19
+ ```
20
+ <family>/<model_name>/inference.onnx # the network (dynamic shapes)
21
+ <family>/<model_name>/*.txt|*.yml # dict / label / config sidecars
22
+ SHA256SUMS # checksums (also baked into the .NET registry)
23
+ ```
24
+
25
+ Families: det, rec, cls, unwarp, layout, table_cls, table_structure,
26
+ table_cell, formula, seal_det.
RT-DETR-L_wired_table_cell_det.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1d6d0d3426b63a87c27566aa1e9ebb3912b46f3d606394c4dc0d6b23d32fd60
3
+ size 129331821
RT-DETR-L_wired_table_cell_det.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: RT-DETR-L_wired_table_cell_det
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
+ - cell
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
RT-DETR-L_wireless_table_cell_det.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f18a845de806c4983db1df372280f6bf7d6af2049c02673ab691ef18fd2df50d
3
+ size 129331821
RT-DETR-L_wireless_table_cell_det.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: RT-DETR-L_wireless_table_cell_det
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
+ - cell
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
SLANeXt_wired.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a6e063b56e35a434eb6669eb2342113c6bd76a6ce5acaa0331f370c9e00732f
3
+ size 367743373
SLANeXt_wired.yml ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: SLANeXt_wired
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"'
SLANeXt_wireless.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c79ee87cce6712f8f640394decce72157bd1df13c9bccf86d071bd07a6e9f97
3
+ size 367743373
SLANeXt_wireless.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"'