update SPDX and license
Browse files- README.md +2 -5
- model.py +3 -0
- post_processing/table_struct_pp.py +3 -0
- post_processing/wbf.py +3 -0
- table_structure_v1.py +3 -0
- utils.py +3 -0
- yolox/__init__.py +3 -0
- yolox/boxes.py +3 -0
- yolox/darknet.py +3 -0
- yolox/network_blocks.py +3 -0
- yolox/yolo_fpn.py +3 -0
- yolox/yolo_head.py +3 -0
- yolox/yolo_pafpn.py +3 -0
- yolox/yolox.py +3 -0
README.md
CHANGED
|
@@ -40,7 +40,7 @@ This model is ready for commercial use and is a part of the NVIDIA NeMo Retrieve
|
|
| 40 |
|
| 41 |
### License/Terms of use
|
| 42 |
|
| 43 |
-
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/).
|
| 44 |
|
| 45 |
**You are responsible for ensuring that your use of NVIDIA provided models complies with all applicable laws.**
|
| 46 |
|
|
@@ -258,8 +258,6 @@ NVIDIA believes Trustworthy AI is a shared responsibility and we have establishe
|
|
| 258 |
|
| 259 |
**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.
|
| 260 |
|
| 261 |
-
Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
|
| 262 |
-
|
| 263 |
## Bias
|
| 264 |
|
| 265 |
| Field | Response |
|
|
@@ -281,8 +279,7 @@ Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.
|
|
| 281 |
| Verified to have met prescribed NVIDIA quality standards: | Yes |
|
| 282 |
| Performance Metrics: | Mean Average Precision, detectionr recall and visual inspection |
|
| 283 |
| Potential Known Risks: | This model may not always detect all elements in a document. |
|
| 284 |
-
| Licensing & Terms of Use: | Use of this model is governed by the [NVIDIA
|
| 285 |
-
|
| 286 |
|
| 287 |
## Privacy
|
| 288 |
|
|
|
|
| 40 |
|
| 41 |
### License/Terms of use
|
| 42 |
|
| 43 |
+
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).
|
| 44 |
|
| 45 |
**You are responsible for ensuring that your use of NVIDIA provided models complies with all applicable laws.**
|
| 46 |
|
|
|
|
| 258 |
|
| 259 |
**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.
|
| 260 |
|
|
|
|
|
|
|
| 261 |
## Bias
|
| 262 |
|
| 263 |
| Field | Response |
|
|
|
|
| 279 |
| Verified to have met prescribed NVIDIA quality standards: | Yes |
|
| 280 |
| Performance Metrics: | Mean Average Precision, detectionr recall and visual inspection |
|
| 281 |
| Potential Known Risks: | This model may not always detect all elements in a document. |
|
| 282 |
+
| 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). |
|
|
|
|
| 283 |
|
| 284 |
## Privacy
|
| 285 |
|
model.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|
| 4 |
import os
|
| 5 |
import sys
|
| 6 |
import torch
|
post_processing/table_struct_pp.py
CHANGED
|
@@ -1 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# TODO
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
# TODO
|
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 |
|
table_structure_v1.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import torch
|
| 2 |
import torch.nn as nn
|
| 3 |
from typing import List, Tuple
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
import torch
|
| 5 |
import torch.nn as nn
|
| 6 |
from typing import List, Tuple
|
utils.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
import numpy as np
|
| 3 |
import pandas as pd
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
|
| 5 |
import numpy as np
|
| 6 |
import pandas as pd
|
yolox/__init__.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
# -*- coding:utf-8 -*-
|
| 3 |
# Copyright (c) Megvii Inc. All rights reserved.
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
#!/usr/bin/env python3
|
| 5 |
# -*- coding:utf-8 -*-
|
| 6 |
# Copyright (c) Megvii Inc. All rights reserved.
|
yolox/boxes.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
# Copyright (c) Megvii Inc. All rights reserved.
|
| 3 |
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
#!/usr/bin/env python3
|
| 5 |
# Copyright (c) Megvii Inc. All rights reserved.
|
| 6 |
|
yolox/darknet.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
# -*- encoding: utf-8 -*-
|
| 3 |
# Copyright (c) Megvii Inc. All rights reserved.
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
#!/usr/bin/env python
|
| 5 |
# -*- encoding: utf-8 -*-
|
| 6 |
# Copyright (c) Megvii Inc. All rights reserved.
|
yolox/network_blocks.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
# -*- encoding: utf-8 -*-
|
| 3 |
# Copyright (c) Megvii Inc. All rights reserved.
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
#!/usr/bin/env python
|
| 5 |
# -*- encoding: utf-8 -*-
|
| 6 |
# Copyright (c) Megvii Inc. All rights reserved.
|
yolox/yolo_fpn.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
# -*- encoding: utf-8 -*-
|
| 3 |
# Copyright (c) Megvii Inc. All rights reserved.
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
#!/usr/bin/env python
|
| 5 |
# -*- encoding: utf-8 -*-
|
| 6 |
# Copyright (c) Megvii Inc. All rights reserved.
|
yolox/yolo_head.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
# -*- coding:utf-8 -*-
|
| 3 |
# Copyright (c) Megvii Inc. All rights reserved.
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
#!/usr/bin/env python3
|
| 5 |
# -*- coding:utf-8 -*-
|
| 6 |
# Copyright (c) Megvii Inc. All rights reserved.
|
yolox/yolo_pafpn.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
# -*- encoding: utf-8 -*-
|
| 3 |
# Copyright (c) Megvii Inc. All rights reserved.
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
#!/usr/bin/env python
|
| 5 |
# -*- encoding: utf-8 -*-
|
| 6 |
# Copyright (c) Megvii Inc. All rights reserved.
|
yolox/yolox.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
# -*- encoding: utf-8 -*-
|
| 3 |
# Copyright (c) Megvii Inc. All rights reserved.
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
#!/usr/bin/env python
|
| 5 |
# -*- encoding: utf-8 -*-
|
| 6 |
# Copyright (c) Megvii Inc. All rights reserved.
|