Skip to main content

A 3D extension of torchvision.

Project description

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 distributed as a source package on PyPI. There are also pre-built wheels attached to each GitHub release. We recommend using uv your package manager.

From PyPI

uv add vision3d

[!NOTE] Installing from PyPI builds the C++/CUDA extension on your machine, so the build-time requirements above apply. Use a pre-built wheel if you want to skip the compile step.

From a release wheel

Pre-built wheels are published as assets on each GitHub release for the following combinations:

  • Python 3.12, 3.13, 3.14
  • CUDA 13.0 (torch 2.11) and CUDA 12.8 (torch 2.10)
  • Linux x86_64

Pick the wheel that matches your Python interpreter and PyTorch/CUDA version, then install it directly from the release URL:

uv add https://github.com/yeetypete/vision3d/releases/download/v0.2.0/vision3d-0.2.0+cu130-cp314-cp314-linux_x86_64.whl

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

Extras

  • nuscenes: pulls in nuscenes-devkit for the nuScenes dataset loader.
  • viz: pulls in rerun-sdk for the visualization utilities in vision3d.viz.

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

Contributing

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

License

vision3d is released under the BSD 3-Clause License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision3d-0.2.1.tar.gz (89.3 kB view details)

Uploaded Source

File details

Details for the file vision3d-0.2.1.tar.gz.

File metadata

  • Download URL: vision3d-0.2.1.tar.gz
  • Upload date:
  • Size: 89.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","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}

File hashes

Hashes for vision3d-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b97af4e16230765a0e50bcaadb366570396a6d7f900c43db373566823b0f180c
MD5 89f7fcde893f538c06b780e0d0b84334
BLAKE2b-256 c7d842ddc59e5e159551c5c22b6510a9c44f83dc28cd0e0a008d5f8931b89a13

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page