Wing Loss
This is an implementation of the loss function from
Wing Loss for Robust Facial Landmark Localisation with Convolutional Neural Networks.
How to use a pretrained model
- Download a pretrained model from here.
- See an example of usage in
inference/try_detector.ipynb
.
Example
Notes
- I didn't train on any datasets in the paper.
- I simply trained on CelebA dataset (it has five landmark locations for each face).
- I use a detector from here to detect faces.
- The inference speed is ~0.15 ms per image (video card is NVIDIA GeForce GTX 1080 Ti, batch size is 8).
- I used procrustes analysis for data balancing (see
data/explore_and_prepare_CelebA.ipynb
).
Requirements
- tensorflow 1.12
- numpy, Pillow, tqdm