Learning to Generate Facial Depth Maps

Stefano Pini, Filippo Grazioli, Guido Borghi, Roberto Vezzani, Rita Cucchiara · DOI

TL;DR

This paper introduces a novel conditional Generative Adversarial Network (cGAN) that learns to generate high-quality facial depth maps from monocular RGB images. By combining supervised and adversarial learning, their model produces depth maps that are not only visually realistic but also preserve crucial facial details for tasks like face verification, outperforming existing methods.

What Problem Does This Paper Address?

Estimating depth from a single 2D image is a fundamentally ill-posed problem in computer vision. While humans excel at this due to stereo vision and extensive learning from experience, machines struggle because a single 2D image can correspond to multiple 3D structures. This is particularly challenging for detailed objects like human faces, where subtle depth variations are critical for recognition and understanding. Traditional methods like stereo vision or structure-from-motion require multiple cameras or complex setups, while earlier monocular approaches often suffered from depth homogeneity, missing values, and computational expense. Recent deep learning methods have shown promise, but generating accurate and discriminative depth maps from monocular images, especially for fine-grained details like facial features, remains an open challenge.

Methods

The core of this work is a conditional Generative Adversarial Network (cGAN) architecture. The Generator is a fully convolutional autoencoder that takes an RGB face image as input and outputs a corresponding depth map. It consists of an encoder that compresses the image into a latent representation and a decoder that upsamples this representation to generate the depth map. The Discriminator is trained to distinguish between real depth maps (ground truth) and fake depth maps generated by the Generator.

The training process employs an adversarial approach, where the Generator tries to fool the Discriminator, and the Discriminator tries to accurately classify real vs. fake. This is formalized as a min-max optimization problem. To ensure the generated depth maps are both realistic and informative, the Generator is trained with a combined loss function:

  • Mean Squared Error (MSE) loss: To ensure the generated depth map is similar to the ground truth.
  • Adversarial loss: To make the generated depth map indistinguishable from real ones by the Discriminator.

A dynamic face cropping algorithm is also used to accurately extract facial regions from the datasets.

Datasets

The authors utilize two public datasets for training and evaluation:

  • Pandora dataset: Contains paired RGB and depth images, acquired with a Microsoft Kinect One (Time-of-Flight sensor). It offers high resolution and includes challenging scenarios like occlusions, extreme head poses, and various garments.
  • Biwi Kinect Head Pose Database: Acquired with an older Microsoft Kinect (structured-light infrared sensor), this dataset provides paired RGB and depth images but with lower depth map quality and common holes (missing depth values).

Key Insights and Ideas

  • Adversarial learning for fine-grained detail: The paper demonstrates that adversarial training is effective not just for generating visually plausible depth maps but also for preserving discriminative facial features, which is crucial for tasks beyond simple depth estimation.
  • Face verification as a quality metric: Using a pre-trained Siamese network for face verification on generated depth maps provides a powerful, human-observer-independent evaluation of whether the generated depth maps retain essential identity information. This is a more robust evaluation than pixel-wise metrics alone.
  • Surprising performance on complex scenarios: In some cases, generated depth maps even led to higher face verification accuracy than original depth maps, particularly for frontal faces and constrained movements. The authors hypothesize this is due to the generative process potentially removing occlusions and enhancing discriminative features.

Key Results

  • The proposed cGAN model significantly outperforms both an autoencoder-only approach and other state-of-the-art methods (pix2pix, [5]) on various pixel-wise metrics (L1 Norm, L2 Norm, RMSE) on both Pandora and Biwi datasets.
  • On the Pandora dataset, the cGAN achieved the highest accuracy on the face verification task, demonstrating its ability to preserve discriminative facial features.
  • The model shows robustness across different head poses and sequence complexities, achieving competitive face verification accuracy even on challenging subsets.

Limitations and Future Work

  • Dataset limitations: The Biwi dataset's lower quality and limited variability negatively impact the generative and generalization capabilities of the tested architectures.
  • Future Work: The authors plan to extend their model by incorporating task-specific losses and applying it to different scenarios beyond facial depth estimation.

Summary updated

BibTeX
@inproceedings{pini2018learning,
  author = {Stefano Pini and Filippo Grazioli and Guido Borghi and Roberto Vezzani and Rita Cucchiara},
  title = {{Learning to Generate Facial Depth Maps}},
  booktitle = {3DV},
  year = {2018},
  doi = {10.1109/3dv.2018.00078},
}
Figure