Instructions to use torch-pointcloud/pointnext-sm-c64.modelnet40.openpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- torch-pointcloud
How to use torch-pointcloud/pointnext-sm-c64.modelnet40.openpoints with torch-pointcloud:
import torch_pointcloud as tp model = tp.create_model("pointnext-sm-c64.modelnet40.openpoints", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Upload pointnext-sm-c64.modelnet40.openpoints
Browse filesFiles changed (2)
- README.mdAdded+108
- model.safetensorsAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108---license: mitlibrary_name: torch-pointcloudtags:- point-cloud- 3d- pytorch- torch-pointcloud- pointnext- classificationdatasets:- modelnet40model-index:- name: pointnext-sm-c64.modelnet40.openpoints results: - task: type: point-cloud-classification dataset: name: ModelNet40 type: modelnet40 metrics: - name: OA type: accuracy value: 93.8---
# Model card for pointnext-sm-c64.modelnet40.openpoints
A PointNeXt point cloud classification model (scaled PointNet++ with inverted residual blocks). Trained on ModelNet40.
## Model Details
- **Model Type:** Point cloud classification- **Model Stats:** - Params (M): 4.5 - Input channels: 3 - Classes: 40 - Features: 1024- **Dataset:** ModelNet40- **Metrics:** OA 93.8 (reference 94.0)- **Paper:** [PointNeXt: Revisiting PointNet++ with Improved Training and Scaling Strategies](https://arxiv.org/abs/2206.04670)- **Converted from:** [guochengqian/PointNeXt](https://github.com/guochengqian/PointNeXt) (MIT)- **Library:** [torch-pointcloud](https://github.com/arthurdjn/pytorch-pointcloud)
## Install
```bashpip install torch-pointcloud```
## Usage
```pythonimport torchimport torch_pointcloud as tpfrom torch_pointcloud.utils.data import collate
model, info = tp.create_model( "pointnext-sm-c64.modelnet40.openpoints", task="classification", pretrained=True, return_info=True,)model = model.eval()
# synthetic sample with the keys a dataset providesnum_points = 8192sample = { "pos": torch.randn(num_points, 3), "normal": torch.randn(num_points, 3),}data = info["transform"](sample)data = collate([data])
with torch.no_grad(): logits = model(data.get("x"), data["pos"], data["batch"])```
## Feature extraction
```pythonwith torch.no_grad(): embeddings = model.forward_features(data.get("x"), data["pos"], data["batch"])
model.reset_classifier(num_classes=0)with torch.no_grad(): embeddings = model(data.get("x"), data["pos"], data["batch"]) # (B, 1024)```
## Citation
```bibtex@inproceedings{qian2022pointnext, title = {PointNeXt: Revisiting PointNet++ with Improved Training and Scaling Strategies}, author = {Guocheng Qian and Yuchen Li and Houwen Peng and Jinjie Mai and Hasan Abed Al Kader Hammoud and Mohamed Elhoseiny and Bernard Ghanem}, booktitle = {NeurIPS}, year = {2022}}```
```bibtex@inproceedings{wu2015modelnet, title = {3D ShapeNets: A Deep Representation for Volumetric Shapes}, author = {Zhirong Wu and Shuran Song and Aditya Khosla and Fisher Yu and Linguang Zhang and Xiaoou Tang and Jianxiong Xiao}, booktitle = {CVPR}, year = {2015}}```123version https://git-lfs.github.com/spec/v1oid sha256:9379baa767b7120e55fe8a7b35228f15a57c1c8a5b392dd951bfbec41a328c7bsize 18172424README.mdAdded+108
model.safetensorsAdded+3