Code Monkey home page Code Monkey logo

fnm's Introduction

Unsupervised Face Normalization with Extreme Pose and Expression in the Wild

This repository contains training code for the paper

Unsupervised Face Normalization with Extreme Pose and Expression in the Wild (The paper will be released soon.)
IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019

The model learns to generate a frontal, neutral expression, photorealistic face image from one face image in the wild.

Contact: Yichen Qian ([email protected]), Weihong Deng ([email protected]), Jiani Hu ([email protected])

Usage

Prerequisites

  • Python 2.7
  • Tensowflow 1.8.0

Prepare Datasets

We used CASIA-Webface for non-normal face set and Multi-PIE for normal face set in the unconstrained experiment. We can not redistribute the original dataset due to copyright. For normal face set, you can use other public-available datasets that has highly-normalled faces.

All face images are detected by MTCNN, and then cropped.

Pretrained models

Train and test

  • Train

After unnormal face images and normal face images are ready, prepare image list respectively. Modify image path and list path and other settings in config.py.

python main.py
  • Test
python test.py --test_path your_test_path --test_list your_test_list --checkpoint_ft pretrained_model_path

Adjust face attention region

If you use other dataset for normal face set, please modify the attention discriminators (WGAN.py) according to the face region.

Notes

  • The identity perception loss (L_ip) is slightly modified. Cosine distance is used other than mean square error.

Citation

If you find FNM useful in your research, please consider citing:

@inproceedings{FNM,
  author = {Qian, Yichen and Deng, Weihong and Hu, Jiani},
  booktitle = {IEEE Conference on Computer Vision and Pattern Recognition},
  title = {Unsupervised Face Normalization with Extreme Pose and Expression in the Wild},
  year = {2019}
}

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.