Git Product home page Git Product logo

deep-3dmm-refinement's Introduction

Deep 3D morphable model refinement via progressive growing of conditional Generative Adversarial Networks

This page contains end-to-end demo code to recover accurate and detailed reconstructions of the facial shape from an unconstrained 2D face image. For a given input image, it fits a 3D Morphable Face Model [2] to the face image and then uses a CGAN to refine the reconstruction by adding local fine-grained details. The code outputs a standard obj file (without texture). The full approach is described in our paper [1].

Library Requirements

  • cmake
  • dlib
  • face-alignment
  • opencv-python
  • scipy==1.1.0
  • scikit-image
  • tensorflow

Dependencies can be installed by running pip install -r requirements.txt

Data Requirements

Use the following link to download the 3DMM data and the CGAN weights.

The data3dmm folder and the .pb file must be placed in the root folder.

Usage

The script can be run with the following: python main.py < --im_path imgname > < --use_camera >

If --im_path is not specified, the default image is used. Test images must be placed into testdata folder.

If a webcam is available, --use_camera can be used to capture a live frame.

Citation

If you find this work useful, please cite

@article{galteri2019deep,
  title={Deep 3D morphable model refinement via progressive growing of conditional Generative Adversarial Networks},
  author={Galteri, Leonardo and Ferrari, Claudio and Lisanti, Giuseppe and Berretti, Stefano and Del Bimbo, Alberto},
  journal={Computer Vision and Image Understanding},
  volume={185},
  pages={31--42},
  year={2019},
  publisher={Elsevier}
}

References

[1] Galteri, Leonardo; Ferrari, Claudio, et al. "Deep 3D morphable model refinement via progressive growing of conditional Generative Adversarial Networks." Computer Vision and Image Understanding 185 (2019): 31-42.

[2] Ferrari, Claudio, et al. "A dictionary learning-based 3D morphable shape model." IEEE Transactions on Multimedia 19.12 (2017): 2666-2679.

Contacts

For any further question, please write to [email protected] or [email protected]

deep-3dmm-refinement's People

Contributors

clferrari 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.