mexiQQ / DSFD.pytorch

DSFD implement with pytorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DSFD: Dual Shot Face Detector

A PyTorch Implementation of Dual Shot Face Detector

Description

We use basenet VGG16, EfficientNet-B0 and EfficientNet-B1 to train DSFD, the model can be downloaded in DSFD.

The AP using VGG16 in AFW,PASCAL,FDDB as following:

AFW PASCAL FDDB
99.89 99.11 0.983

The performance on small face detection using EfficientNet-B0 and EfficientNet-B1 is not good enough, we are still working on it.

Requirement

  • pytorch 0.3
  • opencv
  • numpy
  • easydict

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\efficient_b0\efficient_b1 
		--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

References

About

DSFD implement with pytorch


Languages

Language:Python 93.1%Language:MATLAB 6.9%Language:Shell 0.0%