Instructions to use torch-pointcloud/pointnet2.modelnet40.openpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- torch-pointcloud
How to use torch-pointcloud/pointnet2.modelnet40.openpoints with torch-pointcloud:
import torch_pointcloud as tp model = tp.create_model("pointnet2.modelnet40.openpoints", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Upload pointnet2.modelnet40.openpoints
Browse filesFiles changed (2)
- README.mdAdded+108
- model.safetensorsAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108---license: mitlibrary_name: torch-pointcloudtags:- point-cloud- 3d- pytorch- torch-pointcloud- pointnet2- classificationdatasets:- modelnet40model-index:- name: pointnet2.modelnet40.openpoints results: - task: type: point-cloud-classification dataset: name: ModelNet40 type: modelnet40 metrics: - name: OA type: accuracy value: 91.9---
# Model card for pointnet2.modelnet40.openpoints
A PointNet++ point cloud classification model (hierarchical set abstraction). Trained on ModelNet40.
## Model Details
- **Model Type:** Point cloud classification- **Model Stats:** - Params (M): 1.5 - Input channels: 3 - Classes: 40 - Features: 1024- **Dataset:** ModelNet40- **Metrics:** OA 91.9 (reference 93.0)- **Paper:** [PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space](https://arxiv.org/abs/1706.02413)- **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( "pointnet2.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{qi2017pointnet2, title = {PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space}, author = {Charles R. Qi and Li Yi and Hao Su and Leonidas J. Guibas}, booktitle = {NeurIPS}, year = {2017}}```
```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:0917e4c40c49e93892ebbafab1a5936258435e49ba648989b5d6b19077abe756size 5938368README.mdAdded+108
model.safetensorsAdded+3