3D bounding box NMS and plotting package
Project description
Implementation of 3D non-maximum suppression (NMS-3D) for bounding boxes using PyTorch and Plotly.
⬇️ Installation and Import
Now, this code is available with PyPI here. The package can be installed with:
pip install nms-3d
and can be imported as:
import nms_3d
📦 Package documentation
Package documentation is available here.
📂 Project Organization
The project consists of the following Python modules:
.
├── nms_3d/ # The NMS 3D package folder
│ ├── nms_3d.py # Function that applies the NMS 3D algorithm.
│ └── plot_3d_boxes.py # Function for creating 3D plots of bounding boxes using Plotly.
│
├── example.py # The script that contains the 3D NMS application example.
│
├── bbox-coords/ # The folder that contains the bounding box .csv files before and after the 3D NMS.
│ ├── bbox-coords-before-nms-3d.csv # Example file of bounding boxes to suppress.
│ └── bbox-coords-after-nms-3d.csv # Output file after applying the 3D NMS on bbox-coords-before-nms-3d.csv.
│
└── output/ # The folder that contains the .html visualization of the boxes before and after the 3D NMS.
├── best_boxes_after_nms.html # .html view of the boxes after the 3D NMS.
├── best_boxes_before_nms.html # .html view of the boxes before the 3D NMS.
└── NMS-image-example.png # Example image used in this README.md file.
Run the application example with:
python3 example.py
This code will read the bounding box coordinates from bbox-coords-before-nms-3d.csv, perform 3D NMS, and save the result to bbox-coords-after-nms-3d.csv. Also, two 3D plots are saved as HTML files to show the boxes before and after NMS.
🚨 Requirements
Python>=3.8.0
torch>=2.2.2
plotly>=5.13.1
Install the requirements with:
pip3 install -r requirements.txt
🤝 Contribution
👨💻 Ciro Russo, PhD
⚖️ License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nms_3d-0.1.8.tar.gz.
File metadata
- Download URL: nms_3d-0.1.8.tar.gz
- Upload date:
- Size: 375.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c17b6480a9086df04765d3c57738ec2d130eed2ba08507ff504b1bee3df31a0
|
|
| MD5 |
910c8beac1b822add7d72b8e082516ef
|
|
| BLAKE2b-256 |
3d34e0e5682958049fb85363b4ab030b70d74f715edea428d94b81c2b24a316a
|
File details
Details for the file nms_3d-0.1.8-py3-none-any.whl.
File metadata
- Download URL: nms_3d-0.1.8-py3-none-any.whl
- Upload date:
- Size: 374.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
839cbfc3e2424d8ea0d50e76bfe78a7198517f630925564eecf5be0e4f50877a
|
|
| MD5 |
406d2dde85b8d750fe20317fd0320905
|
|
| BLAKE2b-256 |
d7e40bbf87f814c71933aa981514c477461c0334e2f154bf8a4d5c2ab52c9c94
|