English

Fine-grained Defocus Blur Control for Generative Image Models

Computer Vision and Pattern Recognition 2025-12-15 v2

Abstract

Current text-to-image diffusion models excel at generating diverse, high-quality images, yet they struggle to incorporate fine-grained camera metadata such as precise aperture settings. In this work, we introduce a novel text-to-image diffusion framework that leverages camera metadata, or EXIF data, which is often embedded in image files, with an emphasis on generating controllable lens blur. Our method mimics the physical image formation process by first generating an all-in-focus image, estimating its monocular depth, predicting a plausible focus distance with a novel focus distance transformer, and then forming a defocused image with an existing differentiable lens blur model. Gradients flow backwards through this whole process, allowing us to learn without explicit supervision to generate defocus effects based on content elements and the provided EXIF data. At inference time, this enables precise interactive user control over defocus effects while preserving scene contents, which is not achievable with existing diffusion models. Experimental results demonstrate that our model enables superior fine-grained control without altering the depicted scene.

Keywords

Cite

@article{arxiv.2510.06215,
  title  = {Fine-grained Defocus Blur Control for Generative Image Models},
  author = {Ayush Shrivastava and Connelly Barnes and Xuaner Zhang and Lingzhi Zhang and Andrew Owens and Sohrab Amirghodsi and Eli Shechtman},
  journal= {arXiv preprint arXiv:2510.06215},
  year   = {2025}
}

Comments

Project link: https://www.ayshrv.com/defocus-blur-gen

R2 v1 2026-07-01T06:22:07.257Z