Home

Awesome

Heatmap Regression via Randomized Rounding


[2020/09/02]: the paper is available on ArXiv.

[2020/10/28]: add new models for 106 facial landmarks.

[2021/09/21]: add new models for 68 facial landmarks (see models/README.md).

Introduction

This repo contains the facial landmark detection code for "Heatmap Regression via Randomized Rounding".

demo image

Demo

export PYTHONPATH=./:$PYTHONPATH
python examples/demo.py --image data/demo.jpg --model models/wflw/hrnet18_256x256_p2/

Test on WFLW (98 facial landmarks)

python examples/test_wflw.py --model models/wflw/hrnet18_256x256_p1/
BackboneBBoxResolution#ParamsFLOPsNME (%)
HRNet-W18P1256x2569.69M4.84G3.81
HRNet-W18P2256x2569.69M4.84G3.95
MobileNetV2P2256x2560.60M0.51G4.45
MobileNetV2P2160x1600.60M0.20G4.58
MobileNetV2P2128x1280.60M0.13G4.72

Test on LaPa (106 facial landmarks)

python examples/test_lapa.py --model models/lapa/hrnet18_256x256_p2/
BackboneBBoxResolution#ParamsFLOPsNME (%)
HRNet-W18P2256x2569.69M4.86G1.40
MobileNetV2P2256x2560.60M0.52G1.69
MobileNetV2P2128x1280.60M0.13G2.08

NOTE:All pretrained models can also be downloaded from google drive.

Citation

@article{yu2021heatmap,
  title={Heatmap Regression via Randomized Rounding},
  author={Yu, Baosheng and Tao, Dacheng},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year={2021}
}

Contact

Baosheng Yu, baosheng.yu.usyd@gmail.com.

Acknowledgement

https://github.com/HRNet