Pytorch Implementation of Adaptive Wing Loss for Robust Face Alignment via Heatmap Regression.
Install system requirements:
sudo apt-get install python3-dev python3-pip python3-tk libglib2.0-0
Install python dependencies:
pip3 install -r requirements.txt
Download and process WFLW dataset
./dataset
directory. Your directory should look like this:
AdaptiveWingLoss
└───dataset
│
└───WFLW_annotations
│ └───list_98pt_rect_attr_train_test
│ │
│ └───list_98pt_test
│
└───WFLW_images
└───0--Parade
│
└───...
./dataset
directory, run:
python convert_WFLW.py
A new directory ./dataset/WFLW_test
should be generated with 2500 processed testing images and corresponding landmarks.
Download pretrained model from Google Drive and put it in ./ckpt
directory.
Within ./Scripts
directory, run following command:
sh eval_wflw.sh
*GTBbox indicates the ground truth landmarks are used as bounding box to crop faces.
[x] Release evaluation code and pretrained model on WFLW dataset.
[ ] Release training code on WFLW dataset.
[ ] Release pretrained model and code on 300W, AFLW and COFW dataset.
[ ] Replease facial landmark detection API
If you find this useful for your research, please cite the following paper.
@InProceedings{Wang_2019_ICCV,
author = {Wang, Xinyao and Bo, Liefeng and Fuxin, Li},
title = {Adaptive Wing Loss for Robust Face Alignment via Heatmap Regression},
booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
month = {October},
year = {2019}
}
This repository borrows or partially modifies hourglass model and data processing code from face alignment and pose-hg-train.