RoI Tanh-polar transformer network for face parsing in the wild

Yiming Lin, Jie Shen, Yujiang Wang, Maja Pantic

Introduction

Face parsing—the task of assigning semantic labels such as "nose," "eye," or "hair" to every pixel in a facial image—is a fundamental component of many computer vision pipelines. However, performing this task "in the wild" remains challenging due to extreme poses, occlusions, and varied lighting. Traditional methods often rely on crop-and-resize strategies, which can discard critical context like hair, or landmark alignment, which fails when facial features are obscured.

To address these limitations, researchers from Imperial College London introduced RTNet, a framework that utilizes a novel RoI Tanh-polar representation. This approach achieves rotation equivariance and preserves full background context, significantly improving performance on unconstrained images.

Methodology: The RTNet Architecture

The core innovation of RTNet lies in its coordinate transformation and specialized network blocks. Instead of standard cropping, the model employs the RoI Tanh-polar Transform (RT-Transform). This operation warps the entire input image into a Tanh-polar coordinate system based on a bounding box. This mapping "stretches" the Region of Interest (the face) to occupy approximately 76% of the transformed image while "squishing" the background into the remaining space. This ensures high resolution for facial features without discarding global context.

Overview of the RTNet architecture showing the RT-Transform pipeline and the internal structure of the HybridBlock.

HybridBlock and Rotation Equivariance

In polar coordinates, a rotation in the original image space is converted into a simple translation. This property allows standard CNNs to become rotation equivariant, enabling the model to handle tilted or profile faces naturally. To further enhance feature extraction, the authors proposed the HybridBlock. As shown in the architectural overview, this block runs parallel convolutions in both Tanh-polar and Tanh-Cartesian spaces. By combining arc-shaped and rectangular receptive fields, the network can better capture the complex, non-linear geometry of facial components.

Benchmarking "In-the-Wild" Performance

To evaluate the model's robustness, the researchers introduced iBugMask, a new, highly challenging dataset. It includes over 21,000 training images (augmented with 3D face profiling for large poses) and 1,000 manually annotated test images featuring extreme expressions and backgrounds. RTNet was also tested against established benchmarks like Helen, LFW-PL, and LaPa.

Key Results

RTNet demonstrated state-of-the-art (SOTA) performance across all tested datasets. A standout result was its performance on hair segmentation: on the iBugMask dataset, RTNet achieved an F1 score of 81.8% for hair, compared to roughly 58% for standard baselines like DeepLabv3+.

Qualitative results of RTNet on the challenging iBugMask dataset, demonstrating robust parsing under extreme poses and occlusions.

Beyond accuracy, the model is remarkably efficient. RTNet utilizes 27.3M parameters and requires fewer FLOPs (21.99 GMac) than DeepLabv3+ (39.6M parameters / 31.39 GMac). With an inference speed of approximately 70ms per image on a GTX 1080Ti, it is suitable for near-real-time applications.

Conclusion and Future Work

RTNet successfully bridges the gap between context preservation and resolution by moving face parsing into the Tanh-polar domain. While the model currently depends on a reasonably accurate bounding box and incurs a slight sampling overhead during coordinate transformation, its ability to handle extreme poses without landmark alignment represents a significant step forward. Future research may explore applying this Tanh-polar approach to other RoI-based tasks, such as medical imaging or general object parsing.

Summary updated

BibTeX
@article{lin2021roi,
  author = {Yiming Lin and Jie Shen and Yujiang Wang and Maja Pantic},
  title = {{RoI Tanh-polar transformer network for face parsing in the wild}},
  journal = {Image and Vision Computing},
  year = {2021},
  url = {https://openreview.net/forum?id=v8nAsp8H6Wr},
}
Figure