实时人脸检测centerface

# the real-time face detection Centerface

unofficial version of centerface, which achieves the best balance between speed and accuracy. Centerface is a practical anchor-free face detection and alignment method for edge devices.

The project provides training scripts, training data sets, and pre-training models to facilitate users to reproduce the results. Finally, thank the centerface's author for the training advice.

performance results on the validation set of WIDER_FACE

use the same train dataset without additional data

Method Easy Medium Hard
ours(one scale) 0.9257 0.9131 0.7717
original 0.922 0.911 0.782
ours(multi-scale) - - -

Requirements

use pytorch, you can use pip or conda to install the requirements

# for pip
cd $project
pip install -r requirements.txt

# for conda
conda env create -f enviroment.yaml

Test

  1. download the pretrained model from Baidu password: ypbi

  2. download the validation set of WIDER_FACE password: ypbi

  3. test on the validation set

cd $project/src
source activate torch110
python test_wider_face.py
  1. calculate the accuracy
cd $project/evaluate
python3 setup.py build_ext --inplace
python evaluation.py --pred {the result folder}
    
>>>
Easy   Val AP: 0.9257383419951156
Medium Val AP: 0.9131308732465665
Hard   Val AP: 0.7717305552550734
  1. example


    在这里插入图片描述
  2. vedio

[video(video-h0NmS5hq-1582250918283)(type-bilibili)(url-https://player.bilibili.com/player.html?aid=88180133)(image-https://ss.csdn.net/p?http://i0.hdslb.com/bfs/archive/4972610bf25f6d7d0e6c9156e02ef18ff11b72a1.jpg)(title-TensorRT centerface人脸+关键点检测做到50fps)]

  1. face recognition

[video(video-w5il8NlR-1582634924047)(type-bilibili)(url-https://player.bilibili.com/player.html?aid=91632471)(image-https://ss.csdn.net/p?http://i2.hdslb.com/bfs/archive/1c03d109a1a373184ea11fffdc557a7f89116d96.jpg)(title-[人脸识别]高精度centerface)]

Train

the backbone use mobilev2 as the same with the original paper
The annotation file is in coco format. the annotation file and train data can download for Baidu password: ypbi
train

cd $project/src/tools
source activate torch110
python main.py

Train on your own data

follow the CenterNet


TO DO

  • use more powerful and small backbone
  • use other FPN tricks

reference

borrow code from CenterNet

CenterNet
CenterMulti
Star-Clouds/CenterFace

Code

https://github.com/chenjun2hao/CenterFace.pytorch

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • The Great A.I. Awakening How Google used artificial intel...
    图羽阅读 5,215评论 0 3
  • 后来有人说 再也没见过她 /一个站在窗前 瞳孔反应出她的内心独白 却一直让烟缭绕的女人 于是作为听者的我微笑且故作...
    张三者阅读 1,270评论 0 0
  • 这个cpu是多核的。 一般两核是这样工作的的: 四核是这样工作的: 16核是这样工作的: 好了不黑了。再黑inte...
    random233阅读 24,826评论 7 51
  • 代码放在GitHubELAutoSelectorCocoaPods 可用 要解决的问题 Objective-C 开...
    Elenion阅读 4,365评论 0 49
  • 对于我这种重度拖延症患者来说,什么事情不到最后真的是不想动的。老公的描述就是:你什么事情都太凑活了,没有任何计划性...
    A可乐可心阅读 2,372评论 0 3

友情链接更多精彩内容