All Projects → AnTao97 → Dgcnn.pytorch

AnTao97 / Dgcnn.pytorch

Licence: mit
A PyTorch implementation of Dynamic Graph CNN for Learning on Point Clouds (DGCNN)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Dgcnn.pytorch

Point2Sequence
Point2Sequence: Learning the Shape Representation of 3D Point Clouds with an Attention-based Sequence to Sequence Network
Stars: ✭ 34 (-77.78%)
Mutual labels:  point-cloud, classification, segmentation
Pointclouddatasets
3D point cloud datasets in HDF5 format, containing uniformly sampled 2048 points per shape.
Stars: ✭ 80 (-47.71%)
Mutual labels:  classification, point-cloud, segmentation
Pointcnn
PointCNN: Convolution On X-Transformed Points (NeurIPS 2018)
Stars: ✭ 1,120 (+632.03%)
Mutual labels:  classification, point-cloud, segmentation
Pointasnl
PointASNL: Robust Point Clouds Processing using Nonlocal Neural Networks with Adaptive Sampling (CVPR 2020)
Stars: ✭ 159 (+3.92%)
Mutual labels:  classification, point-cloud, segmentation
Pointnet Keras
Keras implementation for Pointnet
Stars: ✭ 110 (-28.1%)
Mutual labels:  classification, point-cloud, segmentation
Pointnet2
PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space
Stars: ✭ 2,197 (+1335.95%)
Mutual labels:  classification, point-cloud, segmentation
Grid Gcn
Grid-GCN for Fast and Scalable Point Cloud Learning
Stars: ✭ 143 (-6.54%)
Mutual labels:  classification, point-cloud, segmentation
3d Pointcloud
Papers and Datasets about Point Cloud.
Stars: ✭ 179 (+16.99%)
Mutual labels:  classification, point-cloud, segmentation
Pointnet
PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation
Stars: ✭ 3,517 (+2198.69%)
Mutual labels:  classification, point-cloud, segmentation
Gd Uap
Generalized Data-free Universal Adversarial Perturbations
Stars: ✭ 50 (-67.32%)
Mutual labels:  classification, segmentation
Torch Points3d
Pytorch framework for doing deep learning on point clouds.
Stars: ✭ 1,135 (+641.83%)
Mutual labels:  point-cloud, segmentation
Sunets
PyTorch Implementation of Stacked U-Nets (SUNets)
Stars: ✭ 149 (-2.61%)
Mutual labels:  classification, segmentation
Depth clustering
🚕 Fast and robust clustering of point clouds generated with a Velodyne sensor.
Stars: ✭ 657 (+329.41%)
Mutual labels:  point-cloud, segmentation
Dlcv for beginners
《深度学习与计算机视觉》配套代码
Stars: ✭ 1,244 (+713.07%)
Mutual labels:  classification, segmentation
Caffe Model
Caffe models (including classification, detection and segmentation) and deploy files for famouse networks
Stars: ✭ 1,258 (+722.22%)
Mutual labels:  classification, segmentation
Dataset
Crop/Weed Field Image Dataset
Stars: ✭ 98 (-35.95%)
Mutual labels:  classification, segmentation
All About The Gan
All About the GANs(Generative Adversarial Networks) - Summarized lists for GAN
Stars: ✭ 630 (+311.76%)
Mutual labels:  classification, segmentation
Cilantro
A lean C++ library for working with point cloud data
Stars: ✭ 577 (+277.12%)
Mutual labels:  point-cloud, segmentation
Gacnet
Pytorch implementation of 'Graph Attention Convolution for Point Cloud Segmentation'
Stars: ✭ 103 (-32.68%)
Mutual labels:  point-cloud, segmentation
Edafa
Test Time Augmentation (TTA) wrapper for computer vision tasks: segmentation, classification, super-resolution, ... etc.
Stars: ✭ 107 (-30.07%)
Mutual labels:  classification, segmentation

DGCNN.pytorch

[中文版]

This repo is a PyTorch implementation for Dynamic Graph CNN for Learning on Point Clouds (DGCNN)(https://arxiv.xilesou.top/pdf/1801.07829). Our code skeleton is borrowed from WangYueFt/dgcnn.

Note that the network structure (Fig. 3) for classification in DGCNN paper is not consistent with the corresponding description in section 4.1 of the paper. The author of DGCNN adopts the setting of classification network in section 4.1, not Fig. 3. We fixed this mistake in Fig. 3 using PS and present the revised figure below.

 

 

Tip: The result of point cloud experiment usually faces greater randomness than 2D image. We suggest you run your experiment more than one time and select the best result.

 

Requirements

  • Python 3.7
  • PyTorch 1.2
  • CUDA 10.0
  • Package: glob, h5py, sklearn

 

Contents

 

Point Cloud Classification

Run the training script:

  • 1024 points
python main_cls.py --exp_name=cls_1024 --num_points=1024 --k=20 
  • 2048 points
python main_cls.py --exp_name=cls_2048 --num_points=2048 --k=40 

Run the evaluation script after training finished:

  • 1024 points
python main_cls.py --exp_name=cls_1024_eval --num_points=1024 --k=20 --eval=True --model_path=checkpoints/cls_1024/models/model.t7
  • 2048 points
python main_cls.py --exp_name=cls_2048_eval --num_points=2048 --k=40 --eval=True --model_path=checkpoints/cls_2048/models/model.t7

Run the evaluation script with pretrained models:

  • 1024 points
python main_cls.py --exp_name=cls_1024_eval --num_points=1024 --k=20 --eval=True --model_path=pretrained/model.cls.1024.t7
  • 2048 points
python main_cls.py --exp_name=cls_2048_eval --num_points=2048 --k=40 --eval=True --model_path=pretrained/model.cls.2048.t7

Performance:

ModelNet40 dataset

Mean Class Acc Overall Acc
Paper (1024 points) 90.2 92.9
This repo (1024 points) 90.9 93.3
Paper (2048 points) 90.7 93.5
This repo (2048 points) 91.2 93.6

 

Point Cloud Part Segmentation

Run the training script:

  • Full dataset
python main_partseg.py --exp_name=partseg 
  • With class choice, for example airplane
python main_partseg.py --exp_name=partseg_airplane --class_choice=airplane

Run the evaluation script after training finished:

  • Full dataset
python main_partseg.py --exp_name=partseg_eval --eval=True --model_path=checkpoints/partseg/models/model.t7
  • With class choice, for example airplane
python main_partseg.py --exp_name=partseg_airplane_eval --class_choice=airplane --eval=True --model_path=checkpoints/partseg_airplane/models/model.t7

Run the evaluation script with pretrained models:

  • Full dataset
python main_partseg.py --exp_name=partseg_eval --eval=True --model_path=pretrained/model.partseg.t7
  • With class choice, for example airplane
python main_partseg.py --exp_name=partseg_airplane_eval --class_choice=airplane --eval=True --model_path=pretrained/model.partseg.airplane.t7

Performance:

ShapeNet part dataset

Mean IoU Airplane Bag Cap Car Chair Earphone Guitar Knife Lamp Laptop Motor Mug Pistol Rocket Skateboard Table
Shapes 2690 76 55 898 3758 69 787 392 1547 451 202 184 283 66 152 5271
Paper 85.2 84.0 83.4 86.7 77.8 90.6 74.7 91.2 87.5 82.8 95.7 66.3 94.9 81.1 63.5 74.5 82.6
This repo 85.2 84.5 80.3 84.7 79.8 91.1 76.8 92.0 87.3 83.8 95.7 69.6 94.3 83.7 51.5 76.1 82.8

 

Point Cloud Semantic Segmentation

The network structure for this task is slightly different with part segmentation, without spatial transform and categorical vector. The MLP in the end is changed into (512, 256, 13) and only one dropout is used after 256.

You have to download Stanford3dDataset_v1.2_Aligned_Version.zip manually from https://goo.gl/forms/4SoGp4KtH1jfRqEj2 and place it under data/

Run the training script:

This task use 6-fold training, such that 6 models are trained leaving 1 of 6 areas as the testing area for each model.

  • Train in area 1-5
python main_semseg.py --exp_name=semseg_6 --test_area=6 

Run the evaluation script after training finished:

  • Evaluate in area 6 after model is trained in area 1-5
python main_semseg.py --exp_name=semseg_eval_6 --test_area=6 --eval=True --model_root=checkpoints/semseg/models/
  • Evaluate in all areas after 6 models are trained
python main_semseg.py --exp_name=semseg_eval --test_area=all --eval=True --model_root=checkpoints/semseg/models/

Run the evaluation script with pretrained models:

  • Evaluate in area 6
python main_semseg.py --exp_name=semseg_eval_6 --test_area=6 --eval=True --model_root=pretrained/semseg/
  • Evaluate in all areas
python main_semseg.py --exp_name=semseg_eval --test_area=all --eval=True --model_root=pretrained/semseg/

Performance:

Stanford Large-Scale 3D Indoor Spaces Dataset (S3DIS) dataset

Mean IoU Overall Acc
Paper 56.1 84.1
This repo 59.2 85.0
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].