PointNeXt release helpers, checkpoint download utilities, and metadata for pip-installed OpenPoints/PointNeXt users.
Project description
PointNeXt
[arXiv] | [OpenPoints Library] | [Online Documentation]
Official PyTorch implementation for the following paper:
PointNeXt: Revisiting PointNet++ with Improved Training and Scaling Strategies
by Guocheng Qian, Yuchen Li, Houwen Peng, Jinjie Mai, Hasan Hammoud, Mohamed Elhoseiny, Bernard Ghanem
TL;DR: We propose improved training and model scaling strategies to boost PointNet++ to the state-of-the-art level. PointNet++ with the proposed model scaling is named as PointNeXt, the next version of PointNets.
News
- :boom: Sep, 2022: PointNeXt accepted by NeurIPS'22
- :boom: Jun, 2022: Code released
Features
In the PointNeXt project, we propose a new and flexible codebase for point-based methods, namely OpenPoints. The biggest difference between OpenPoints and other libraries is that we focus more on reproducibility and fair benchmarking.
-
Extensibility: supports many representative networks for point cloud understanding, such as PointNet, DGCNN, DeepGCN, PointNet++, ASSANet, PointMLP, and our PointNeXt. More networks can be built easily based on our framework since OpenPoints support a wide range of basic operations including graph convolutions, self-attention, farthest point sampling, ball query, e.t.c.
-
Reproducibility: all implemented models are trained on various tasks at least three times. Mean±std is provided in the PointNeXt paper. Pretrained models and logs are available.
-
Fair Benchmarking: in PointNeXt, we find a large part of performance gain is due to the training strategies. In OpenPoints, all models are trained with the improved training strategies and all achieve much higher accuracy than the original reported value.
-
Ease of Use: Build model, optimizer, scheduler, loss function, and data loader easily from cfg. Train and validate different models on various tasks by simply changing the
cfg\*\*.yamlfile.model = build_model_from_cfg(cfg.model) criterion = build_criterion_from_cfg(cfg.criterion_args)Here is an example of
pointnet.yaml(model configuration for PointNet model):model: NAME: BaseCls encoder_args: NAME: PointNetEncoder in_channels: 4 cls_args: NAME: ClsHead num_classes: 15 in_channels: 1024 mlps: [512,256] norm_args: norm: 'bn1d'
-
Online logging: Support wandb for checking your results anytime anywhere. Just set
wandb.use_wandb=Truein your command.
Installation
Pip packages
The Python libraries are released as installable packages:
pip install pointnext_official
pointnext_official installs openpoints as its core library dependency and provides PointNeXt release metadata and checkpoint download helpers, for example:
pointnext-download --list
pointnext-download modelnet40-pointnext-s-c64 --output-dir ./hf_cache
The PyPI packages are importable without compiling CUDA extensions. Full training/evaluation still requires the custom CUDA/C++ ops, so use a source checkout for benchmark reproduction.
Source install for training/evaluation
git clone --recurse-submodules https://github.com/guochengqian/PointNeXt.git
cd PointNeXt
git submodule update --init --recursive
source update.sh
source install.sh
If SSH is configured, git@github.com:guochengqian/PointNeXt.git also works. CUDA 11.3 was used for the original release. Modify install.sh if a different CUDA/PyTorch version is used. See Install, FAQ, and Checkpoints for details.
Usage
Check our online documentation for detailed instructions.
A short instruction: all experiments follow the simple rule to train and test:
CUDA_VISIBLE_DEVICES=$GPUs python examples/$task_folder/main.py --cfg $cfg $kwargs
- $GPUs is the list of GPUs to use, for most experiments (ScanObjectNN, ModelNet40, S3DIS), we only use 1 A100 (GPUs=0)
- $task_folder is the folder name of the experiment. For example, for s3dis segmentation, $task_folder=s3dis
- $cfg is the path to cfg, for example, s3dis segmentation, $cfg=cfgs/s3dis/pointnext-s.yaml
- $kwargs are the other keyword arguments to use. For example, testing in S3DIS area 5, $kwargs should be
mode=test, --pretrained_path $pretrained_path.
Model Zoo (pretrained weights)
See Model Zoo and checkpoint download docs. The recommended new release path hosts large checkpoints and checksum manifests on Hugging Face Hub, while GitHub Releases/PyPI host source and Python packages.
Visualization
More examples are available in the paper.
Acknowledgment
This library is inspired by PyTorch-image-models and mmcv.
Citation
If you find PointNeXt or the OpenPoints codebase useful, please cite:
@InProceedings{qian2022pointnext,
title = {PointNeXt: Revisiting PointNet++ with Improved Training and Scaling Strategies},
author = {Qian, Guocheng and Li, Yuchen and Peng, Houwen and Mai, Jinjie and Hammoud, Hasan and Elhoseiny, Mohamed and Ghanem, Bernard},
booktitle=Advances in Neural Information Processing Systems (NeurIPS),
year = {2022},
}
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 pointnext_official-0.1.1.tar.gz.
File metadata
- Download URL: pointnext_official-0.1.1.tar.gz
- Upload date:
- Size: 4.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7b77895737e778a009401f642ecb96b8659f9002cd7c824dca773e4435c5d6a
|
|
| MD5 |
80479ed85438a35e68b8d0f62f2e2203
|
|
| BLAKE2b-256 |
147ffff12e7c026a29fcb942d3aa02a1d521b78cc5ac8349b6df1bff0ecb3b5f
|
File details
Details for the file pointnext_official-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pointnext_official-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88a0cc9ce8aa276dbc91b7397e13e73e8c3f906f708ec579f789cca7f58e8968
|
|
| MD5 |
e44a67d14bd7f56eee85dd790cf1275b
|
|
| BLAKE2b-256 |
0f9320d044bf5cb7ad5923ac7682ef3666ab0e1321e9579be86fc23376ac5542
|