1 Star 0 Fork 0

v-wewei/Pointnet_Pointnet2_pytorch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Pytorch Implementation of PointNet and PointNet++

This repo is implementation for PointNet and PointNet++ in pytorch.

Data Preparation

  • Download ModelNet here for classification and ShapeNet here for part segmentation. Uncompress the downloaded data in this directory. ./data/ModelNet and ./data/ShapeNet.
  • Run download_data.sh and download prepared S3DIS dataset for sematic segmantation and save it in ./data/indoor3d_sem_seg_hdf5_data/

Classification

PointNet

  • python train_clf.py --model_name pointnet

PointNet++

  • python train_clf.py --model_name pointnet2

Performance

Model Accuracy
PointNet (Official) 89.2
PointNet (Pytorch) 89.4
PointNet++ (Official) 91.9
PointNet++ (Pytorch) 91.8
  • Training Pointnet with 0.001 learning rate in SGD, 24 batchsize and 141 epochs.
  • Training Pointnet++ with 0.001 learning rate in SGD, 12 batchsize and 45 epochs.

Part Segmentation

PointNet

  • python train_partseg.py --model_name pointnet

PointNet++

  • python train_partseg.py --model_name pointnet2

Performance

Model Inctance avg Class avg aero bag cap car chair ear phone guitar knife lamp laptop motor mug pistol rocket skate board table
PointNet (Official) 83.7 80.4 83.4 78.7 82.5 74.9 89.6 73 91.5 85.9 80.8 95.3 65.2 93 81.2 57.9 72.8 80.6
PointNet (Pytorch) 82.4 78.4 81.1 77.8 83.7 74.3 83.3 65.7 90.5 85.1 78.1 94.5 63.7 91.7 80.5 56.2 73.7 67.5
PointNet++ (Official) 85.1 81.9 82.4 79 87.7 77.3 90.8 71.8 91 85.9 83.7 95.3 71.6 94.1 81.3 58.7 76.4 82.6
PointNet++ (Pytorch) 84.1 81.6 82.6 85.7 89.3 78.1 86.8 68.9 91.6 88.9 83.9 96.8 70.1 95.7 82.8 59.8 76.3 71.1
  • Training both Pointnet and Pointnet++ with 0.001 learning rate in Adam, 16 batchsize, about 130 epochs and 0.5 learning rate decay every 20/30 epochs.
  • Class avg is the mean IoU averaged across all object categories, and inctance avg is the mean IoU across all objects.
  • In official version PointNet, author use 2048 point cloud in training and 3000 point cloud with norm in testing. In official version PointNet++, author use 2048 point cloud with its norm (Bx2048x6) in both training and testing.

Semantic Segmentation

PointNet

  • python train_semseg.py --model_name pointnet

PointNet++

  • python train_semseg.py --model_name pointnet2

Performance (test on Area_5)

Model Mean IOU ceiling floor wall beam column window door chair tabel bookcase sofa board clutter
PointNet (Official) 41.09 88.8 97.33 69.8 0.05 3.92 46.26 10.76 52.61 58.93 40.28 5.85 26.38 33.22
PointNet (Pytorch) 44.43 91.1 96.8 72.1 5.82 14.7 36.03 37.1 49.36 50.17 35.99 14.26 33.9 40.23
PointNet++ (Official) N/A
PointNet++ (Pytorch) 52.28 91.7 95.9 74.6 0.1 18.9 43.3 31.1 73.1 65.8 51.1 27.5 43.8 53.8
  • Training Pointnet with 0.001 learning rate in Adam, 24 batchsize and 84 epochs.
  • Training Pointnet++ with 0.001 learning rate in Adam, 12 batchsize and 67 epochs.

Visualization

Using show3d_balls.py

cd visualizer
bash build.sh #build C++ code for visualization

Using pc_utils.py

TODO

  • PointNet and PointNet++
  • Experiment
  • Visualization Tool

Reference By

halimacc/pointnet3
fxia22/pointnet.pytorch

Links

Official PointNet and Official PointNet++

MIT License Copyright (c) 2019 benny Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

PointNet and PointNet++ implemented by pytorch (no tf_opt) and test on ModelNet, ShapeNet and S3DIS. 展开 收起
README
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/v-wewei/Pointnet_Pointnet2_pytorch.git
git@gitee.com:v-wewei/Pointnet_Pointnet2_pytorch.git
v-wewei
Pointnet_Pointnet2_pytorch
Pointnet_Pointnet2_pytorch
master

搜索帮助