Theo Viel commited on
Commit
a8b7150
·
2 Parent(s): 416ba18 1668d18

Merge branch 'main' of hf.co:nvidia/nemoretriever-page-elements-v3 into main

Browse files
README.md CHANGED
@@ -23,17 +23,17 @@ tags:
23
 
24
  ### Description
25
 
26
- The **NeMo Retriever Page Elements v3** model is a specialized object detection model designed to identify and extract key elements from charts and graphs. While the underlying technology builds upon work from [Megvii Technology](https://github.com/Megvii-BaseDetection/YOLOX), we developed our own base model through complete retraining rather than using pre-trained weights. YOLOX is an anchor-free version of YOLO (You Only Look Once), this model combines a simpler architecture with enhanced performance. The model is trained to detect **tables**, **charts**, **infographics**, **titles**, **header/footers** and **texts** in documents.
27
 
28
  This model supersedes the [nemoretriever-page-elements](https://build.nvidia.com/nvidia/nemoretriever-page-elements-v2) model and is a part of the NVIDIA NeMo Retriever family of NIM microservices specifically for object detection and multimodal extraction of enterprise documents.
29
 
30
- This model is ready for commercial/non-commercial use.
31
 
32
- ### License/Terms of use
33
 
34
- The use of this model is governed by the [NVIDIA Open Model License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/).
35
 
36
- **You are responsible for ensuring that your use of NVIDIA provided models complies with all applicable laws.**
37
 
38
  ### Team
39
 
@@ -231,10 +231,6 @@ The primary evaluation set is a cut of the Azure labels and digital corpora imag
231
 
232
  NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
233
 
234
- **For more detailed information on ethical considerations for this model**, please see the Model Card++ [Explainability](explainability.md), [Bias](bias.md), [Safety & Security](safety-security.md), and [Privacy](privacy.md) Subcards.
235
-
236
- Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
237
-
238
 
239
  ## Bias
240
 
@@ -257,7 +253,7 @@ Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.
257
  | Verified to have met prescribed NVIDIA quality standards: | Yes |
258
  | Performance Metrics: | Mean Average Precision, detectionr recall and visual inspection |
259
  | Potential Known Risks: | This model may not always detect all elements in a document. |
260
- | Licensing & Terms of Use: | Use of this model is governed by the [NVIDIA Open Model License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/) and the [Apache 2.0 License](https://github.com/Megvii-BaseDetection/YOLOX/blob/main/LICENSE). |
261
 
262
  ## Privacy
263
 
@@ -279,4 +275,4 @@ Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.
279
  | Model Application Field(s): | Object Detection for Retrieval, focused on Enterprise |
280
  | Describe the life critical impact (if present). | Not Applicable |
281
  | Use Case Restrictions: | Abide by [NVIDIA Open Model License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/). |
282
- | Model and dataset restrictions: | The Principle of least privilege (PoLP) is applied limiting access for dataset generation and model development. Restrictions enforce dataset access during training, and dataset license constraints adhered to. |
 
23
 
24
  ### Description
25
 
26
+ The **NeMo Retriever Page Elements v3** model is a specialized object detection model designed to identify and extract elements from document pages. While the underlying technology builds upon work from [Megvii Technology](https://github.com/Megvii-BaseDetection/YOLOX), we developed our own base model through complete retraining rather than using pre-trained weights. YOLOX is an anchor-free version of YOLO (You Only Look Once), this model combines a simpler architecture with enhanced performance. The model is trained to detect **tables**, **charts**, **infographics**, **titles**, **header/footers** and **texts** in documents.
27
 
28
  This model supersedes the [nemoretriever-page-elements](https://build.nvidia.com/nvidia/nemoretriever-page-elements-v2) model and is a part of the NVIDIA NeMo Retriever family of NIM microservices specifically for object detection and multimodal extraction of enterprise documents.
29
 
30
+ This model is ready for commercial/non-commercial use.
31
 
32
+ We are excited to announce the open sourcing of this commercial model. For users interested in deploying this model in production environments, it is also available via the model API in NVIDIA Inference Microservices (NIM) at [nemoretriever-page-elements-v2](https://build.nvidia.com/nvidia/nemoretriever-page-elements-v2).
33
 
34
+ ### License/Terms of use
35
 
36
+ The use of this model is governed by the [NVIDIA Open Model License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/) and the use of the post-processing scripts are licensed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt).
37
 
38
  ### Team
39
 
 
231
 
232
  NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
233
 
 
 
 
 
234
 
235
  ## Bias
236
 
 
253
  | Verified to have met prescribed NVIDIA quality standards: | Yes |
254
  | Performance Metrics: | Mean Average Precision, detectionr recall and visual inspection |
255
  | Potential Known Risks: | This model may not always detect all elements in a document. |
256
+ | Licensing & Terms of Use: | Use of this model is governed by the [NVIDIA Open Model License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/) and the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0.txt). |
257
 
258
  ## Privacy
259
 
 
275
  | Model Application Field(s): | Object Detection for Retrieval, focused on Enterprise |
276
  | Describe the life critical impact (if present). | Not Applicable |
277
  | Use Case Restrictions: | Abide by [NVIDIA Open Model License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/). |
278
+ | Model and dataset restrictions: | The Principle of least privilege (PoLP) is applied limiting access for dataset generation and model development. Restrictions enforce dataset access during training, and dataset license constraints adhered to. |
THIRD_PARTY_NOTICES.md ADDED
@@ -0,0 +1,426 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -----
2
+
3
+ Copyright "PyTorch Contributors" - BSD-style License
4
+ License Text([https://github.com/pytorch/pytorch/blob/main/LICENSE](https://www.google.com/search?q=https://github.com/pytorch/pytorch/blob/main/LICENSE))
5
+
6
+ This notice applies to **torch** and **torchvision**.
7
+
8
+ Copyright (c) 2016- Facebook, Inc. (Adam Paszke)
9
+ Copyright (c) 2014- Facebook, Inc. (Soumith Chintala)
10
+ Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert)
11
+ Copyright (c) 2012-2014 DeepMind Technologies (Koray Kavukcuoglu)
12
+ Copyright (c) 2011-2012 NEC Laboratories America (Clement Farabet)
13
+ Copyright (c) 2011-2013 New York University (Antoine Bordes)
14
+ Copyright (c) 2012-2013 University of Montreal (Pascal Vincent)
15
+ Copyright (c) 2014- Google Inc.
16
+ Copyright (c) 2015- Twitter, Inc.
17
+ Copyright (c) 2015- Intel Corporation
18
+ Copyright (c) 2015- AMD Inc.
19
+ Copyright (c) 2016- Baidu, Inc.
20
+ Copyright (c) 2016- Microsoft Corporation
21
+ Copyright (c) 2017- Amazon.com, Inc.
22
+ Copyright (c) 2018- Facebook AI Research
23
+ Copyright (c) 2019- fast.ai, Inc.
24
+ Copyright (c) 2022- PyTorch Contributors
25
+ All rights reserved.
26
+
27
+ Redistribution and use in source and binary forms, with or without
28
+ modification, are permitted provided that the following conditions are met:
29
+
30
+ * Redistributions of source code must retain the above copyright notice, this
31
+ list of conditions and the following disclaimer.
32
+
33
+ * Redistributions in binary form must reproduce the above copyright notice,
34
+ this list of conditions and the following disclaimer in the documentation
35
+ and/or other materials provided with the distribution.
36
+
37
+ * Neither the name of Facebook Inc. nor the names of its contributors may be
38
+ used to endorse or promote products derived from this software without
39
+ specific prior written permission.
40
+
41
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
42
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
44
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
45
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
47
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
48
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
49
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
50
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
51
+
52
+ -----
53
+
54
+ Copyright "NumPy Developers" - BSD 3-Clause License
55
+ License Text([https://opensource.org/licenses/BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause))
56
+
57
+ This notice applies to **numpy**.
58
+
59
+ Copyright (c) 2005-2023, NumPy Developers.
60
+ All rights reserved.
61
+
62
+ Redistribution and use in source and binary forms, with or without
63
+ modification, are permitted provided that the following conditions are
64
+ met:
65
+
66
+ ```
67
+ * Redistributions of source code must retain the above copyright
68
+ notice, this list of conditions and the following disclaimer.
69
+
70
+ * Redistributions in binary form must reproduce the above
71
+ copyright notice, this list of conditions and the following
72
+ disclaimer in the documentation and/or other materials provided
73
+ with the distribution.
74
+
75
+ * Neither the name of the NumPy Developers nor the names of any
76
+ contributors may be used to endorse or promote products derived
77
+ from this software without specific prior written permission.
78
+ ```
79
+
80
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
81
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
82
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
83
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
84
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
85
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
86
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
87
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
88
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
89
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
90
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
91
+
92
+ -----
93
+
94
+ Copyright "pandas Developers" - BSD 3-Clause License
95
+ License Text([https://opensource.org/licenses/BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause))
96
+
97
+ This notice applies to **pandas**.
98
+
99
+ Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
100
+ All rights reserved.
101
+
102
+ Copyright (c) 2011-2023, The PyData Development Team
103
+ All rights reserved.
104
+
105
+ Redistribution and use in source and binary forms, with or without
106
+ modification, are permitted provided that the following conditions are
107
+ met:
108
+
109
+ ```
110
+ * Redistributions of source code must retain the above copyright
111
+ notice, this list of conditions and the following disclaimer.
112
+
113
+ * Redistributions in binary form must reproduce the above
114
+ copyright notice, this list of conditions and the following
115
+ disclaimer in the documentation and/or other materials provided
116
+ with the distribution.
117
+
118
+ * Neither the name of the pandas development team nor the names of
119
+ any contributors may be used to endorse or promote products
120
+ derived from this software without specific prior written
121
+ permission.
122
+ ```
123
+
124
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
125
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
126
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
127
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
128
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
129
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
130
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
131
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
132
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
133
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
134
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
135
+
136
+ -----
137
+
138
+ Copyright "John D. Hunter & The Matplotlib development team" - Matplotlib License
139
+ License Text([https://github.com/matplotlib/matplotlib/blob/main/LICENSE/LICENSE](https://www.google.com/search?q=https://github.com/matplotlib/matplotlib/blob/main/LICENSE/LICENSE))
140
+
141
+ This notice applies to **matplotlib**.
142
+
143
+ Copyright (c) 2002-2009 John D. Hunter; All Rights Reserved
144
+ Copyright (c) 2012-2023 The Matplotlib development team; All Rights Reserved
145
+
146
+ Redistribution and use in source and binary forms, with or without
147
+ modification, are permitted provided that the following conditions are
148
+ met:
149
+
150
+ ```
151
+ * Redistributions of source code must retain the above copyright
152
+ notice, this list of conditions and the following disclaimer.
153
+
154
+ * Redistributions in binary form must reproduce the above copyright
155
+ notice, this list of conditions and the following disclaimer in
156
+ the documentation and/or other materials provided with the
157
+ distribution.
158
+
159
+ * Neither the name of Matplotlib nor the names of its contributors
160
+ may be used to endorse or promote products derived from this
161
+ software without specific prior written permission.
162
+ ```
163
+
164
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
165
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
166
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
167
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
168
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
169
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
170
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
171
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
172
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
173
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
174
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
175
+
176
+ -----
177
+
178
+ Copyright "Secret Labs AB, Fredrik Lundh, Alex Clark and contributors" - Pillow License
179
+ License Text([https://github.com/python-pillow/Pillow/blob/main/LICENSE](https://www.google.com/search?q=https://github.com/python-pillow/Pillow/blob/main/LICENSE))
180
+
181
+ This notice applies to **PIL (Pillow)**.
182
+
183
+ The Python Imaging Library (PIL) is
184
+ Copyright (c) 1997-2011 by Secret Labs AB
185
+ Copyright (c) 1995-2011 by Fredrik Lundh
186
+ Copyright (c) 2010-2023 by Alex Clark and contributors
187
+
188
+ Like PIL, Pillow is licensed under the open source HPND License:
189
+
190
+ By obtaining, using, and/or copying this software and/or its
191
+ associated documentation, you agree that you have read, understood,
192
+ and will comply with the following terms and conditions:
193
+
194
+ Permission to use, copy, modify, and distribute this software and
195
+ its associated documentation for any purpose and without fee is
196
+ hereby granted, provided that the above copyright notice appears in
197
+ all copies, and that both that copyright notice and this permission
198
+ notice appear in supporting documentation, and that the name of
199
+ Secret Labs AB or the author not be used in advertising or publicity
200
+ pertaining to distribution of the software without specific, written
201
+ prior permission.
202
+
203
+ SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
204
+ TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT-
205
+ ABILITY AND FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR
206
+ BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
207
+ DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
208
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
209
+ ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
210
+ OF THIS SOFTWARE.
211
+
212
+ -----
213
+
214
+ Copyright "ZFTurbo" - MIT License
215
+ License Text([https://opensource.org/licenses/MIT](https://opensource.org/licenses/MIT))
216
+
217
+ This notice applies to the vendored code from **Weighted-Boxes-Fusion** ([https://github.com/ZFTurbo/Weighted-Boxes-Fusion](https://github.com/ZFTurbo/Weighted-Boxes-Fusion)).
218
+
219
+ Copyright (c) 2020 ZFTurbo
220
+
221
+ Permission is hereby granted, free of charge, to any person obtaining a copy
222
+ of this software and associated documentation files (the "Software"), to deal
223
+ in the Software without restriction, including without limitation the rights
224
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
225
+ copies of the Software, and to permit persons to whom the Software is
226
+ furnished to do so, subject to the following conditions:
227
+
228
+ The above copyright notice and this permission notice shall be included in all
229
+ copies or substantial portions of the Software.
230
+
231
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
232
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
233
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
234
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
235
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
236
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
237
+ SOFTWARE.
238
+
239
+ -----
240
+
241
+ Copyright "Megvii Inc." - Apache License 2.0
242
+ License Text([https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0))
243
+
244
+ This notice applies to the vendored code from **YOLOX** ([https://github.com/Megvii-BaseDetection/YOLOX](https://github.com/Megvii-BaseDetection/YOLOX)).
245
+
246
+ Copyright (c) 2021-2022 Megvii Inc.
247
+
248
+ ```
249
+ Apache License
250
+ Version 2.0, January 2004
251
+ [http://www.apache.org/licenses/](http://www.apache.org/licenses/)
252
+ ```
253
+
254
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
255
+
256
+ 1. Definitions.
257
+
258
+ "License" shall mean the terms and conditions for use, reproduction,
259
+ and distribution as defined by Sections 1 through 9 of this document.
260
+
261
+ "Licensor" shall mean the copyright owner or entity authorized by
262
+ the copyright owner that is granting the License.
263
+
264
+ "Legal Entity" shall mean the union of the acting entity and all
265
+ other entities that control, are controlled by, or are under common
266
+ control with that entity. For the purposes of this definition,
267
+ "control" means (i) the power, direct or indirect, to cause the
268
+ direction or management of such entity, whether by contract or
269
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
270
+ outstanding shares, or (iii) beneficial ownership of such entity.
271
+
272
+ "You" (or "Your") shall mean an individual or Legal Entity
273
+ exercising permissions granted by this License.
274
+
275
+ "Source" form shall mean the preferred form for making modifications,
276
+ including but not limited to software source code, documentation
277
+ source, and configuration files.
278
+
279
+ "Object" form shall mean any form resulting from mechanical
280
+ transformation or translation of a Source form, including but
281
+ not limited to compiled object code, generated documentation,
282
+ and conversions to other media types.
283
+
284
+ "Work" shall mean the work of authorship, whether in Source or
285
+ Object form, made available under the License, as indicated by a
286
+ copyright notice that is included in or attached to the work
287
+ (an example is provided in the Appendix below).
288
+
289
+ "Derivative Works" shall mean any work, whether in Source or Object
290
+ form, that is based on (or derived from) the Work and for which the
291
+ editorial revisions, annotations, elaborations, or other modifications
292
+ represent, as a whole, an original work of authorship. For the purposes
293
+ of this License, Derivative Works shall not include works that remain
294
+ separable from, or merely link (or bind by name) to the interfaces of,
295
+ the Work and Derivative Works thereof.
296
+
297
+ "Contribution" shall mean any work of authorship, including
298
+ the original version of the Work and any modifications or additions
299
+ to that Work or Derivative Works thereof, that is intentionally
300
+ submitted to Licensor for inclusion in the Work by the copyright owner
301
+ or by an individual or Legal Entity authorized to submit on behalf of
302
+ the copyright owner. For the purposes of this definition, "submitted"
303
+ means any form of electronic, verbal, or written communication sent
304
+ to the Licensor or its representatives, including but not limited to
305
+ communication on electronic mailing lists, source code control systems,
306
+ and issue tracking systems that are managed by, or on behalf of, the
307
+ Licensor for the purpose of discussing and improving the Work, but
308
+ excluding communication that is conspicuously marked or otherwise
309
+ designated in writing by the copyright owner as "Not a Contribution."
310
+
311
+ "Contributor" shall mean Licensor and any individual or Legal Entity
312
+ on behalf of whom a Contribution has been received by Licensor and
313
+ subsequently incorporated within the Work.
314
+
315
+ 2. Grant of Copyright License. Subject to the terms and conditions of
316
+ this License, each Contributor hereby grants to You a perpetual,
317
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
318
+ copyright license to reproduce, prepare Derivative Works of,
319
+ publicly display, publicly perform, sublicense, and distribute the
320
+ Work and such Derivative Works in Source or Object form.
321
+
322
+ 3. Grant of Patent License. Subject to the terms and conditions of
323
+ this License, each Contributor hereby grants to You a perpetual,
324
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
325
+ (except as stated in this section) patent license to make, have made,
326
+ use, offer to sell, sell, import, and otherwise transfer the Work,
327
+ where such license applies only to those patent claims licensable
328
+ by such Contributor that are necessarily infringed by their
329
+ Contribution(s) alone or by combination of their Contribution(s)
330
+ with the Work to which such Contribution(s) was submitted. If You
331
+ institute patent litigation against any entity (including a
332
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
333
+ or a Contribution incorporated within the Work constitutes direct
334
+ or contributory patent infringement, then any patent licenses
335
+ granted to You under this License for that Work shall terminate
336
+ as of the date such litigation is filed.
337
+
338
+ 4. Redistribution. You may reproduce and distribute copies of the
339
+ Work or Derivative Works thereof in any medium, with or without
340
+ modifications, and in Source or Object form, provided that You
341
+ meet the following conditions:
342
+
343
+ (a) You must give any other recipients of the Work or
344
+ Derivative Works a copy of this License; and
345
+
346
+ (b) You must cause any modified files to carry prominent notices
347
+ stating that You changed the files; and
348
+
349
+ (c) You must retain, in the Source form of any Derivative Works
350
+ that You distribute, all copyright, patent, trademark, and
351
+ attribution notices from the Source form of the Work,
352
+ excluding those notices that do not pertain to any part of
353
+ the Derivative Works; and
354
+
355
+ (d) If the Work includes a "NOTICE" text file as part of its
356
+ distribution, then any Derivative Works that You distribute must
357
+ include a readable copy of the attribution notices contained
358
+ within such NOTICE file, excluding those notices that do not
359
+ pertain to any part of the Derivative Works, in at least one
360
+ of the following places: within a NOTICE text file distributed
361
+ as part of the Derivative Works; within the Source form or
362
+ documentation, if provided along with the Derivative Works; or,
363
+ within a display generated by the Derivative Works, if and
364
+ wherever such third-party notices normally appear. The contents
365
+ of the NOTICE file are for informational purposes only and
366
+ do not modify the License. You may add Your own attribution
367
+ notices within Derivative Works that You distribute, alongside
368
+ or as an addendum to the NOTICE text from the Work, provided
369
+ that such additional attribution notices cannot be construed
370
+ as modifying the License.
371
+
372
+ You may add Your own copyright statement to Your modifications and
373
+ may provide additional or different license terms and conditions
374
+ for use, reproduction, or distribution of Your modifications, or
375
+ for any such Derivative Works as a whole, provided Your use,
376
+ reproduction, and distribution of the Work otherwise complies with
377
+ the conditions stated in this License.
378
+
379
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
380
+ any Contribution intentionally submitted for inclusion in the Work
381
+ by You to the Licensor shall be under the terms and conditions of
382
+ this License, without any additional terms or conditions.
383
+ Notwithstanding the above, nothing herein shall supersede or modify
384
+ the terms of any separate license agreement you may have executed
385
+ with Licensor regarding such Contributions.
386
+
387
+ 6. Trademarks. This License does not grant permission to use the trade
388
+ names, trademarks, service marks, or product names of the Licensor,
389
+ except as required for reasonable and customary use in describing the
390
+ origin of the Work and reproducing the content of the NOTICE file.
391
+
392
+ 7. Disclaimer of Warranty. Unless required by applicable law or
393
+ agreed to in writing, Licensor provides the Work (and each
394
+ Contributor provides its Contributions) on an "AS IS" BASIS,
395
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
396
+ implied, including, without limitation, any warranties or conditions
397
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
398
+ PARTICULAR PURPOSE. You are solely responsible for determining the
399
+ appropriateness of using or redistributing the Work and assume any
400
+ risks associated with Your exercise of permissions under this License.
401
+
402
+ 8. Limitation of Liability. In no event and under no legal theory,
403
+ whether in tort (including negligence), contract, or otherwise,
404
+ unless required by applicable law (such as deliberate and grossly
405
+ negligent acts) or agreed to in writing, shall any Contributor be
406
+ liable to You for damages, including any direct, indirect, special,
407
+ incidental, or consequential damages of any character arising as a
408
+ Monitor
409
+ result of this License or out of the use or inability to use the
410
+ Work (including but not limited to damages for loss of goodwill,
411
+ work stoppage, computer failure or malfunction, or any and all
412
+ other commercial damages or losses), even if such Contributor
413
+ has been advised of the possibility of such damages.
414
+
415
+ 9. Accepting Warranty or Additional Liability. While redistributing
416
+ the Work or Derivative Works thereof, You may choose to offer,
417
+ and charge a fee for, acceptance of support, warranty, indemnity,
418
+ or other liability obligations and/or rights consistent with this
419
+ License. However, in accepting such obligations, You may act only
420
+ on Your own behalf and on Your sole responsibility, not on behalf
421
+ of any other Contributor, and only if You agree to indemnify,
422
+ defend, and hold each Contributor harmless for any liability
423
+ incurred by, or claims asserted against, such Contributor by reason
424
+ of your accepting any such warranty or additional liability.
425
+
426
+ END OF TERMS AND CONDITIONS
model.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import os
2
  import sys
3
  import torch
 
1
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
  import os
4
  import sys
5
  import torch
page_element_v3.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import torch
2
  import torch.nn as nn
3
  from typing import Dict, List, Tuple
 
1
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
  import torch
4
  import torch.nn as nn
5
  from typing import Dict, List, Tuple
post_processing/page_elt_pp.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import numpy as np
2
  import numpy.typing as npt
3
  from typing import List, Tuple, Optional
 
1
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
  import numpy as np
4
  import numpy.typing as npt
5
  from typing import List, Tuple, Optional
post_processing/text_pp.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import numpy as np
2
  import numpy.typing as npt
3
  from typing import Dict, List, Tuple, Literal
 
1
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
  import numpy as np
4
  import numpy.typing as npt
5
  from typing import Dict, List, Tuple, Literal
post_processing/wbf.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Adapted from:
2
  # https://github.com/ZFTurbo/Weighted-Boxes-Fusion/blob/master/ensemble_boxes/ensemble_boxes_wbf.py
3
 
 
1
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
  # Adapted from:
5
  # https://github.com/ZFTurbo/Weighted-Boxes-Fusion/blob/master/ensemble_boxes/ensemble_boxes_wbf.py
6
 
utils.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import numpy as np
2
  import numpy.typing as npt
3
  import matplotlib.pyplot as plt
 
1
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
  import numpy as np
4
  import numpy.typing as npt
5
  import matplotlib.pyplot as plt
yolox/__init__.py CHANGED
@@ -1,5 +1,9 @@
1
  #!/usr/bin/env python3
2
  # -*- coding:utf-8 -*-
 
 
 
 
3
  # Copyright (c) Megvii Inc. All rights reserved.
4
 
5
  from .yolo_head import YOLOXHead
 
1
  #!/usr/bin/env python3
2
  # -*- coding:utf-8 -*-
3
+
4
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
5
+ # SPDX-License-Identifier: Apache-2.0
6
+
7
  # Copyright (c) Megvii Inc. All rights reserved.
8
 
9
  from .yolo_head import YOLOXHead
yolox/boxes.py CHANGED
@@ -1,4 +1,8 @@
1
  #!/usr/bin/env python3
 
 
 
 
2
  # Copyright (c) Megvii Inc. All rights reserved.
3
 
4
  import torch
 
1
  #!/usr/bin/env python3
2
+
3
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4
+ # SPDX-License-Identifier: Apache-2.0
5
+
6
  # Copyright (c) Megvii Inc. All rights reserved.
7
 
8
  import torch
yolox/darknet.py CHANGED
@@ -1,5 +1,9 @@
1
  #!/usr/bin/env python
2
  # -*- encoding: utf-8 -*-
 
 
 
 
3
  # Copyright (c) Megvii Inc. All rights reserved.
4
 
5
  from torch import nn
 
1
  #!/usr/bin/env python
2
  # -*- encoding: utf-8 -*-
3
+
4
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
5
+ # SPDX-License-Identifier: Apache-2.0
6
+
7
  # Copyright (c) Megvii Inc. All rights reserved.
8
 
9
  from torch import nn
yolox/network_blocks.py CHANGED
@@ -1,5 +1,9 @@
1
  #!/usr/bin/env python
2
  # -*- encoding: utf-8 -*-
 
 
 
 
3
  # Copyright (c) Megvii Inc. All rights reserved.
4
 
5
  import torch
 
1
  #!/usr/bin/env python
2
  # -*- encoding: utf-8 -*-
3
+
4
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
5
+ # SPDX-License-Identifier: Apache-2.0
6
+
7
  # Copyright (c) Megvii Inc. All rights reserved.
8
 
9
  import torch
yolox/yolo_fpn.py CHANGED
@@ -1,5 +1,9 @@
1
  #!/usr/bin/env python
2
  # -*- encoding: utf-8 -*-
 
 
 
 
3
  # Copyright (c) Megvii Inc. All rights reserved.
4
 
5
  import torch
 
1
  #!/usr/bin/env python
2
  # -*- encoding: utf-8 -*-
3
+
4
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
5
+ # SPDX-License-Identifier: Apache-2.0
6
+
7
  # Copyright (c) Megvii Inc. All rights reserved.
8
 
9
  import torch
yolox/yolo_head.py CHANGED
@@ -1,5 +1,9 @@
1
  #!/usr/bin/env python3
2
  # -*- coding:utf-8 -*-
 
 
 
 
3
  # Copyright (c) Megvii Inc. All rights reserved.
4
 
5
  import torch
 
1
  #!/usr/bin/env python3
2
  # -*- coding:utf-8 -*-
3
+
4
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
5
+ # SPDX-License-Identifier: Apache-2.0
6
+
7
  # Copyright (c) Megvii Inc. All rights reserved.
8
 
9
  import torch
yolox/yolo_pafpn.py CHANGED
@@ -1,5 +1,9 @@
1
  #!/usr/bin/env python
2
  # -*- encoding: utf-8 -*-
 
 
 
 
3
  # Copyright (c) Megvii Inc. All rights reserved.
4
 
5
  import torch
 
1
  #!/usr/bin/env python
2
  # -*- encoding: utf-8 -*-
3
+
4
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
5
+ # SPDX-License-Identifier: Apache-2.0
6
+
7
  # Copyright (c) Megvii Inc. All rights reserved.
8
 
9
  import torch
yolox/yolox.py CHANGED
@@ -1,5 +1,9 @@
1
  #!/usr/bin/env python
2
  # -*- encoding: utf-8 -*-
 
 
 
 
3
  # Copyright (c) Megvii Inc. All rights reserved.
4
 
5
  import torch.nn as nn
 
1
  #!/usr/bin/env python
2
  # -*- encoding: utf-8 -*-
3
+
4
+ # SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
5
+ # SPDX-License-Identifier: Apache-2.0
6
+
7
  # Copyright (c) Megvii Inc. All rights reserved.
8
 
9
  import torch.nn as nn