Parametric Shadow Control for Portrait Generation in Text-to-Image Diffusion Models
Haoming Cai, Tsung-Wei Huang, Shiv Gehlot, Brandon Y. Feng, Sachin Shah, Guan-Ming Su, Christopher Metzler
TL;DR
This work introduces Shadow Director, a diffusion-model–based framework that achieves intuitive, parametric shadow control during portrait generation without relying on costly real-world light-stage data. It leverages two compact estimators—the Shadow-Depth Estimator and the Identity Estimator—operating on UNet latent features and learns from a small synthetic dataset to reveal and manipulate hidden shadow information. Shadow control is enacted through test-time optimization of latent features at early denoising steps, guided by a shadow target and an identity reference, ensuring realistic shadows while preserving subject identity across diverse artistic styles. The results show effective shadow strength, placement, and lighting-direction control with strong identity preservation, highlighting a practical, resource-efficient path for shadow manipulation in diffusion models.
Abstract
Text-to-image diffusion models excel at generating diverse portraits, but lack intuitive shadow control. Existing editing approaches, as post-processing, struggle to offer effective manipulation across diverse styles. Additionally, these methods either rely on expensive real-world light-stage data collection or require extensive computational resources for training. To address these limitations, we introduce Shadow Director, a method that extracts and manipulates hidden shadow attributes within well-trained diffusion models. Our approach uses a small estimation network that requires only a few thousand synthetic images and hours of training-no costly real-world light-stage data needed. Shadow Director enables parametric and intuitive control over shadow shape, placement, and intensity during portrait generation while preserving artistic integrity and identity across diverse styles. Despite training only on synthetic data built on real-world identities, it generalizes effectively to generated portraits with diverse styles, making it a more accessible and resource-friendly solution.
