Abstract
Portrait relighting and material editing remain challenging tasks due to the complex optical properties of human skin and the need for high-frequency lighting information. We present a deep-learning framework that decomposes a single portrait photograph into physically based components, including skin albedo, surface normals, specular roughness, and a high-frequency HDR environment map. By moving beyond Lambertian assumptions and low-resolution lighting models, our method enables high-quality, controllable face relighting and material manipulation that significantly outperforms existing state-of-the-art techniques.
Introduction
The ability to change the lighting of a face post-capture—portrait relighting—is a cornerstone of modern mobile photography and digital content creation. However, accurately modeling human skin is difficult. Skin is not a simple matte surface; it exhibits subtle reflections (specularity), varying roughness, and complex self-occlusions.
Existing methods often simplify this by assuming skin is "Lambertian" (perfectly matte) or by using Spherical Harmonics (SH) to represent lighting. While SH is effective for soft, diffuse lighting, it fails to capture the sharp highlights and hard shadows essential for realism. Furthermore, many models "bake" lighting effects into the estimated skin albedo, leading to "ghosting" artifacts when the lighting is changed.
Methodology
Our approach utilizes a three-stage neural network architecture built upon a physically based image formation model, specifically the Cook-Torrance Spatially Varying Bidirectional Reflectance Distribution Function (SVBRDF).
1. Decomposition Branch
The core of the framework takes a single input image and estimates five critical maps:
- Diffuse Albedo: The base color of the skin.
- Surface Normals: The underlying geometry of the face.
- Specular Scaling ($\rho$): The intensity of reflections.
- Roughness ($m$): The micro-surface texture.
- HDR Environment Map: A $16 \times 32$ representation of the lighting.
2. Illumination Block
To estimate high-frequency lighting from a single face, we employ a "confidence learning" approach. The network predicts 256 localized environment maps (a basis) and 256 corresponding confidence maps. These are weighted and summed to reconstruct the final HDR map.
3. Diffuse and Specular Branches
The network features dedicated branches that utilize the estimated lighting and material properties to predict separate diffuse shading and specular reflection layers. Crucially, the entire pipeline operates in linear HDR space, preserving the intensity data of bright highlights that are typically clipped in standard LDR photos.
Datasets and Training
Obtaining ground-truth data for skin roughness and HDR lighting from real-world photos is impractical. To address this, we developed a synthetic data pipeline:
- FaceScape: Provides high-quality 3D face geometry and base albedo.
- MERL/ETH Skin Reflectance Database: Supplies realistic, spatially varying statistics for skin roughness and specularity.
- Laval Indoor HDR Dataset: Offers diverse, real-world lighting environments.
- Cycles Path Tracer: We rendered a dataset of 3,500 images (2,500 training, 1,000 test) with full global illumination and self-shadowing to ensure physical accuracy.
Key Insights
- High-Frequency Lighting: We demonstrate that 2nd-order Spherical Harmonics are insufficient for realistic face modeling. High-frequency HDR maps are required to produce the sharp specular highlights that define skin texture.
- Material-Light Separation: By explicitly estimating roughness ($m$) and scaling ($\rho$), our model enables "material editing." Users can adjust these maps to simulate different skin conditions (e.g., oily vs. dry) before recombining them.
- Unbaking Highlights: Training on physically based renders allows the model to distinguish between intrinsic skin color and external reflections, preventing artifacts during relighting.
Results
We compared our model against several baselines, including SfSNet, AlbedoMM, and DPR.
- Quantitative Performance: Our method achieved significantly lower error rates (L1 and MSE) in reconstruction and shading estimation compared to SfSNet.
- Qualitative Consistency: Our model demonstrates superior "albedo consistency." When processing the same individual under different lighting conditions, it produces nearly identical albedo maps, whereas previous models' outputs were heavily influenced by the light source.
- Relighting Quality: The results exhibit sharper highlights and more accurate self-occlusion shadows than methods relying on SH lighting.
Limitations and Future Work
Despite its advancements, the model has several limitations:
- Demographic Diversity: The training data is primarily composed of Asian faces, which may affect performance on other skin tones.
- Subsurface Scattering (SSS): The current model treats skin as a surface reflection. Future iterations could integrate SSS to better model the translucency of skin, particularly in areas like ears and nostrils.
- External Occlusions: The model does not yet handle occlusions from hair, glasses, or hands.
- Render Noise: Synthetic data noise from path-tracing can occasionally impact network interpretation.
Future research will explore the integration of differentiable path tracing to handle more complex optical effects like refraction and subsurface scattering.
Summary updated