Learning to Refocus with Video Diffusion Models
SaiKiran Tedla, Zhoutong Zhang, Xuaner Zhang, Shumian Xin
TL;DR
This work tackles the problem of post-capture refocusing from a single defocused image by leveraging video diffusion priors to generate a full focal stack as a coherent video sequence. It reframes refocusing as a multi-frame generation task and introduces position-aware modified classifier-free guidance to produce realistic focal stacks in one pass. A large-scale, real-world focal stack dataset of 1,637 iPhone captures is released to support training and benchmarking, and the method demonstrates strong perceptual quality, robustness, and cross-device generalization, enabling downstream DoF editing and motion deblurring. The approach advances practical, accessible refocusing capabilities for everyday photography and opens avenues for further improvements with larger-aperture data and sensor-informed conditioning.
Abstract
Focus is a cornerstone of photography, yet autofocus systems often fail to capture the intended subject, and users frequently wish to adjust focus after capture. We introduce a novel method for realistic post-capture refocusing using video diffusion models. From a single defocused image, our approach generates a perceptually accurate focal stack, represented as a video sequence, enabling interactive refocusing and unlocking a range of downstream applications. We release a large-scale focal stack dataset acquired under diverse real-world smartphone conditions to support this work and future research. Our method consistently outperforms existing approaches in both perceptual quality and robustness across challenging scenarios, paving the way for more advanced focus-editing capabilities in everyday photography. Code and data are available at https://learn2refocus.github.io
