原文:Github 项目 - FaceBoxes高精度实时人脸检测器 - AIUAI
主页: 智云视图
FaceBoxes 完整复现.
论文: FaceBoxes: A CPU Real-time Face Detector with High Accuracy - 2018
1. FaceBoxes 测试
Caffemodel - FaceBoxes_1024x1024.caffemodel (3.6M)
Prototxt - faceboxes_deploy.prototxt
Caffe - caffe-ssd
# -*- coding: utf-8 -*
import numpy as np
import matplotlib.pyplot as plt
import sys,os
import cv2
caffe_root = '/path/to/caffe-ssd/'
sys.path.insert(0, caffe_root + 'python')
import caffe
import time
net_file= 'faceboxes_deploy.prototxt'
caffe_model='FaceBoxes_1024x1024.caffemodel'
caffe.set_mode_cpu() # cpu
# caffe.set_mode_gpu() # gpu
net = caffe.Net(net_file,caffe_model,caffe.TEST)
CLASSES = ('background', 'face')
transformer = caffe.io.Transformer({
'data': net<