Instructions to use torch-pointcloud/point-bert-base.scanobjectnn-objonly.xumin-yu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- torch-pointcloud
How to use torch-pointcloud/point-bert-base.scanobjectnn-objonly.xumin-yu with torch-pointcloud:
import torch_pointcloud as tp model = tp.create_model("point-bert-base.scanobjectnn-objonly.xumin-yu", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Upload point-bert-base.scanobjectnn-objonly.xumin-yu
Browse filesFiles changed (2)
- README.mdAdded+107
- model.safetensorsAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107---license: mitlibrary_name: torch-pointcloudtags:- point-cloud- 3d- pytorch- torch-pointcloud- point-bert- classificationdatasets:- scanobjectnnbase_model: torch-pointcloud/point-bert-base.pretrain.xumin-yumodel-index:- name: point-bert-base.scanobjectnn-objonly.xumin-yu results: - task: type: point-cloud-classification dataset: name: ScanObjectNN (OBJ_ONLY) type: scanobjectnn metrics: - name: OA type: accuracy value: 88.12---
# Model card for point-bert-base.scanobjectnn-objonly.xumin-yu
A Point-BERT point cloud classification model (masked point modeling transformer). Trained on ScanObjectNN (OBJ_ONLY).
## Model Details
- **Model Type:** Point cloud classification- **Model Stats:** - Params (M): 22.1 - Classes: 40 - Features: 768- **Dataset:** ScanObjectNN (OBJ_ONLY)- **Metrics:** OA 88.12 (reference 88.12)- **Paper:** [Point-BERT: Pre-training 3D Point Cloud Transformers with Masked Point Modeling](https://arxiv.org/abs/2111.14819)- **Converted from:** [Julie-tang00/Point-BERT](https://github.com/Julie-tang00/Point-BERT) (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( "point-bert-base.scanobjectnn-objonly.xumin-yu", 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),}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, 768)```
## Citation
```bibtex@inproceedings{yu2022pointbert, title = {Point-BERT: Pre-training 3D Point Cloud Transformers with Masked Point Modeling}, author = {Xumin Yu and Lulu Tang and Yongming Rao and Tiejun Huang and Jie Zhou and Jiwen Lu}, booktitle = {CVPR}, year = {2022}}```
```bibtex@inproceedings{uy2019scanobjectnn, title = {Revisiting Point Cloud Classification: A New Benchmark Dataset and Classification Model on Real-World Data}, author = {Mikaela Angelina Uy and Quang-Hieu Pham and Binh-Son Hua and Duc Thanh Nguyen and Sai-Kit Yeung}, booktitle = {ICCV}, year = {2019}}```123version https://git-lfs.github.com/spec/v1oid sha256:f344da098a8d25c7ce21cf4588525adc0b8e86aa2c245342342b1c4e8a795c4fsize 88285608README.mdAdded+107
model.safetensorsAdded+3