Skip to main content

socc_plotter

codecov CI GitHub License PyPI - Version PyPI - Downloads

Semantic Occupancy 3D Plotter. This is the plotter made by the SOccDPT project to create fancy 3D visuals. You can use this for your own AV or Robotics visualization!

demo

Install it from PyPI

pip install socc_plotter

Usage

The socc_plotter works on a callback mechanism since the GUI must be run on the main thread.

from socc_plotter.plotter import Plotter
import time

def callback(plot: Plotter):
    time.sleep(1)
    print("in callback")
    graph_region = plot.graph_region

    points = np.array([[1, 0, 0]])
    colors = np.array([[1, 1, 1]])

    graph_region.setData(pos=points, color=colors)

plotter = Plotter(
    callback=callback,
)
plotter.start()

NuScenes Demo

Start by downloading the NuScenes mini datset

mkdir -p data/nuscenes/
cd data/nuscenes/
wget -c https://www.nuscenes.org/data/v1.0-mini.tgz
tar -xf v1.0-mini.tgz

Install a few dependencies for the demo

pip install nuscenes-devkit==1.1.10
pip install transformers torch torchvision timm accelerate general_navigation

Run the demo

$ python -m socc_plotter
#or
$ socc_plotter

Development

Read the CONTRIBUTING.md file.

Cite

Cite our work if you find it useful

@article{NG2024SOccDPT,
  title={SOccDPT: 3D Semantic Occupancy from Dense Prediction Transformers trained under memory constraints},
  author={NG, Aditya},
  journal={Advances in Artificial Intelligence and Machine Learning},
  volume={ISSN: 2582-9793, Source Id: 21101164612},
  year={2024},
  url={https://www.oajaiml.com/}
}

TODO

  • Demo
    • RGB Frame
    • Depth perception
    • Semantic segmentation
    • NuScenes Calibration
    • NuScenes Vehicle trajectory
    • Semantic Occupancy Grid
  • Ensure demo dependencies are seperate from the module
  • Demo is to prompt the user to install dependencies
  • Demo is to auto download NuScenes and unarchive it
  • Test Cases
  • PiPy deployment

Metadata

Release files for socc-plotter 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for socc-plotter 0.5.0
File Size Uploaded Provenance Actions
socc_plotter-0.5.0.tar.gz 595.9 kB Without provenance Details for socc_plotter-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for socc-plotter 0.5.0
File Interpreter ABI Platform Actions
socc_plotter-0.5.0-py3-none-any.whl Python 3 none any Details for socc_plotter-0.5.0-py3-none-any.whl

Total release size: 1.2 MB

Release files / socc_plotter-0.5.0.tar.gz

Download URL socc_plotter-0.5.0.tar.gz
Size 595.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c2cb47cb55e9a3b35e5142848189958fb73d0851abf91c43dd3f0e0ec46bc4b1
BLAKE2b-256 checksum
How to use checksums
af2219999ee995011bad0afbe9648e1aa472849d52ace284a0732896bbd7c0aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release files / socc_plotter-0.5.0-py3-none-any.whl

Download URL socc_plotter-0.5.0-py3-none-any.whl
Size 598.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43458e1cbe4a4e9ed33477dc03f6864bce6dd6d6deaa9b9a2fd169e7de0fb047
BLAKE2b-256 checksum
How to use checksums
522f55a1039b4b2700aab6d12b409da59b987ee5a636edbdbe7318b0136be2ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Security for socc-plotter 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page