pytorch-pointcloud
A PyTorch library for deep learning on point clouds: models, pretrained weights, datasets, transforms and inferers, inspired by timm.
Check out the official docs at pytorch-pointcloud.org!
|
Object classification pointnet2-ssg.modelnet40.xu-yan
|
Part segmentation pointnext-sm.shapenetpart.openpoints
|
Indoor segmentation / detection ptv3-base.scannet20.pointcept
|
|
Outdoor segmentation / detection spvcnn-119gmacs.semantickitti.mit-han-labsecond.kitti.openpcdet
|
Large scale segmentation utonia-lp.scannet20.pointcept
|
Feature extraction sonata-lp.scannet20.fair
|
Installation
Install the library with pip (or uv):
pip install torch-pointcloud
Quickstart
import torch
import torch_pointcloud as tp
# Requires torch-cluster, torch-scatter
model = tp.create_model(
"pointnext-sm.scanobjectnn.openpoints",
task="classification",
pretrained=True,
).eval()
pos = torch.randn(2048, 3) # (N, 3) coordinates
x = torch.cat([pos, pos[:, 1:2] - pos[:, 1].min()], dim=1) # (N, 4) features: xyz + height
batch = torch.zeros(2048, dtype=torch.long) # (N,) batch index
with torch.no_grad():
logits = model(x, pos, batch) # (1, 15)
Every checkpoint ships the transform that turns a raw point cloud into what the network expects:
# Requires torch-scatter, torch-cluster, spconv
model, info = tp.create_model("ptv3-base.scannet20.pointcept", task="segmentation", pretrained=True, return_info=True)
info["transform"] # the preprocessing pipeline of that checkpoint
info["weights"]["metrics"] # {"mIoU": 77.40}
tp.list_models("pointnext*") # every registered PointNeXt config
tp.list_models(task="detection", pretrained=True) # all detection checkpoints
See the examples directory for benchmarks and training recipes.
Documentation
The documentation covers installation, a get-started guide, the model zoo, datasets, transforms, tutorials and the full API reference.
Citation
If you find this project useful, please consider citing:
@software{dujardin2026pytorchpointcloud,
author = {Dujardin, Arthur},
title = {PyTorch PointCloud},
year = {2026},
url = {https://github.com/arthurdjn/pytorch-pointcloud},
doi = {10.5281/zenodo.22159632},
license = {Apache-2.0}
}
License
Apache 2.0. See LICENSE.
Release files for torch-pointcloud 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| torch_pointcloud-0.0.4.tar.gz | 549.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torch_pointcloud-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / torch_pointcloud-0.0.4.tar.gz
| Download URL | torch_pointcloud-0.0.4.tar.gz |
|---|---|
| Size | 549.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8849a96777abdef7f142a735ccdba164ad0de77c0aeba38092280d53f7c00fc
|
|
BLAKE2b-256 checksum How to use checksums |
93fad48280316f881f3a3170358b129f290ca431bbcff0b5ae0f0de8a1d5141c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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 / torch_pointcloud-0.0.4-py3-none-any.whl
| Download URL | torch_pointcloud-0.0.4-py3-none-any.whl |
|---|---|
| Size | 662.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec5473ab72a4c3566a9050bb98230d8ba324303aebdad84abf814ca42525c6fb
|
|
BLAKE2b-256 checksum How to use checksums |
fe613cb90fa05d30e3d6226ab2863ed2d5098f0d12526ce8966ed8f54d6c4d1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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}
|