Abstract
This paper introduces an end-to-end deep learning architecture designed to realistically relight human faces from a single image under strong directional lighting. By combining a physics-based diffuse rendering stage with a learned non-diffuse residual, the proposed model successfully captures complex lighting effects—such as hard cast shadows and specular highlights—that typically challenge traditional relighting methods.
Introduction
In Augmented Reality (AR), telepresence, and visual effects, seamlessly inserting a captured object into a new environment requires matching the virtual lighting to the real-world scene. This "relighting" process is notoriously difficult for faces due to their complex reflectance properties, including subsurface scattering and specularities, and the human eye's extreme sensitivity to unnatural facial rendering.
Previous approaches generally fall into two categories: physics-based models that rely on simplified assumptions (like purely diffuse surfaces or low-frequency lighting) and pure image-to-image neural networks that lack physical constraints. This research bridges the gap by blending physical rendering equations with deep learning to handle harsh, directional light from a single input image.
Methodology
The authors propose a hybrid "physics-guided" neural architecture that splits the relighting task into two distinct stages:
- Stage 1: Diffuse Rendering. A U-Net extracts intrinsic image components—specifically surface normals and albedo. Using the target light direction, the network calculates shading to generate a purely diffuse render.
- Stage 2: Non-Diffuse Residual. To account for non-Lambertian effects, a second network predicts a non-diffuse residual (for specular highlights and subsurface scattering) and a binary visibility map to handle cast shadows.
The final image is composited by adding the residual to the diffuse render and masking it with the visibility map. The entire pipeline is trained end-to-end, with intermediate layers guided by ground-truth data.
Experimental Setup and Datasets
To train and evaluate the model, the authors collected a novel portrait dataset using a calibrated multi-view light-stage. They captured 21 subjects with various expressions and poses using 6 cameras and 32 individually controlled white LED lights. This setup yielded nearly 3 million relighting pairs. Photometric Stereo (PMS) was used to extract ground-truth albedo, normals, and shading to supervise the network's intrinsic layers.
Key Results and Discussion
The proposed model outperformed baselines like SfSNet and standard pix2pix translation networks. When the source illumination is known, the model achieved a structural dissimilarity (DSSIM) error of 0.1618, compared to 0.1840 for SfSNet.
Key Insights:
- Hybrid Modeling: Explicitly modeling the diffuse component ensures physical plausibility, while the residual network handles complex effects that are computationally heavy to model parametrically.
- Shadow Masking: Explicitly modeling light visibility via a binary mask is more effective for cast shadows than asking a network to resynthesize the area through a residual.
- Loss Functions: Training intrinsic layers with DSSIM loss led to better generalization than standard L1 or L2 losses.
Conclusion and Future Work
The model successfully generates sharp cast shadows and realistic specular highlights, generalizing well to "in the wild" portraits. However, it still struggles when the input image contains deep, dark shadows where the camera sensor captures mostly noise. Future work includes developing dedicated infilling methods to hallucinate missing details in these regions and experimenting with flash/non-flash pairs to better isolate ambient illumination.
Summary updated