Controllable Light Diffusion for Portraits

David Futschik, Kelvin Ritland, James Vecore, Sean Fanello, Sergio Orts-Escolano, Brian Curless, Daniel Sýkora, Rohit Pandey · DOI

Abstract

Professional portraiture often relies on physical diffusers or "scrims" to soften harsh lighting. This paper introduces a learning-based framework for "light diffusion," a method that modifies the quality of existing illumination in a portrait without replacing the entire lighting environment. By utilizing a two-stage architecture and a novel application of the Gini coefficient to measure light inequality, the model provides controllable softening of shadows and specular highlights. The approach demonstrates superior performance in maintaining background consistency and improving downstream tasks like face parsing and albedo estimation.

Introduction

Capturing a high-quality portrait often depends on the quality of light. In professional settings, photographers use scrims—large translucent sheets—to break up harsh, direct light into a soft, flattering glow. Without such equipment, outdoor portraits frequently suffer from "harsh" lighting, characterized by deep, unflattering shadows and bright, oily-looking specular highlights on the skin.

While several AI-based portrait relighting methods exist, they typically attempt to replace the entire lighting environment. This is a massive computational challenge that often results in portraits looking "pasted in" or inconsistent with their original backgrounds. This research proposes a different approach: light diffusion. Instead of replacing the light, the model modifies the quality of the existing light, acting as a digital scrim that preserves the original scene's context while fixing its flaws.

Methodology

The authors treat light diffusion as a controllable image-to-image translation task. Their framework consists of several key components designed to ensure both realism and user control.

Two-Stage Architecture

Rather than using a single end-to-end network, the system employs a sequence of specialized modules. The first network extracts specular and shadow maps from the input image. These maps are then fed into a second network, the Parametric Diffusion Net, which takes the original image and a user-defined "diffusion parameter" to produce the final, softened result.

The Gini Coefficient for Light

To make the diffusion effect controllable, the researchers needed a standardized way to measure light "harshness." They adapted the Gini coefficient—a metric traditionally used in economics to measure wealth inequality—to quantify the inequality of light distribution in an environment map. This allows users to adjust a slider from 0 (no change) to 1 (fully diffuse), providing a normalized, absolute measure of light quality.

Synthetic Shadow Augmentation

Training these models requires ground truth data (the same subject in the same pose under different lighting). While the researchers utilized Light Stage data, such datasets often lack complex "external" shadows, such as those cast by trees or hats. To solve this, they developed a novel method to synthetically project shadows onto 3D face models. This process includes a heuristic for subsurface scattering—the subtle red glow seen at the edges of shadows on skin—making the training data significantly more realistic for in-the-wild applications.

Results and Insights

The model was evaluated using both high-quality Light Stage scans and a curated "in-the-wild" dataset of 282 diverse portraits taken in challenging real-world conditions.

  • Qualitative Superiority: The model successfully removes harsh "nose shadows" and forehead highlights that previous state-of-the-art methods struggled to address. By focusing on diffusion rather than relighting, the model maintains the "vibe" of the original photo while improving its aesthetic quality.
  • Quantitative Performance: In ablation studies, the full architecture (including shadow and specular maps) achieved significantly lower error rates (MAE of 0.0098) compared to models trained without shadow augmentation.
  • Albedo Robustness: By repeatedly applying the diffusion model until the lighting becomes perfectly uniform, the system can estimate the subject's albedo (true surface color). This method proved more robust than existing techniques, particularly in avoiding "clothing discoloration" where AI mistakenly interprets dark fabric as a deep shadow.

Downstream Benefits

Light diffusion serves as an effective pre-processing step for other computer vision tasks. The paper demonstrates that softening harsh lighting significantly improves the accuracy of face parsing (segmenting facial features) and normal estimation (mapping the 3D shape of the face), as the softened images reduce the interference caused by high-contrast shadows.

Limitations and Future Work

Despite its success, the model has specific edge cases. It occasionally mistakes dark facial hair for a shadow and attempts to lighten it. It also struggles with dark accessories, such as sunglasses, and can find it difficult to perfectly recover data from "blown out" specular highlights where the camera sensor was saturated. Future research may involve integrating explicit 3D geometry or temporal consistency to adapt the method for video processing.

Summary updated

BibTeX
@misc{futschik2023controllable,
  author = {David Futschik and Kelvin Ritland and James Vecore and Sean Fanello and Sergio Orts-Escolano and Brian Curless and Daniel Sýkora and Rohit Pandey},
  title = {{Controllable Light Diffusion for Portraits}},
  year = {2023},
  eprint = {2305.04745},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.04745},
}
Figure