img2pose: Face Alignment and Detection via 6DoF, Face Pose Estimation

Vítor Albiero, Xingyu Chen, Xi Yin, Guan Pang, Tal Hassner

TL;DR

img2pose is a real-time, 6-degrees-of-freedom (6DoF) face pose estimator that eliminates the need for preliminary face detection or landmark localization. By regressing 3D pose directly from an image, the model achieves state-of-the-art accuracy and provides high-quality face detection as a free, geometrically-consistent byproduct.

What Problem Does This Paper Address?

Traditional face analysis pipelines typically follow a rigid sequence: Face Detection $\rightarrow$ Facial Landmark Localization $\rightarrow$ 3D Alignment.

This approach has several significant drawbacks:

  1. Brittleness: Landmark detectors often fail on tiny faces or under extreme occlusions, where individual features like eye centers are indistinguishable.
  2. Complexity: Landmark detection is a high-dimensional regression problem (e.g., 68 points require 136 parameters) that entangles rigid head pose with non-rigid facial expressions.
  3. Efficiency: Running multiple models in series is computationally expensive and makes it difficult to optimize for end-to-end performance or fairness.

The authors of img2pose argue that estimating a 6DoF rigid transformation (3 rotations, 3 translations) is a fundamentally simpler task than landmark detection and that this pose information already implicitly contains everything needed for face detection.

Methods

The authors propose a two-stage model based on Faster R-CNN with a ResNet-18 backbone and a Feature Pyramid Network (FPN).

The Architecture

  • Stage 1 (RPN): A Region Proposal Network identifies potential face locations. Unlike standard RPNs trained on bounding boxes, this one uses "projected bounding boxes" derived from 6DoF ground-truth pose labels.
  • Stage 2 (Heads): For each proposal, the model has two heads: a standard "faceness" classifier and a novel 6DoF pose regressor.
Overview of the img2pose architecture, showing the two-stage pipeline and the multi-task loss components.

Key Innovations

  • Pose Label Conversion (Algorithm 1): A critical contribution is a method to keep 6DoF poses consistent across different image crops. Because the translation component ($t_z$, or depth) is relative to the camera and the crop's scale, the authors developed a conversion algorithm to translate poses between local crop coordinates and the global image frame.
  • Calibration Point Loss ($L_{calib}$): Beyond simple regression of the six pose parameters, the authors introduce a loss based on projecting a fixed set of 3D points onto the 2D image plane. This ensures the estimated pose is geometrically grounded, penalizing errors that would lead to poor visual alignment.

Datasets

  • Training: The model was trained on WIDER FACE, using weakly supervised pose labels generated by running a state-of-the-art landmark detector (RetinaFace) and solving the Perspective-n-Point (PnP) problem.
  • Evaluation:
    • AFLW2000-3D and BIWI for 3D pose estimation accuracy.
  • WIDER FACE for face detection performance.
  • 300W-LP was used for fine-tuning to handle standard Euler angle benchmarks.

Key Insights and Ideas

  • 6DoF is "Simpler": Regressing 6 parameters is mathematically easier than regressing 136 landmark coordinates, especially when those landmarks are obscured or tiny.
  • Detection as a Byproduct: Once you have the 3D pose and a reference 3D face model, you can project that model back into 2D to get a bounding box. This allows for flexible box shapes (e.g., expanding to include the forehead) that are invariant to the face's orientation.
  • Robustness to Scale: By bypassing landmark detection, the model excels at finding extremely small faces in crowded scenes, as it only needs to recognize the general "pose" of a head rather than specific features.
Visualizing the 3D translational components of estimated poses in WIDER FACE, showing how "Hard" faces are more scattered in 3D space.

Key Results

  • State-of-the-Art Pose Accuracy: On AFLW2000-3D, img2pose achieved a Mean Absolute Error (MAE) for rotation of 3.913, outperforming all baselines, including those that use much heavier backbones (like ResNet-50).
  • Real-Time Performance: The model runs at 41 FPS on a single Titan Xp GPU for 400x400 images.
  • Superior Detection: Despite not being explicitly trained on bounding box labels, the model outperformed comparable light-backbone detectors (like Faceboxes and LFFD) on the "Medium" and "Hard" subsets of the WIDER FACE benchmark.
The model demonstrates remarkable ability to detect and align faces even in extremely dense crowds.

Limitations and Future Work

  • Intrinsic Camera Parameters: The method assumes a known intrinsic camera matrix. While the authors use a reasonable default, accuracy can be affected if the actual camera focal length differs significantly.
  • Euler Angle Issues: The authors noted that standard Euler angle metrics are problematic for large yaw angles ($> \pm 90^\circ$), requiring specific fine-tuning to compare against legacy benchmarks.
  • Generalization: While focused on faces, the authors suggest this "pose-first" detection approach could be applied to other rigid or semi-rigid object categories in domains like retail or robotics.

Summary updated

Abstract

We propose real-time, six degrees of freedom (6DoF), 3D face pose estimation without face detection or landmark localization. We observe that estimating the 6DoF rigid transformation of a face is a simpler problem than facial landmark detection, often used for 3D face alignment. In addition, 6DoF offers more information than face bounding box labels. We leverage these observations to make multiple contributions: (a) We describe an easily trained, efficient, Faster R-CNN--based model which regresses 6DoF pose for all faces in the photo, without preliminary face detection. (b) We explain how pose is converted and kept consistent between the input photo and arbitrary crops created while training and evaluating our model. (c) Finally, we show how face poses can replace detection bounding box training labels. Tests on AFLW2000-3D and BIWI show that our method runs at real-time and outperforms state of the art (SotA) face pose estimators. Remarkably, our method also surpasses SotA models of comparable complexity on the WIDER FACE detection benchmark, despite not been optimized on bounding box labels.
BibTeX
@inproceedings{albiero2020img,
  author = {Vítor Albiero and Xingyu Chen and Xi Yin and Guan Pang and Tal Hassner},
  title = {{img2pose: Face Alignment and Detection via 6DoF, Face Pose Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr46437.2021.00753},
}
Figure