All Projects → MarekKowalski → Deepalignmentnetwork

MarekKowalski / Deepalignmentnetwork

Licence: mit
A deep neural network for face alignment

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Deepalignmentnetwork

Deep Learning Python
Intro to Deep Learning, including recurrent, convolution, and feed forward neural networks.
Stars: ✭ 94 (-80.42%)
Mutual labels:  lasagne, theano
Practical rl
A course in reinforcement learning in the wild
Stars: ✭ 4,741 (+887.71%)
Mutual labels:  lasagne, theano
Repo 2016
R, Python and Mathematica Codes in Machine Learning, Deep Learning, Artificial Intelligence, NLP and Geolocation
Stars: ✭ 103 (-78.54%)
Mutual labels:  lasagne, theano
Practical dl
DL course co-developed by YSDA, HSE and Skoltech
Stars: ✭ 1,006 (+109.58%)
Mutual labels:  lasagne, theano
2D-and-3D-Deep-Autoencoder
Convolutional AutoEncoder application on MRI images
Stars: ✭ 57 (-88.12%)
Mutual labels:  lasagne, theano
Feel The Kern
Generating proportional fonts with deep learning
Stars: ✭ 59 (-87.71%)
Mutual labels:  lasagne, theano
Alphazero gomoku
An implementation of the AlphaZero algorithm for Gomoku (also called Gobang or Five in a Row)
Stars: ✭ 2,570 (+435.42%)
Mutual labels:  lasagne, theano
Deepo
Setup and customize deep learning environment in seconds.
Stars: ✭ 6,145 (+1180.21%)
Mutual labels:  lasagne, theano
LUVLi
[CVPR 2020] Re-hosting of the LUVLi Face Alignment codebase. Please download the codebase from the original MERL website by agreeing to all terms and conditions. By using this code, you agree to MERL's research-only licensing terms.
Stars: ✭ 24 (-95%)
Mutual labels:  cvpr, face-alignment
rnn benchmarks
RNN benchmarks of pytorch, tensorflow and theano
Stars: ✭ 85 (-82.29%)
Mutual labels:  lasagne, theano
Iris Python
Collection of iris classifcation program for teaching purpose
Stars: ✭ 33 (-93.12%)
Mutual labels:  lasagne, theano
SymJAX
Documentation:
Stars: ✭ 103 (-78.54%)
Mutual labels:  lasagne, theano
Theano Xnor Net
Theano implementation of XNOR-Net
Stars: ✭ 23 (-95.21%)
Mutual labels:  lasagne, theano
Tars
A deep generative model library in Theano and Lasagne
Stars: ✭ 61 (-87.29%)
Mutual labels:  lasagne, theano
Csc deeplearning
3-day dive into deep learning at csc
Stars: ✭ 22 (-95.42%)
Mutual labels:  lasagne, theano
Psgan
Periodic Spatial Generative Adversarial Networks
Stars: ✭ 108 (-77.5%)
Mutual labels:  lasagne, theano
Sca Cnn.cvpr17
Image Captions Generation with Spatial and Channel-wise Attention
Stars: ✭ 198 (-58.75%)
Mutual labels:  cvpr-2017, theano
Cvpr 2017 Abstracts Collection
Collection of CVPR 2017, including titles, links, authors, abstracts and my own comments
Stars: ✭ 186 (-61.25%)
Mutual labels:  cvpr, cvpr-2017
Improved-Wasserstein-GAN-application-on-MRI-images
Improved Wasserstein GAN (WGAN-GP) application on medical (MRI) images
Stars: ✭ 23 (-95.21%)
Mutual labels:  lasagne, theano
Agentnet
Deep Reinforcement Learning library for humans
Stars: ✭ 298 (-37.92%)
Mutual labels:  lasagne, theano

Deep Alignment Network

This is a reference implementation of the face alignment method described in "Deep Alignment Network: A convolutional neural network for robust face alignment" which has been accepted to the First Faces in-the-wild Workshop-Challenge at CVPR 2017. You can read the entire paper on Arxiv here. You can download the presentation and poster from Dropbox here or Google drive here.

Getting started

First of all you need to make sure you have installed Python 2.7. For that purpose we recommend Anaconda, it has all the necessary libraries except:

  • Theano 0.9.0
  • Lasagne 0.2
  • OpenCV 3.1.0 or newer

OpenCV can be downloaded from Christoph Gohlke's website. Theano and Lasagne can be installed with the following commands:

  pip install Theano==0.9.0
  pip install https://github.com/Lasagne/Lasagne/archive/master.zip

Once you have installed Python and the dependencies download at least one of the two pre-trained models available on Dropbox here or Google drive here.

The easiest way to see our method in action is to run the CameraDemo.py script which performs face tracking on a local webcam.

Running the experiments from the article

Before continuing download the model files as described above.

Comparison with state-of-the-art

Download the 300W, LFPW, HELEN, AFW and IBUG datasets from https://ibug.doc.ic.ac.uk/resources/facial-point-annotations/ and extract them to /data/images/ into separate directories: 300W, lfpw, helen, afw and ibug. Run the TestSetPreparation.py script, it may take a while.

Use the DANtesting.py script to perform the experiments. It will calculate the average error for all of the test subsets as well as the [email protected] score and failure rate for the 300W public and private test sets.

The parameters you can set in the script are as follows:

  • verbose: if True the script will display the error for each image,
  • showResults: if True it will show the localized landmarks for each image,
  • showCED: if True the Cumulative Error Distribution curve will be shown along with the AUC score,
  • normalization: 'centers' for inter-pupil distance, 'corners' for inter-ocular distance, 'diagonal' for bounding box diagonal normalization.
  • failureThreshold: the error threshold over which the results are considered to be failures, for inter-ocular distance it should be set to 0.08,
  • networkFilename: either '../DAN.npz' or '../DAN-Menpo.npz'.

Results on the Menpo test set

Download the Menpo test set from https://ibug.doc.ic.ac.uk/resources/ and extract it. Open the MenpoEval.py script and make sure that MenpoDir is set to the directory with images that you just extracted. Run the scripts to process the dataset. The results will be saved as images and pts files in the directories indicated in the imgOutputDir and ptsOutputDir variables.

TensorFlow implementation

Two TensorFlow implementations of Deep Alignment Network have been published by other GitHub users:

Citation

If you use this software in your research, then please cite the following paper:

Kowalski, M.; Naruniec, J.; Trzcinski, T.: "Deep Alignment Network: A convolutional neural network for robust face alignment", CVPRW 2017

License

While the code is licensed under the MIT license, which allows for commercial use, keep in mind that the models linked above were trained on the 300-W dataset, which allows for research use only. For details please see: https://ibug.doc.ic.ac.uk/resources/facial-point-annotations/

Contact

If you have any questions or suggestions feel free to contact me at [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].