Git Product home page Git Product logo

pyhowfar's Introduction

Pytorch version of ‘How far are we from solving the 2D \& 3D Face Alignment problem? (and a dataset of 230,000 3D facial landmarks)’

For official torch7 version please refer to face-alignment-training

This is a reinplement of training code for 2D-FAN and 3D-FAN decribed in “How far” paper. Please visit author’s webpage or arxiv for technical details.

Thanks for bearpaw’s excellent work on human pose estimation pytorch-pose . And in this project, I reused a branch of helper function from pytorch-pose.

Pretrained models are available soon.

Requirments

  • Install the latest PyTorch, version 0.2.1 is fully supported and there is no further test on older version.

Packages

Setup

  1. Clone the github repository and install all the dependencies mentiones above.
git  clone https://github.com/hzh8311/pyhowfar
cd pyhowfar
  1. Download the 300W-LP dataset from the authors webpage. In order to train on your own data the dataloader.lua file needs to be adapted.
  2. Download the 300W-LP annotations converted to t7 format by paper author from here, extract it and move the “`landmarks“` folder to the root of the 300W-LP dataset.

Usage

In order to run the demo please download the required models available bellow and the associated data.

python main.py

In order to see all the available options please run:

python main.py --help

What’s different?

  • Pythoner friendly and there is no need for `.t7` format annotations
  • Add 300-W-LP test set for validation.
  • Followed the excatly same training procedure described in the paper (except binary network part).
  • Add model evaluation in terms of **Mean error**, **[email protected]**
  • TODO: add evaluation on test sets (300W, 300VW, AFLW2000-3D etc.).

Citation

@inproceedings{bulat2017far,
  title={How far are we from solving the 2D \& 3D Face Alignment problem? (and a dataset of 230,000 3D facial landmarks)},
  author={Bulat, Adrian and Tzimiropoulos, Georgios},
  booktitle={International Conference on Computer Vision},
  year={2017}
}

pyhowfar's People

Contributors

1adrianb avatar hzh8311 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.