人脸检测模块 仲耀晖
- Ubuntu 16.04 LTS
- Python3
- Tensorflow-gpu 1.4
- OpenCV3
Method | AP Easy | AP Medium | AP Hard |
---|---|---|---|
当前模型 | 90.6 | 88.8 | 73.4 |
python demo.py
- 下载 VGG 16 模型 并将其放置于 /checkpoints.
- 下载 WIDER FACE 数据集 并转换为 VOC 格式. 路径格式为:
datasets/
|->widerface/
| |->WIDER_train/
| |->WIDER_val/
| |->WIDER_test/
| |->Annotations/
| |->JPEGImages/
| |...
- 使用这个命令来将数据转为 tfrecord 格式的数据:
python datasets/pascalvoc_to_tfrecords.py
- 训练策略分为两步:
先将
train_model.py
中的设置改为如下设置再运行,用来训练 PyramidBox 的额外网络层:
self.fine_tune_vgg16 = False
- 然后设置
self.fine_tune_vgg16 =Ture
并运行train_model.py
来训练整个网络.
使用以下脚本进行测试:
python widerface_eval.py
cd eval/eval_tools
octave wider_eval.m