Skip to content

Code release for "CAPNet: Continuous Approximation Projection For 3D Point Cloud Reconstruction Using 2D Supervision", (AAAI-19)

Notifications You must be signed in to change notification settings

val-iisc/capnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAPNet

Source codes for the paper CAPNet: Continuous Approximation Projection For 3D Point Cloud Reconstruction Using 2D Supervision.
Accepted at Thirty-Third AAAI Conference on Artificial Intelligence (AAAI-19)

Overview

CAPNet proposes a 2D supervised approach for single image based 3D point cloud reconstruction. To obtain smooth projections from the reconstructed point and to enable end-to-end training of the network, we propose a novel differentiable rendering module termed CAPNet. Additionally, for effective backpropogation of gradients and to avoid outliers in our predictions, we introduce a loss term called affinity loss. We experimentally demostrate that through the use of just 2D mask supervision from multiple view points, it is possible to obtain reconstruction performance close to that of 3D supervised approaches.

Dataset

We use the ShapeNet dataset in our experiments. Ground truth point clouds and training and validation splits are provided below:
ShapeNet pointclouds (~2.8 GB): https://drive.google.com/open?id=1cfoe521iTgcB_7-g_98GYAqO553W8Y0g
ShapeNet train/val split: https://drive.google.com/open?id=10FR-2Lbn55POB1y47MJ12euvobi6mgtc
We use the code provided by Tulsiani et al. to obtain the rendered images.

Download each of the folders, extract them and move them into data/. Save the rendered images in data/ShapeNet_rendered/
The folder structure should be as follows:
--data/
  --ShapeNet_rendered/
  --ShapeNet_pcl/
  --splits/

Usage

Install TensorFlow. We recommend installing version 1.3 so that the additional TensorFlow ops can be compiled.
Clone the repository:

git clone https://github.com/val-iisc/capnet.git
cd capnet

Training

To train the model, run

bash run_train.sh

Evaluation

For visualization and metric calculation, run

bash run_metrics.sh

Make sure that the trained model exists before running the metric calculation code. Use the option --visualize in place of --tqdm to visualize the reconstructed 3D point clouds.

TODO

  1. Provide pre-trained models
  2. Add code for test-stage optimization
  3. Add dataset and codes for training and evaluation on Pix3D dataset

Citation

If you make use of the code, please cite the following work:

@inproceedings{kl2019capnet,
 author = {Navaneet, K L and Mandikal, Priyanka and Agarwal, Mayank and Babu, R Venkatesh},
 booktitle = {Thirty-Third AAAI Conference on Artificial Intelligence{(AAAI-19)}},
 title = {{CAPNet}: Continuous Approximation Projection For 3D Point Cloud Reconstruction Using 2D Supervision},
 year = {2019}
}

About

Code release for "CAPNet: Continuous Approximation Projection For 3D Point Cloud Reconstruction Using 2D Supervision", (AAAI-19)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published