Avidereta / 3d-MNIST-classification-PointNet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3D MNIST Classification Using PointNet, 2D-CNN, 3D-CNN, and some other ML methods

Introduction

In this work I used Pointnet, 2D-CNN, 3D-CNN, and some other ML methods to classify 3d-mnist point clouds. You can find the dataset here.

Point cloud is an important type of geometric data structure. Due to its irregular format, most researchers transform such data to regular 3D voxel grids or collections of images. You can use 3D-CNN_classifier.ipynb for applying 3D-CNN on 3D-voxel grids.

This, however, renders data unnecessarily voluminous and causes issues. In pointnet paper, they design a novel type of neural network that directly consumes point clouds, which well respects the permutation invariance of points in the input. Their network, named PointNet, provides a unified architecture for applications ranging from object classification, part segmentation, to scene semantic parsing. Though simple, PointNet is highly efficient and effective.

In this repository, we used the code they published in their github and did some changes to use it in our work and 3d mnist data for training a PointNet classification network on point clouds.

You can use vis_data.py file to visualize point cloud data. I used plotly library for this.

Installation

Install TensorFlow. I used python 3.5 with TensorFlow 1.5. You may also need to install h5py.

To install h5py for Python:

sudo apt-get install libhdf5-dev
sudo pip install h5py

Usage

To train a pointnet model to classify point clouds sampled from 3D shapes use main_pointnet_3dmnist.ipynb file. Put the 3d mnist data to data folder.

You can also use other .ipynb's to use 2D-CNN, 3D-CNN, and some other ML methods for point cloud classification.

Selected Projects that Use PointNet

About

License:Other


Languages

Language:HTML 83.1%Language:Jupyter Notebook 14.4%Language:Python 2.5%