Giter Site home page Giter Site logo

facial-expression-generation's Introduction

Facial Expression Generation

Introdution

To synthesize images with different emotions for certain person by multi-domain image-to-image emotion transfer on FER2013 dataset, and even emotion transfer from real human to virtual character on FER2013 and FERG-DB datasets.

Our contribution can be listed as followings:

  • Perceptual loss in D
  • Skip (residual) connection in G
  • Some GAN tricks (Dropout + LReLu in G)

Implementation details and qualitative results please refer to our report.

Getting Started

  1. Download FER2013 and FERG-DB datasets

  2. Use python convert_fer2013.py to convert csv file to images with certain folder structure, and FERG-DB also need to create the folder structure as fer2013 one.

  3. Train our modified StarGAN

bash run_train.sh
bash run_train_both.sh
  1. Test our modified StarGAN
bash run_test.sh
bash run_test_both.sh
  1. Facial expression recognition evaluation on generated images from FER2013 test dataset by training ResNet18 classifier on FER2013 training set.
cd eval_code
python run_eval_train.sh
python run_eval_test.sh

References

[1] PyTorch-StarGAN

[2] Tips and tricks to make GANs work

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.