FlashReFocus: Interactive Image Refocusing in Seconds
This paper proposes FlashReFocus, a method for fast and efficient single-image refocusing that achieves high perceptual fidelity and fast rendering.
FlashReFocus is a novel approach that separates the ill-posed problem of recovering the all-in-focus image from the rendering of blur, allowing for faster and more efficient editing.
Before reading this…
Applications
- →Image editing
- →Photography
To understand this paper, make sure you know these concepts first:
- Diffusion modelsfind papers →
- Image processingfind papers →
Abstract
More Like ThisSingle-image refocusing changes the focal plane and depth of field of a photograph after capture. It is inherently interactive: users try many focal points and blur strengths on one image, so each edit should be fast and change only the blur. Recent generative methods, however, rerun large diffusion models for every edit. We observe that the two sub-problems differ in kind: recovering the all-in-focus image is ill-posed and needs a generative prior, whereas rendering blur is largely determined by depth and the focal plane. We therefore propose FlashReFocus, which runs diffusion once per photograph and renders every edit with a lightweight network. To address the ill-posed restoration, a one-step diffusion deblurrer with a decoder refiner recovers fine detail efficiently while balancing fidelity and perceptual quality. For precise control, the renderer is conditioned on an explicit defocus map and uses defocus-bias attention, which lets pixels at similar defocus share information without interference from pixels at other depths; in-focus content stays unchanged, and editing the map yields tilt-shift and two focal planes. To further test generalization to unseen cameras, we collect 3CReal, a three-camera benchmark of 89 pairs. FlashReFocus achieves the best perceptual fidelity for zero-shot bokeh rendering on EBB! and 3CReal, refocuses 148.3x faster than GenRefocus, and takes about half a second per further edit, 462x faster.