Home

Awesome

DSFD: Dual Shot Face Detector

A PyTorch Implementation of Dual Shot Face Detector

Description

I use basenet vgg to train DSFD,the model can be downloaded in DSFD.the AP in WIDER FACE as following:

Easy MAPMedium MAPhard MAP
0.9460.9370.880

the AP in AFW,PASCAL,FDDB as following:

AFWPASCALFDDB
99.8999.110.983

I'm using resnet50/resnet101 to train DSFD,the result will be published later on

Requirement

Prepare data

  1. download WIDER face dataset
  2. modify data/config.py
  3. python prepare_wider_data.py

Train

python train.py --batch_size 4 
		--model vgg\resnet50\resnet101 
		--lr 5e-4

Evalution

according to yourself dataset path,modify data/config.py

  1. Evaluate on AFW.
python tools/afw_test.py
  1. Evaluate on FDDB
python tools/fddb_test.py
  1. Evaluate on PASCAL face
python tools/pascal_test.py
  1. test on WIDER FACE
python tools/wider_test.py

Demo

you can test yourself image

python demo.py

Result

  1. demo
<div align="center"> <img src="https://github.com/yxlijun/DSFD.pytorch/blob/master/tmp/0_Parade_marchingband_1_488.jpg" height="300px" alt="demo" > <img src="https://github.com/yxlijun/DSFD.pytorch/blob/master/tmp/0_Parade_marchingband_1_20.jpg" height="300px" alt="demo" > </div>

References