Code Monkey home page Code Monkey logo

san's Introduction

The Source Codes will come soon before 1st June.

Style Aggregated Network for Facial Landmark Detection

We provide the training and testing codes for SAN, implemented in PyTorch.

Preparation

Dependencies

Datasets download

  • Download 300W-Style and AFLW-Style from Google Drive, and extract the downloaded files into ~/datasets/.
  • In 300W-Style and AFLW-Style directories, the Original sub-directory contains the original images from 300-W and AFLW

Figure 1. Our 300W-Style and AFLW-Style datasets. There are four styles, original, sketch, light, and gray.

Generate lists for training and evaluation

cd cache_data
python aflw_from_mat.py
python generate_300W.py

The generated list file will be saved into ./cache_data/lists/300W and ./cache_data/lists/AFLW.

Prepare images for the style-aggregated face generation module

python crop_pic.py

The above commands are used to pre-crop the face images.

Training and Evaluation

300-W

  • Step-1 : cluster images into different groups, for example sh scripts/300W/300W_Cluster.sh 0,1 GTB 3.
  • Step-2 : use sh scripts/300W/300W_CYCLE_128.sh 0,1 GTB or sh scripts/300W/300W_CYCLE_128.sh 0,1 DET to train SAN on 300-W.

AFLW

  • Step-1 : cluster images into different groups, for example sh scripts/AFLW/AFLW_Cluster.sh 0,1 GTB 3.
  • Step-2 : use sh scripts/AFLW/AFLW_CYCLE_128.FULL.sh or sh scripts/AFLW/AFLW_CYCLE_128.FRONT.sh to train SAN on AFLW.

Citation

Please cite the following paper in your publications if it helps your research:

@inproceedings{dong2018san,
   title={Style Aggregated Network for Facial Landmark Detection},
   author={Dong, Xuanyi and Yan, Yan and Ouyang, Wanli and Yi, Yang},
   booktitle={Computer Vision and Pattern Recognition},
   year={2018},
}

Contact

To ask questions or report issues, please open an issue on the issues tracker.

san's People

Contributors

d-x-y avatar

Watchers

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