Inverting Generative Adversarial Renderer for Face Reconstruction

Jingtan Piao, Keqiang Sun, Quan Wang, Kwan-Yee Lin, Hongsheng Li

Introduction

3D face reconstruction from a single 2D image is a fundamental task in computer vision, typically solved by optimizing 3D parameters to match the input photo via a differentiable renderer. However, traditional analytical renderers use simplified physics for lighting and reflection, creating a "domain gap" between plastic-looking computer graphics and complex real-world skin and hair. This mismatch often leads to geometric inaccuracies as the optimization process struggles to bridge the visual difference.

The Generative Adversarial Renderer (GAR)

To address the domain gap, this work introduces the Generative Adversarial Renderer (GAR). Unlike rule-based engines, GAR is a GAN-based neural renderer trained to produce high-fidelity images from two primary inputs: a face normal map (representing 3D geometry) and a latent code (representing texture, lighting, and style).

Overview of the GAR architecture and the proposed novel losses, including Normal Consistency and Contrastive Loss.

The GAR architecture incorporates a Normal Injection Module (NIM) that modulates feature maps using the input normal map, ensuring the output strictly adheres to the specified geometry. Training is performed in a self-supervised manner using a "normal consistency loss"—where a pre-trained estimator must be able to recover the original normals from the rendered image—and contrastive losses to disentangle shape from appearance.

Face Reconstruction via Renderer Inversion

The reconstruction process follows a three-step pipeline:

  1. Initialization: A Renderer Inverting Network predicts initial latent codes and 3D parameters from the input image, providing a high-quality starting point to avoid local minima.
  2. Inversion: The pre-trained GAR is "inverted" by optimizing the latent code and 3D parameters.
  3. Refinement: Gradient-based optimization fine-tunes the parameters until the GAR-rendered image matches the target photo. Because the GAR produces realistic textures, the loss function compares "apples to apples," leading to superior geometric recovery.
Qualitative results showing the original images, the GAR-rendered reconstructions, and the recovered normal maps.

Key Results and Insights

The proposed method achieves state-of-the-art accuracy on the Florence 3D Faces dataset, with a mean point-to-plane error of 0.90–0.94mm, outperforming established methods like GANFIT.

Key insights include:

  • Smooth Optimization: Learned renderers provide a smoother optimization landscape compared to analytical ones due to their larger receptive fields.
  • Disentanglement: By enforcing identity consistency across poses, the model successfully separates identity-specific shape from environmental lighting and texture.
  • Ablation: Experiments confirmed that the Normal Consistency Loss is critical; without it, the neural renderer fails to maintain geometric fidelity.

Conclusion

By replacing traditional graphics engines with an invertible neural renderer, this work effectively bridges the domain gap in 3D face reconstruction. While currently constrained by 3D Morphable Models (3DMM), the framework offers a promising path for reconstructing other complex 3D categories from single images.

Summary updated

BibTeX
@inproceedings{piao2021inverting,
  author = {Jingtan Piao and Keqiang Sun and Quan Wang and Kwan-Yee Lin and Hongsheng Li},
  title = {{Inverting Generative Adversarial Renderer for Face Reconstruction}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01536},
}
Figure