Giter VIP home page Giter VIP logo

pc2pix's Introduction

pc2pix

A Conditional Generative Adversarial Network for Rendering Point Clouds to be presented at 2019 CVPR Workshop.

pc2pix code implementation in Keras(2.2.3) and Tensorflow (1.11). Surface reconstruction requires Blender and Meshlab.

Environment tested: Ubunutu Linux 16.04LTS, GPUs tested: 1060, 1080Ti and V100

Demo

pc2pix

Network architecture

Network

Single class (chair) rendering

Chair render

Multi-class rendering

All render

Latent interpolation

Latent interpolation Sofa to Chair

Elevation and Azimuth

Elevation and Azimuth

Latent code arithmetic

Dataset

  • Datasets (ShapeNet point cloud and rendered images) can be downloaded here (1G + 28G):

$ cd data

$ tar xzvf shape_net_core_uniform_samples_2048.tgz

$ tar xzvf shapenet_release.tgz $ cd ..

Testing

Pre-compiled latent codes (to speed up point cloud encoder prediction) Note: Needed only if pc2pix will be trained

$ tar jxvf pc_codes.tar.bz2

$ tar jxvf model_weights.tar.bz2

  • Evaluation code can be found in evaluation folder. All rendered images will be at evaluation/data

$ cd evaluation

  1. For simplicity, assume chair dataset is used:

  2. To perform surface surface reconstrucion from point clouds:

$ python3 surface_reconstruction.py

  1. To render the surface reconstructed objects:

$ python3 render_reconstruction.py

  1. To render point cloud using pc2pix:

$ python3 render_by_pc2pix.py --ptcloud_ae_weights=../model_weights/ptcloud/chair-pt-cloud-stacked-ae-chamfer-5-ae-weights-32.h5 --generator=../model_weights/pc2pix/chair-gen-color.h5 --discriminator=../model_weights/pc2pix/chair-dis-color.h5 -c --category="chair"

  1. To calculate FID scores:

$ python3 get_fid.py

  1. To calculate SSIM components:

$ python3 get_ssim_components.py

  1. To get class similarity:

$ python3 get_class_confidence.py $ cd ..

Citation

If you find this work useful, please cite:

@InProceedings{Atienza_2019_CVPR_Workshops,
author = {Atienza, Rowel},
title = {A Conditional Generative Adversarial Network for Rendering Point Clouds},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops},
month = {June},
year = {2019}
}

pc2pix's People

Contributors

roatienza avatar

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.