FaceBoxes
FaceBoxes: A CPU Real-time Face Detector with High Accuracy, IJCB, 2017
Install / Use
/learn @sfzhang15/FaceBoxesREADME
FaceBoxes: A CPU Real-time Face Detector with High Accuracy
Introduction
We propose a novel face detector, named FaceBoxes, with superior performance on both speed and accuracy. Moreover, the speed of FaceBoxes is invariant to the number of faces. You can use the code to train/evaluate the FaceBoxes method for face detection. For more details, please refer to our paper.
<p align="left"> <img src="https://github.com/sfzhang15/FaceBoxes/blob/master/faceboxes_framework.jpg" alt="FaceBoxes Framework" width="777px"> </p> <p align="left"> <img src="https://github.com/sfzhang15/FaceBoxes/blob/master/faceboxes_performance.jpg" alt="FaceBoxes Performance" width="770px"> </p>Note: The performance of FDDB is the true positive rate (TPR) at 1000 false postives. The speed is for VGA-resolution images.
Citing FaceBoxes
Please cite our paper in your publications if it helps your research:
@inproceedings{zhang2017faceboxes,
title = {Faceboxes: A CPU Real-time Face Detector with High Accuracy},
author = {Zhang, Shifeng and Zhu, Xiangyu and Lei, Zhen and Shi, Hailin and Wang, Xiaobo and Li, Stan Z.},
booktitle = {IJCB},
year = {2017}
}
Contents
Installation
- Get the code. We will call the cloned directory as
$FaceBoxes_ROOT.
git clone https://github.com/sfzhang15/FaceBoxes.git
- Build the code. Please follow Caffe instruction to install all necessary packages and build it.
cd $FaceBoxes_ROOT
# Modify Makefile.config according to your Caffe installation.
# Make sure to include $FaceBoxes_ROOT/python to your PYTHONPATH.
cp Makefile.config.example Makefile.config
make all -j && make py
Training
- Download the WIDER FACE dataset, convert it to VOC format and create the LMDB file. Or you can directly download our created LMDB of WIDER FACE to
$FaceBoxes_ROOT/examples/.
# You can modify create_list.sh and create_data.sh if needed.
cd $FaceBoxes_ROOT
./data/WIDER_FACE/create_list.sh
./data/WIDER_FACE/create_data.sh
- Train your model on WIDER FACE.
cd $FaceBoxes_ROOT/models/faceboxes
sh train.sh
Evaluation
-
Download the images of AFW, PASCAL Face and FDDB to
$FaceBoxes_ROOT/examples/images/. -
If you do not train the model by yourself, you can download our trained model.
-
Check out
test/demo.pyon how to detect faces using the FaceBoxes model and how to plot detection results. -
Evaluate the trained model via
test/afw_test.pyon AFW. -
Evaluate the trained model via
test/pascal_test.pyon PASCAL Face. -
Evaluate the trained model via
test/fddb_test.pyon FDDB. -
Download the eval_tool to show the performance.
Others
-
We reimplement the FaceBoxes with PyTorch as FaceBoxes.PyTorch.
-
We will release a trained model of the imporved version of FaceBoxes, which jonitly performs face detection and alignment (5 landmarks).
Note: If you can not download the created LMDB, the provided images and the trained model through the above links, you can download them through BaiduYun.
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
