pytorch 三维点分类_Pointnet-pytorch-learning

该仓库提供了PointNet和PointNet++在PyTorch中的实现,包括分类和分割任务。更新内容包括修复错误、添加数据增强、组织模型文件、添加测试代码以及性能表现。
摘要由CSDN通过智能技术生成

Pytorch Implementation of PointNet and PointNet++

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

Update

2019/11/26:

(1) Fixed some errors in previous codes and added data augmentation tricks. Now classification by only 1024 points can achieve 92.8%!

(2) Added testing codes, including classification and segmentation, and semantic segmentation with visualization.

(3) Organized all models into ./models files for easy using.

Classification

Data Preparation

Download alignment ModelNet here and save in data/modelnet40_normal_resampled/.

Run

## Check model in ./models

## E.g. pointnet2_msg

python train_cls.py --model pointnet2_cls_msg --normal --log_dir pointnet2_cls_msg

python test_cls.py --normal --log_dir pointnet2_cls_msg

Performance

Model

Accuracy

PointNet (Official)

89.2

PointNet2 (Official)

91.9

PointNet (Pytorch without normal)

90.6

PointNet (Pytorch with normal)

91.4

PointNet2_SSG (Pytorch without normal)

92.2

PointNet2_SSG (Pytorch with normal)

92.4

PointNet2_MSG (Pytorch with normal)

92.8

Part Segmentation

Data Preparation

Download alignment ShapeNet here and save in data/shapenetcore_partanno_segmentation_benchmark_v0_normal/.

Run

## Check model in ./models

## E.g. pointnet2_msg

python train_partseg.py --model pointnet2_part_seg_msg --normal --log_dir pointnet2_part_seg_msg

python test_partseg.py --normal --log_dir pointnet2_part_seg_msg

Performance

Model

Inctance avg IoU

Class avg IoU

PointNet (Official)

83.7

80.4

PointNet2 (Official)

85.1

81.9

PointNet (Pytorch)

84.3

81.1

PointNet2_SSG (Pytorch)

84.9

81.8

PointNet2_MSG (Pytorch)

85.4

82.5

Semantic Segmentation

Data Preparation

Download 3D indoor parsing dataset (S3DIS) here and save in data/Stanford3dDataset_v1.2_Aligned_Version/.

cd data_utils

python collect_indoor3d_data.py

Processed data will save in data/stanford_indoor3d/.

Run

## Check model in ./models

## E.g. pointnet2_ssg

python train_semseg.py --model pointnet2_sem_seg --test_area 5 --log_dir pointnet2_sem_seg

python test_semseg.py --log_dir pointnet2_sem_seg --test_area 5 --visual

Visualization results will save in log/sem_seg/pointnet2_sem_seg/visual/ and you can visualize these .obj file by MeshLab.

Performance on sub-points of raw dataset (processed by official PointNet Link)

Model

Class avg IoU

PointNet (Official)

41.1

PointNet (Pytorch)

48.9

PointNet2 (Official)

N/A

PointNet2_ssg (Pytorch)

53.2

Performance on raw dataset

still on testing...

Visualization

Using show3d_balls.py

## build C++ code for visualization

cd visualizer

bash build.sh

## run one example

python show3d_balls.py

Using MeshLab

Reference By

Environments

Ubuntu 16.04

Python 3.6.7

Pytorch 1.1.0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值