FlowPortal: Residual-Corrected Flow for Training-Free Video Relighting and Background Replacement
Wenshuo Gao, Junyi Fan, Jiangyue Zeng, Shuai Yang
TL;DR
FlowPortal addresses the challenge of training-free video relighting with background replacement by introducing a Residual-Corrected Flow that enforces Condition Consistency, ensuring perfect reconstruction when conditions are identical and faithful directional edits when they differ. It combines a Decoupled Condition Design, High-Frequency Transfer, and a masking mechanism to separate foreground relighting from background generation, achieving temporal coherence, structural fidelity, and natural illumination while remaining efficient ($V_t^{\text{edit}} = V_t^{\text{tar}} + V_t^{\text{res}}$). The approach outperforms state-of-the-art training-free and many training-based methods across video–text alignment, temporal smoothness, and detail/structure metrics, as evidenced by quantitative results and user studies. This work offers a practical, inversion-free editing pipeline for real-world video workflows and lays groundwork for broader video editing tasks beyond relighting and background replacement.
Abstract
Video relighting with background replacement is a challenging task critical for applications in film production and creative media. Existing methods struggle to balance temporal consistency, spatial fidelity, and illumination naturalness. To address these issues, we introduce FlowPortal, a novel training-free flow-based video relighting framework. Our core innovation is a Residual-Corrected Flow mechanism that transforms a standard flow-based model into an editing model, guaranteeing perfect reconstruction when input conditions are identical and enabling faithful relighting when they differ, resulting in high structural consistency. This is further enhanced by a Decoupled Condition Design for precise lighting control and a High-Frequency Transfer mechanism for detail preservation. Additionally, a masking strategy isolates foreground relighting from background pure generation process. Experiments demonstrate that FlowPortal achieves superior performance in temporal coherence, structural preservation, and lighting realism, while maintaining high efficiency. Project Page: https://gaowenshuo.github.io/FlowPortalProject/.
