Coder Social home page Coder Social logo

capnet's Introduction

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}
}

capnet's People

Contributors

klnavaneet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

nnu-gisa zcoo arko98

capnet's Issues

how to get the 4.42 chamfer loss as stated in the paper

Hi, I have run the code using the default parameters( epoch to 100, batch size = 1, n_view=4) and run the metrics.py to calculate the chamfer loss. But I only can get chamfer loss x100= 5.8
How to get chamfer lossx100=4.42 as stated in the paper?
Thank you very much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.