Coder Social home page Coder Social logo

coma's Introduction

CoMA: Convolutional Mesh Autoencoders

Generating 3D Faces using Convolutional Mesh Autoencoders

This is an official repository of Generating 3D Faces using Convolutional Mesh Autoencoders

[Project Page][Arxiv]

Requirements

This code is tested on Tensorflow 1.3. Requirements (including tensorflow) can be installed using:

pip install -r requirements.txt

Install mesh processing libraries from MPI-IS/mesh.

Data

Download the data from the Project Page.

Preprocess the data

python processData.py --data <PATH_OF_RAW_DATA> --save_path <PATH_TO_SAVE_PROCESSED DATA>

Data pre-processing creates numpy files for the interpolation experiment and extrapolation experiment (Section X of the paper). This creates 13 different train and test files. sliced_[train|test] is for the interpolation experiment. <EXPRESSION>_[train|test] are for cross validation cross 12 different expression sequences.

Training

To train, specify a name, and choose a particular train test split. For example,

python main.py --data data/sliced --name sliced

Testing

To test, specify a name, and data. For example,

python main.py --data data/sliced --name sliced --mode test

Reproducing results in the paper

Run the following script. The models are slightly better (~1% on average) than ones reported in the paper.

sh generateErrors.sh

Sampling

To sample faces from the latent space, specify a model and data. For example,

python main.py --data data/sliced --name sliced --mode latent

A face template pops up. You can then use the keys qwertyui to sample faces by moving forward in each of the 8 latent dimensions. Use asdfghjk to move backward in the latent space.

For more flexible usage, refer to lib/visualize_latent_space.py.

Acknowledgements

We thank Raffi Enficiaud and Ahmed Osman for pushing the release of psbody.mesh, an essential dependency for this project.

License

The code contained in this repository is under MIT License and is free for commercial and non-commercial purposes. The dependencies, in particular, MPI-IS/mesh and our data have their own license terms which can be found on their respective webpages. The dependencies and data are NOT covered by MIT License associated with this repository.

When using this code, please cite

Anurag Ranjan, Timo Bolkart, Soubhik Sanyal, and Michael J. Black. "Generating 3D faces using Convolutional Mesh Autoencoders." European Conference on Computer Vision (ECCV) 2018.

coma's People

Contributors

anuragranj avatar timobolkart avatar

Watchers

 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.