This repository includes the code for training and evaluating the SSH face detector introduced in our ICCV 2017 paper.
The code is adapted based on an intial fork from the py-faster-rcnn repository.
If you find SSH useful in your research please consider citing:
@inproceedings{najibi2017ssh,
title={{SSH}: Single Stage Headless Face Detector},
author={Najibi, Mahyar and Samangouei, Pouya and Chellappa, Rama and Davis, Larry},
booktitle={The IEEE International Conference on Computer Vision (ICCV)},
year={2017}
}
- Clone the repository:
git clone --recursive https://github.com/mahyarnajibi/SSH.git
-
Caffe and pycaffe: You need to compile the
caffe-ssh
repository which is a Caffe fork compatible with SSH. Caffe should be built with cuDNN, NCCL, and python layer support (set by default inMakefile.config.example
). You also need tomake pycaffe
. -
Install python requirements:
pip install -r requirements.txt
- Run
make
in thelib
directory:
cd lib
make
To run the demo, first, you need to download the provided pre-trained SSH model. Running the following script downloads the SSH model into its default directory path:
bash scripts/download_ssh_model.sh