Skip to main content

vision3d

This library is a 3D extension of torchvision, providing datasets, tensor types, transforms, ops, metrics, and visualization utilities for 3D perception tasks.

Documentation is available at vision3d.dev.

[!WARNING] vision3d is in active early development. The API may change without notice and documentation may be incomplete.

Requirements

  • Python 3.12 or newer.
  • PyTorch 2.10 or newer.
  • Recommended: A CUDA-capable NVIDIA GPU for GPU execution.
  • For building from source: the CUDA toolkit matching your PyTorch build.

Installation

vision3d is published on PyPI as a pre-built wheel and sdist. The wheel is built against the LibTorch Stable ABI and statically links the CUDA runtime, so one wheel works for any Python 3.12+, torch 2.10+, and any NVIDIA driver that supports CUDA 12.8 or newer (Linux driver ≥ 570).

From PyPI

We recommend using uv as your package manager:

uv add vision3d

Or with pip:

pip install vision3d

From source

Clone the repository and sync the environment:

git clone https://github.com/yeetypete/vision3d.git
cd vision3d
uv sync --all-extras

uv sync compiles the C++/CUDA extension as part of installing the project. On machines where CUDA is installed but no GPU is visible (for example, inside containers), force a CUDA build with:

FORCE_CUDA=1 TORCH_CUDA_ARCH_LIST="12.0+PTX" uv sync --all-extras

[!NOTE] TORCH_CUDA_ARCH_LIST selects which NVIDIA compute capabilities to compile CUDA kernels for (e.g. 12.0 for RTX 50-series). See the PyTorch docs for the full syntax.

To produce a wheel locally:

uv build

By default uv build resolves torch from PyPI, which currently ships the cu130 variant. If your local CUDA toolkit is a different major version, point uv at the matching PyTorch wheel index instead:

uv build --index https://download.pytorch.org/whl/cu128

Replace cu128 with whatever CUDA major version your installed CUDA toolkit ships, e.g. cu130, cu132.

Extras

  • viz: pulls in rerun-sdk for the visualization utilities in vision3d.viz.

Request it at install time, for example: uv add 'vision3d[viz]'.

Contributing

Contributions are welcome! See CONTRIBUTING.md for how to get started.

License

vision3d is released under the BSD 3-Clause License.

Metadata

Release files for vision3d 0.5.2

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

Source distribution (sdist)

Source distribution for vision3d 0.5.2
File Size Uploaded
vision3d-0.5.2.tar.gz 151.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vision3d 0.5.2
File Interpreter ABI Platform
vision3d-0.5.2-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details

Total release size: 2.4 MB

Release files / vision3d-0.5.2.tar.gz

Download URL vision3d-0.5.2.tar.gz
Size 151.8 kB
Tags Source
SHA-256 checksum
How to use checksums
31cb585e5fbb37e834326302528d882166be4344f8d8ddc76ac3fb79c92becfc
BLAKE2b-256 checksum
How to use checksums
5111498e349bf8ed2beca3c8b8152503699cc7f3ddc8d657b0b55a385e156f7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / vision3d-0.5.2-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL vision3d-0.5.2-cp312-abi3-manylinux_2_28_x86_64.whl
Size 2.3 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
2c8c763d96f287a39dc2ac728d6f536c6838ecdc0aee7b9a134484703e163849
BLAKE2b-256 checksum
How to use checksums
692ca922e8503add8f746c468dd26cb6d6440d6cbbdc2215294672b5b64d6b0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

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