DiLightNet: Fine-grained Lighting Control for Diffusion-based Image Generation
Open Access
- 13 July 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-12
Abstract
This paper presents a novel method for exerting fine-grained lighting control during text-driven diffusion-based image generation. While existing diffusion models already have the ability to generate images under any lighting condition, without additional guidance these models tend to correlate image content and lighting. Moreover, text prompts lack the necessary expressional power to describe detailed lighting setups. To provide the content creator with fine-grained control over the lighting during image generation, we augment the text-prompt with detailed lighting information in the form of radiance hints, i.e., visualizations of the scene geometry with a homogeneous canonical material under the target lighting. However, the scene geometry needed to produce the radiance hints is unknown. Our key observation is that we only need to guide the diffusion process, hence exact radiance hints are not necessary; we only need to point the diffusion model in the right direction. Based on this observation, we introduce a three stage method for controlling the lighting during image generation. In the first stage, we leverage a standard pretrained diffusion model to generate a provisional image under uncontrolled lighting. Next, in the second stage, we resynthesize and refine the foreground object in the generated image by passing the target lighting to a refined diffusion model, named DiLightNet, using radiance hints computed on a coarse shape of the foreground object inferred from the provisional image. To retain the texture details, we multiply the radiance hints with a neural encoding of the provisional synthesized image before passing it to DiLightNet. Finally, in the third stage, we resynthesize the background to be consistent with the lighting on the foreground object. We demonstrate and validate our lighting controlled diffusion model on a variety of text prompts and lighting conditions.Keywords
All Related Versions
Funding Information
- Fundamental Research Funds for the Central Universities (226-2023-00145)
- Information Technology Center, Zhejiang University
- National Science Foundation (IIS-1909028)
- National Natural Science Foundation of China (62332015, 62227806)
This publication has 50 references indexed in Scilit:
- Null-text Inversion for Editing Real Images using Guided Diffusion Models2023
- FaceLit: Neural 3D Relightable Faces2023
- Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translation2023
- DiffusionRig: Learning Personalized Priors for Facial Appearance Editing2023
- Geometry-Aware Single-Image Full-Body Human Relighting2022
- High-Resolution Image Synthesis with Latent Diffusion Models2022
- Blended Diffusion for Text-driven Editing of Natural Images2022
- Self-supervised Outdoor Scene Relighting2020
- Learning Physics-Guided Face Relighting Under Directional Light2020
- The Unreasonable Effectiveness of Deep Features as a Perceptual Metric2018