FaceBoxes.PyTorch
1.0.0
Zisian Wong,Shifeng Zhang
麵包箱的Pytorch實現:CPU實時面部檢測器的精度很高。 Caffe中的官方代碼可以在此處找到。
| 數據集 | 原始咖啡餅 | Pytorch實施 |
|---|---|---|
| afw | 98.98% | 98.55% |
| 帕斯卡 | 96.77% | 97.05% |
| FDDB | 95.90% | 96.00% |
如果有助於您的研究,請在您的出版物中引用論文:
@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}
}
按照官方說明,安裝pytorch> = v1.0.0。
克隆這個存儲庫。我們將克隆目錄稱為$FaceBoxes_ROOT 。
git clone https://github.com/zisianw/FaceBoxes.PyTorch.git./make.sh注意:代碼基於Python 3+。
$FaceBoxes_ROOT /data/WIDER_FACE/images $FaceBoxes_ROOT /data/WIDER_FACE/annotations cd $FaceBoxes_ROOT /
python3 train.py如果您不想訓練該模型,則可以下載我們的預訓練型號並將其保存在$FaceBoxes_ROOT/weights中。
$FaceBoxes_ROOT /data/AFW/images/
$FaceBoxes_ROOT /data/PASCAL/images/
$FaceBoxes_ROOT /data/FDDB/images/ # dataset choices = ['AFW', 'PASCAL', 'FDDB']
python3 test.py --dataset FDDB
# evaluate using cpu
python3 test.py --cpu
# visualize detection results
python3 test.py -s --vis_thres 0.3官方發行(Caffe)
非常感謝Pytorch的SSD端口,這很有幫助:
注意:如果您無法通過上述鏈接下載轉換後的註釋,提供的圖像和經過訓練的模型,則可以通過Baiduyun下載它們。