Giter VIP home page Giter VIP logo

pixel2mesh-pytorch's Introduction

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:

pixel2mesh-pytorch's People

Contributors

tong-zhao avatar oscarclivio avatar

Watchers

James Cloos 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.