11<img src =" ./pointnet.jpg " width =" 1200px " ></img >
22
3+ [ ![ PyPI version] ( https://badge.fury.io/py/pointnet.svg )] ( https://badge.fury.io/py/pointnet )
4+ [ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
5+
36# pointnet
47
5- A pytorch implementation of PointNet
8+ A pytorch implementation of PointNet and PointNet++.
69
710## Installation
811
@@ -18,6 +21,7 @@ pip install pointnet -i https://pypi.org/simple
1821
1922## Usage
2023
24+ ### PointNet
2125Perform classification with inputs xyz coordinates:
2226
2327``` python
@@ -44,6 +48,36 @@ x = torch.cat([xyz, other_feats], dim=1)
4448logits = model(x)
4549```
4650
51+ Perform semantic segmentation:
52+
53+ ``` python
54+ import torch
55+ from pointnet import PointNetSeg
56+
57+ model = PointNetSeg(3 , 40 )
58+ x = torch.randn(16 , 3 , 1024 )
59+ logits = model(x)
60+ ```
61+
62+ ### PointNet2
63+ PointNet2 uses [ taichi] ( https://github.com/taichi-dev/taichi ) to accelerate the computation of ball query. You need to
64+ initialize taichi before using PointNet2.
65+
66+ Perform classification with inputs xyz coordinates:
67+
68+ ``` python
69+ import torch
70+ from pointnet import PointNet2SSGCls
71+
72+ import taichi as ti
73+ ti.init(arch = ti.cuda)
74+
75+ model = PointNet2SSGCls(in_dim = 3 , out_dim = 40 ).cuda()
76+ x = torch.randn(16 , 3 , 1024 ).cuda()
77+ logits = model(x)
78+ ```
79+
80+
4781
4882## Performance
4983Classification accuracy on ModelNet40 dataset (2048 points, see [ modelnet40_experiments] (
@@ -71,3 +105,13 @@ https://github.com/kentechx/modelnet40_experiments) for details):
71105 year={2017}
72106}
73107```
108+
109+ ``` bibtex
110+ @article{qi2017pointnet++,
111+ title={Pointnet++: Deep hierarchical feature learning on point sets in a metric space},
112+ author={Qi, Charles Ruizhongtai and Yi, Li and Su, Hao and Guibas, Leonidas J},
113+ journal={Advances in neural information processing systems},
114+ volume={30},
115+ year={2017}
116+ }
117+ ```
0 commit comments