Giter VIP home page Giter VIP logo

deep-smile-warp's Introduction

DeepWarp for Facial Expression Manipulation

Warning: the repo is under construction so the code may not be runnable out of the box!

This is a repository containing torch7 code implementing DeepWarp. Be sure to check out the online demo. Due to licensing restrictions I'm not able to release the original gaze manipulation code and corresponding dataset, but the model presented here is very similar and you are free to use it as a reference point.

Showcase

To showcase general applicability of the approach, I'm using an ever so slightly modified network to handle smile addition and removal in the images containg human faces.

Model

The model (shown above) contains three networks:

  • Transformer T. Warps the image given δ which is either +1 (add smile) or -1 (remove smile)
  • Discriminator D. Makes sure that the warped output looks plausible.
  • Attribute branch A. Infers attribute (1 for "smile", -1 for "no smile") value given an image.

The training objective is a weighted sum of two components:

where the first term is called the attribute loss and is a standard GAN cost.

Citation

Please cite the DeepWarp paper in your publications if this repo helps your research:

@inproceedings{ganin2016deepwarp,
  title={DeepWarp: Photorealistic image resynthesis for gaze manipulation},
  author={Ganin, Yaroslav and Kononenko, Daniil and Sungatullina, Diana and Lempitsky, Victor},
  booktitle={European Conference on Computer Vision},
  pages={311--326},
  year={2016},
  organization={Springer}
}

deep-smile-warp's People

Contributors

ddtm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deep-smile-warp's Issues

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.