Domain Translation with Conditional GANs: from Depth to RGB Face-to-Face

Matteo Fabbri, Guido Borghi, Fabio Lanzi, Roberto Vezzani, Simone Calderara, Rita Cucchiara

TL;DR

This paper introduces a Deterministic Conditional GAN (det-cGAN) that "hallucinates" realistic RGB face images from depth maps. By combining adversarial training with a pixel-wise loss, the model generates plausible faces that are accurate enough to fool standard facial recognition and landmark detection algorithms, effectively allowing computer vision systems to "see" in the dark.

What Problem Does This Paper Address?

While low-cost depth sensors (like the Microsoft Kinect) are excellent for capturing 3D structure regardless of lighting conditions, the resulting "range maps" lack the texture and color information required by most computer vision algorithms. Standard RGB cameras, conversely, fail in shadows or total darkness.

The authors tackle the challenge of Domain Translation: converting data from the depth domain to the RGB domain. The goal isn't just to make a pretty picture, but to generate a "plausible" face that preserves the original subject's pose, expression, and categorical attributes (like gender or age) so that existing RGB-based tools can still function.

Methods

The researchers propose a specific flavor of Generative Adversarial Network (GAN) called a Deterministic Conditional GAN (det-cGAN).

Key technical choices include:

  • Removing Noise: Unlike standard GANs that use a random noise vector ($z$) to create variety, this model is deterministic. It maps a specific depth input to a specific RGB output to ensure structural consistency.
  • Hybrid Loss Function: The Generator is trained using a weighted combination of Mean Squared Error (MSE) and Adversarial Loss. MSE ensures the generated face stays spatially aligned with the depth map, while the Adversarial Loss (from the Discriminator) forces the output to look like a realistic human face rather than a blurry average.
  • Architecture: The model uses an hourglass encoder-decoder structure. Notably, the authors avoided U-Net skip connections. They found that skip connections allowed the network to "cheat" by passing low-level info directly to the output, which hindered the model's ability to learn the complex translation between depth and color.
The training schedule showing the interaction between the Generator and Discriminator.

Datasets

The study utilized two primary RGB-D (Red, Green, Blue + Depth) datasets:

  • Pandora: Contains over 250,000 frames of 22 actors. This was used as the training set.
  • MotorMark: Contains over 30,000 frames of 35 subjects performing driving-related actions. This was used as the test set to perform cross-dataset validation, proving the model generalizes well to new environments and people.

Key Insights and Ideas

  • Perceptual Probes: The authors argue that standard metrics like L1 distance don't capture the "usefulness" of a generated image. They propose using "Perceptual Probes"—running the generated images through pre-trained models for landmark detection and attribute classification—to see if the "hallucinated" details are functionally correct.
  • Hallucination vs. Reconstruction: The network cannot "know" a person's actual eye color from a depth map. Instead, it learns to hallucinate a plausible appearance that fits the 3D structure.
  • Structural Coherence: Because depth and RGB images from these sensors are perfectly aligned, the network can rely on the underlying geometry to place features like eyes, noses, and mouths accurately.
Overview of the evaluation process using Perceptual Probes.

Key Results

The det-cGAN outperformed both standard Autoencoders and the popular pix2pix framework across several metrics:

  • Reconstruction: The model achieved lower L1 and L2 error rates compared to baselines (see Table I in the paper).
  • Attribute Preservation: A VGG-Face network fine-tuned on the CelebA dataset was able to correctly identify gender (90.3% accuracy) and whether a subject was smiling (96.25% accuracy) from the generated images.
  • Landmark Localization: Using the dLib library, the researchers found that landmark detection on generated images was nearly as accurate as on real images, achieving an L2 norm of 2.089 (lower is better), beating the Autoencoder's 2.219.
Examples of generated faces compared to the original RGB and input depth.

Limitations and Future Work

  • Fine Details: The model struggles with features that have little depth signature, such as hair texture (curly vs. straight) or thin-framed glasses. IR sensors often "see through" glass lenses, leading the network to confuse them with ocular cavities.
  • Identity: While the faces are plausible, they are not perfect "deepfakes" of the original person; the network prioritizes a realistic face over an exact identity match.
  • Future Directions: The authors suggest exploring how to manually "edit" attributes during the translation process (e.g., adding or removing a beard) and using this domain translation to augment training data for other tasks.

Summary updated

BibTeX
@inproceedings{fabbri2018domain,
  author = {Matteo Fabbri and Guido Borghi and Fabio Lanzi and Roberto Vezzani and Simone Calderara and Rita Cucchiara},
  title = {{Domain Translation with Conditional GANs: from Depth to RGB Face-to-Face}},
  booktitle = {ICPR},
  year = {2018},
  doi = {10.1109/icpr.2018.8545652},
}
Figure