LightsOut: Diffusion-based Outpainting for Enhanced Lens Flare Removal
Shr-Ruei Tsai, Wei-Cheng Chang, Jie-Ying Lee, Chih-Hai Su, Yu-Lun Liu
TL;DR
LightsOut tackles the challenge of lens flare removal when off-frame light sources are incomplete by introducing a diffusion-based outpainting framework. The method combines a multitask regression module to predict off-frame light sources with a LoRA-finetuned diffusion inpainting model conditioned on those predictions, producing realistic outpainted scenes that provide better context for subsequent SIFR. It is designed as a plug-and-play preprocessing step that enhances existing SIFR methods without retraining them, and extensive experiments show consistent improvements across real and synthetic datasets, including challenging incomplete-light-source scenarios. The approach advances practical flare removal by explicitly modeling and reconstructing illumination context, improving both visual realism and downstream task performance, such as object detection.
Abstract
Lens flare significantly degrades image quality, impacting critical computer vision tasks like object detection and autonomous driving. Recent Single Image Flare Removal (SIFR) methods perform poorly when off-frame light sources are incomplete or absent. We propose LightsOut, a diffusion-based outpainting framework tailored to enhance SIFR by reconstructing off-frame light sources. Our method leverages a multitask regression module and LoRA fine-tuned diffusion model to ensure realistic and physically consistent outpainting results. Comprehensive experiments demonstrate LightsOut consistently boosts the performance of existing SIFR methods across challenging scenarios without additional retraining, serving as a universally applicable plug-and-play preprocessing solution. Project page: https://ray-1026.github.io/lightsout/
