Introduction
Face detection is a fundamental component of many computer vision applications, yet it has long been plagued by a trade-off between speed and accuracy. Traditional methods like the Viola-Jones detector are fast enough for CPUs but lack robustness in "in-the-wild" scenarios involving complex lighting and occlusions. Conversely, modern Deep Learning-based detectors achieve high accuracy but typically require powerful GPUs to run in real-time. FaceBoxes bridges this gap by introducing a high-performance convolutional neural network (CNN) designed specifically for real-time CPU operation. It achieves 20 FPS on a single CPU core and 125 FPS on a GPU, maintaining state-of-the-art precision.
The FaceBoxes Architecture
The core innovation of FaceBoxes lies in its unique network structure, which balances computational efficiency with representational power. The architecture is divided into two primary components: the Rapidly Digested Convolutional Layers (RDCL) and the Multiple Scale Convolutional Layers (MSCL).
- Rapidly Digested Convolutional Layers (RDCL): To achieve CPU real-time speeds, the RDCL quickly reduces the spatial resolution of the input image by a factor of 32. This is done using large strides in the initial layers. A key feature here is the use of Concatenated ReLU (C.ReLU). C.ReLU exploits the observation that filters in early layers often occur in pairs with opposite phases. By concatenating negated outputs before applying ReLU, the network doubles its channel count with minimal additional computation, preserving descriptive power while reducing latency.
- Multiple Scale Convolutional Layers (MSCL): While RDCL provides speed, MSCL ensures accuracy across various face sizes. It employs a multi-scale design along two dimensions. In terms of depth, it produces feature maps at different resolutions to detect faces at different scales. In terms of width, it incorporates Inception modules. These modules use parallel paths with different kernel sizes (e.g., 1x1, 3x3) to enrich the receptive fields, allowing the model to capture visual patterns at multiple granularities.
Anchor Densification Strategy
A common issue in anchor-based detectors is the "density imbalance" between small and large faces. Standard tiling strategies often result in sparse anchors for small faces, leading to low recall. FaceBoxes addresses this by implementing an Anchor Densification Strategy. By uniformly tiling more anchors at smaller scales, the network ensures that even tiny faces are adequately covered by the anchor grid, significantly boosting detection performance for small-scale targets.
Experimental Results
The effectiveness of FaceBoxes was evaluated on several rigorous benchmarks, including WIDER FACE, AFW, PASCAL face, and FDDB. Unlike cascaded detectors, FaceBoxes is a single-shot detector, meaning its processing speed is invariant to the number of faces present in an image.
On the FDDB dataset, FaceBoxes achieved a 96.0% mAP at 1000 false positives, outperforming other CPU-efficient methods such as MTCNN (94.4%) and ACF (85.2%). In terms of raw speed, it reaches 20 FPS on a single Intel Xeon E5-2660v3 core for VGA-resolution images and 125 FPS on a Titan X GPU. The model is also remarkably lightweight, with a total file size of only 4.1MB, making it ideal for deployment on edge devices.
Conclusion
FaceBoxes demonstrates that high-accuracy face detection is possible on standard CPUs without the "face-count penalty" associated with multi-stage detectors. By combining efficient front-end layers with a robust multi-scale anchor strategy, it provides a practical solution for real-time applications. Future work may involve further optimizations for mobile ARM architectures and enhancing robustness in extremely crowded environments with high levels of occlusion.
Summary updated