DenseReg: Fully Convolutional Dense Shape Regression In-the-Wild

Riza Alp Güler, George Trigeorgis, Epameinondas Antonakos, Patrick Snape, Stefanos Zafeiriou, Iasonas Kokkinos

Abstract

In this paper, we propose to learn a mapping from image pixels into a dense template grid through a fully convolutional network. We formulate this task as a regression problem and train our network by leveraging manually annotated facial landmarks "in-the-wild." We use such landmarks to establish a dense correspondence field between a three-dimensional object template and the input image, which then serves as the ground-truth for training our regression system. Our system, called DenseReg, allows us to estimate dense image-to-template correspondences in a fully convolutional manner. When used as an initialization for Statistical Deformable Models, we obtain landmark localization results that largely outperform the current state-of-the-art on the challenging 300W benchmark. We thoroughly evaluate our method on a host of facial analysis tasks and demonstrate its use for other correspondence estimation tasks, such as the human body and the human ear.

Introduction

Understanding object geometry in unconstrained "in-the-wild" images remains a fundamental challenge in computer vision. Traditionally, this has been approached from two angles: discriminative models (like standard CNNs) that excel at detection but are often designed to be invariant to shape deformations, and Statistical Deformable Models (SDMs) that explicitly model shape but require precise initializations and iterative optimization.

DenseReg bridges this gap by recovering dense, 2D-to-3D surface correspondence in a single, feed-forward pass. By mapping pixels directly to a 3D object template, the system provides a robust geometric understanding without the need for complex starting guesses.

Methods

1. Dense Correspondence Mapping

The core of DenseReg is a Fully Convolutional Network (FCN) based on the ResNet-101 architecture. To train the network, the authors generate ground truth by fitting a 3D mesh to sparse landmarks in existing datasets. This process creates a dense "UV" coordinate map—a 2D representation of the 3D surface—assigning a specific coordinate to every pixel belonging to the object in the training images.

DenseReg overview: An FCNN maps input pixels to a deformation-free template space, enabling dense correspondence estimation.

2. Quantized Regression

A key innovation of this work is the "Quantized Regression" strategy. Direct regression of continuous coordinates often struggles with the high non-linearity of the task. Instead, DenseReg decomposes the problem:

  • Classification: The UV space is divided into $K$ discrete bins. The network first classifies which bin a pixel belongs to.
  • Residual Regression: For each bin, the network predicts a local "residual" (the distance from the bin center to the exact coordinate).

This "classify then refine" approach leverages the strength of CNNs in categorical tasks to simplify complex global regression into localized sub-problems.

The Quantized Regression pipeline: the network predicts discrete bin classifications and local residuals to reconstruct precise UV coordinates.

Key Results and Applications

DenseReg demonstrates state-of-the-art performance across several benchmarks:

  • Landmark Localization: On the 300W benchmark, DenseReg combined with a traditional model achieved a failure rate of only 3.67%, a significant improvement over the previous 5.5% SOTA.
  • Semantic Segmentation: By backward-warping template information to the image, DenseReg achieved an average IoU of 71.96% on the Helen dataset, outperforming specialized models like DeepLab-v2 (68.58%) despite not being explicitly trained for segmentation.
  • Efficiency: The system is highly efficient, running at approximately 7–8 frames per second on 300x300 images, making it suitable for near-real-time applications.

Conclusion

DenseReg provides a powerful framework for dense shape regression that eliminates the need for complex initializations. By treating the template as a universal proxy, a single network can simultaneously solve tasks ranging from landmark localization to semantic part segmentation. Future work may address "landmark marching" issues on the jawline and explore soft-assignment versions of the quantized regression to further improve spatial smoothness.

Summary updated

BibTeX
@inproceedings{guler2017densereg,
  author = {Riza Alp Güler and George Trigeorgis and Epameinondas Antonakos and Patrick Snape and Stefanos Zafeiriou and Iasonas Kokkinos},
  title = {{DenseReg: Fully Convolutional Dense Shape Regression In-the-Wild}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  url = {https://openreview.net/forum?id=r1Wx5yG_ZS},
}
Figure