RelightVid: Temporal-Consistent Diffusion Model for Video Relighting

Ye Fang, Zeyi Sun, Shangzhan Zhang, Tong Wu, Yinghao Xu, Pan Zhang, Jiaqi Wang, Gordon Wetzstein, Dahua LinarXiv 2025 · DOI

TL;DR

RelightVid is a novel diffusion model that enables temporally consistent relighting of videos using various conditions like text prompts, background videos, or HDR environment maps. It addresses the challenges of video relighting by introducing a new dataset and temporal attention mechanisms, achieving high-quality results without requiring complex intrinsic decomposition of the scene.

What Problem Does This Paper Address?

The ability to relight videos – changing the lighting conditions of foreground subjects as if they were filmed under different lighting – has immense potential in filmmaking, gaming, and augmented reality. However, existing methods struggle with several key challenges:

  • Temporal Consistency: Applying image relighting techniques frame-by-frame to videos often results in flickering or inconsistent lighting across frames, breaking the illusion of realism.
  • Data Scarcity: Creating large-scale datasets of paired video relighting data (original and relit versions) is difficult, especially for dynamic scenes and varied lighting.
  • Input Flexibility: Many methods require complex inputs like detailed scene geometry or HDR environment maps, limiting their practical use. Users often prefer simpler inputs like text descriptions or reference background videos.
  • Generalization: Existing techniques are often limited to specific subjects, like portraits, and struggle with arbitrary objects or complex dynamic scenarios.

This paper aims to bridge this gap by developing a flexible and temporally consistent video relighting framework that can handle diverse input conditions.

Methods

RelightVid builds upon the success of diffusion models for image editing and introduces several key innovations:

  • Foundation Model: It starts with a pre-trained 2D image relighting diffusion model (IC-Light) and "inflates" its architecture into a 3D U-Net to handle video tensors with temporal dimensions. This leverages existing image relighting priors.
  • Temporal Attention: To ensure temporal consistency, temporal attention layers are integrated into the 3D U-Net. During training, spatial layers are frozen, while temporal layers are fine-tuned, preserving the image editing capabilities while enabling video-level coherence.
  • Multi-Modal Conditioning: RelightVid supports relighting based on:
  • Background Video: The model takes a background video as input to guide the relighting of the foreground.
  • Text Prompts: Similar to text-to-image models, users can provide textual descriptions of desired lighting.
  • HDR Environment Maps: For more precise control, HDR environment maps can be used. The model uses VAE encoders for video inputs and a CLIP text encoder for text prompts, integrating these conditions via cross-attention mechanisms.

  • Illumination-Invariant Ensemble (IIE): To improve robustness against variations in the input video's brightness, an IIE strategy is employed. This involves creating multiple augmented versions of the input video with different brightness scaling factors and averaging their denoising predictions. This helps preserve albedo and reduce undesirable variations.

Datasets

The paper introduces LightAtlas, a comprehensive dataset designed to address the data scarcity issue for video relighting. LightAtlas is generated using a two-pronged approach:

  • In-the-wild videos: Real-world videos are augmented using existing image relighting techniques (like IC-Light), object matting, and video inpainting to create relit foregrounds and background videos. Text descriptions are generated using GPT-4V.
  • 3D rendered data: To provide precise control and handle extreme lighting conditions, videos are rendered from 3D assets (from Objaverse) and HDR environment maps (from Poly Haven). This synthetic data complements the real-world data.

Key Insights and Ideas

  • Leveraging Image Priors for Video: Inflating a 2D image diffusion model into a 3D U-Net with temporal attention is an effective strategy for video relighting, allowing the reuse of powerful image-based priors.
  • Temporal Attention is Crucial: Simply applying image models frame-by-frame is insufficient for video. Integrating temporal attention layers is key to achieving smooth, consistent lighting across frames.
  • Multi-Modal Flexibility is Key: Supporting text, background video, and HDR maps makes the relighting process more accessible and versatile for different user needs and scenarios.
  • Data Augmentation is Essential: The combination of in-the-wild and synthetic data, with careful augmentation pipelines, is vital for training robust video relighting models that can handle diverse conditions.
  • Illumination Invariance for Robustness: The IIE strategy demonstrates that making the model robust to input brightness variations significantly improves the preservation of foreground albedo and overall relighting quality.

Key Results

  • Qualitative Improvements: RelightVid produces visually appealing and temporally consistent relighting results across various conditions (text, background video, HDR). Figures in the paper showcase impressive transformations, maintaining subject identity and albedo.
  • Quantitative Performance: Tables in the paper show RelightVid outperforming baseline methods (e.g., per-frame IC-Light, TokenFlow, AnyV2V) across metrics like PSNR, SSIM, LPIPS, and R-Motion Smoothness. For instance, in text-conditioned relighting, RelightVid achieved a higher R-Motion Smoothness score (1.683) compared to baselines (e.g., 1.965 for TokenFlow).
  • User Preference: User studies indicate a strong preference for RelightVid's results, particularly in terms of video smoothness and lighting rationality.

Limitations and Future Work

  • Computational Cost: While not explicitly detailed as a limitation, diffusion models are generally computationally intensive, and extending them to video further increases this demand.
  • Potential for Blurring with IIE: The paper notes that increasing the number of augmented inputs in the IIE strategy might lead to an average blurring effect, potentially impacting overall performance.
  • Future Directions: The authors suggest that RelightVid can serve as a versatile tool for video editing and inspire future research in video diffusion models for generative tasks and reverse rendering. The framework's flexibility opens doors for exploring more complex editing scenarios and further improving temporal consistency.

Summary updated

BibTeX
@misc{fang2025relightvid,
  author = {Ye Fang and Zeyi Sun and Shangzhan Zhang and Tong Wu and Yinghao Xu and Pan Zhang and Jiaqi Wang and Gordon Wetzstein and Dahua Lin},
  title = {{RelightVid: Temporal-Consistent Diffusion Model for Video Relighting}},
  year = {2025},
  eprint = {2501.16330},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.16330},
}
Figure