All Projects → Tong-ZHAO → Pixel2Mesh-Pytorch

Tong-ZHAO / Pixel2Mesh-Pytorch

Licence: other
Final project for RecVis 18

Programming Languages

python
139335 projects - #7 most used programming language
Cuda
1817 projects
C++
36643 projects - #6 most used programming language

Pixel2Mesh-Pytorch

This repository aims to implement the ECCV 2018 paper: Pixel2Mesh: Generating 3D Mesh Models from Single RGB Images in PyTorch. The official code in Tensorflow is available online. Based on the proposed structure, we replaced the VGG model by a U-Net based autoencoder to reconstruct the image, which helps the net to converge faster.

Requirements

  • PyTorch 1.0 (Enable Sparse Tensor)
  • >= Python 3
  • >= Cuda 9.2 (Enable Chamfer Distance)
  • Visdom (Enable Data Visualization)

External Codes

  • pygcn: Base code of GraphConvolution
  • atlasnet: Chamfer Distance

Getting Started

Installation

cd ./model/chamfer/
python setup.py install

Dataset

We use the same dataset as the one used in Pixel2Mesh. The point clouds are from ShapeNet and the rendered views are from 3D-R2N2.

The whole dataset can be downloaded Here.

Please respect the ShapeNet license while using.

Train

python train.py

The hyper-parameters can be changed from command. To get more help, please use

python train.py -h

Validation

To evaluate the model on one example, please use the following command

python evaluate.py --dataPath *** --modelPath ***

Some Examples

Due to the device limit, we trained our model on the airplane class instead of the whole dataset. A trained model is provided Here

Some test examples are shown as below:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].