【个人开源】实时人脸检测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

MethodEasyMediumHard
ours(one scale)0.92570.91310.7717
original0.9220.9110.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

TensorRT centerface人脸+关键点检测做到50fps

  1. face recognition

[人脸识别]高精度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

文件打包下载

链接: https://pan.baidu.com/s/1NwAx5yLdqRDQlkRodQfYog 提取码: 8bvy

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 44
    评论
评论 44
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值