GithubHelp home page GithubHelp logo

awesome-archive / faceboxes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sfzhang15/faceboxes

0.0 1.0 0.0 4.02 MB

FaceBoxes: A CPU Real-time Face Detector with High Accuracy, IJCB, 2017

License: Apache License 2.0

CMake 2.35% Makefile 0.60% Shell 0.37% Dockerfile 0.06% C++ 80.21% Roff 0.12% Cuda 6.00% MATLAB 0.76% Python 9.54%

faceboxes's Introduction

FaceBoxes: A CPU Real-time Face Detector with High Accuracy

License

By Shifeng Zhang

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.

FaceBoxes Framework

FaceBoxes Performance

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

  1. Installation
  2. Training
  3. Evaluation
  4. Others

Installation

  1. Get the code. We will call the cloned directory as $FaceBoxes_ROOT.
git clone https://github.com/sfzhang15/FaceBoxes.git
  1. 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

  1. 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
  1. Train your model on WIDER FACE.
cd $FaceBoxes_ROOT/models/faceboxes
sh train.sh

Evaluation

  1. Download the images of AFW, PASCAL Face and FDDB to $FaceBoxes_ROOT/examples/images/.

  2. If you do not train the model by yourself, you can download our trained model.

  3. Check out test/demo.py on how to detect faces using the FaceBoxes model and how to plot detection results.

  4. Evaluate the trained model via test/afw_test.py on AFW.

  5. Evaluate the trained model via test/pascal_test.py on PASCAL Face.

  6. Evaluate the trained model via test/fddb_test.py on FDDB.

  7. Download the eval_tool to show the performance.

Others

  1. We will reimplement the FaceBoxes with PyTorch.

  2. 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.

faceboxes's People

Contributors

sfzhang15 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.