Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
/ pc2pix Public archive

Keras code of my 2019 CVPR Workshop paper "A Conditional Generative Adversarial Network for Rendering Point Clouds"

License

Notifications You must be signed in to change notification settings

roatienza/pc2pix

Repository files navigation

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

About

Keras code of my 2019 CVPR Workshop paper "A Conditional Generative Adversarial Network for Rendering Point Clouds"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages