DiffCamera: Arbitrary Refocusing on Images
Not on the map. Why?
Abstract (arXiv)
The depth-of-field (DoF) effect, which introduces aesthetically pleasing blur, enhances photographic quality but is fixed and difficult to modify once the image has been created. This becomes problematic when the applied blur is undesirable~(e.g., the subject is out of focus). To address this, we propose DiffCamera, a model that enables flexible refocusing of a created image conditioned on an arbitrary new focus point and a blur level. Specifically, we design a diffusion transformer framework for refocusing learning. However, the training requires pairs of data with different focus planes and bokeh levels in the same scene, which are hard to acquire. To overcome this limitation, we develop a simulation-based pipeline to generate large-scale image pairs with varying focus planes and bokeh levels. With the simulated data, we find that training with only a vanilla diffusion objective often leads to incorrect DoF behaviors due to the complexity of the task. This requires a stronger constraint during training. Inspired by the photographic principle that photos of different focus planes can be linearly blended into a multi-focus image, we propose a stacking constraint during training to enforce precise DoF manipulation. This constraint enhances model training by imposing physically grounded refocusing behavior that the focusing results should be faithfully aligned with the scene structure and the camera conditions so that they can be combined into the correct multi-focus image. We also construct a benchmark to evaluate the effectiveness of our refocusing model. Extensive experiments demonstrate that DiffCamera supports stable refocusing across a wide range of scenes, providing unprecedented control over DoF adjustments for photography and generative AI applications.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 17 of its 43 references that are in the map. First posted on arXiv 30 Sep 2025.
Builds on
17 of 43 references.
References · 17
- 2017Attention Is All You Needcited by 60,361
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,177
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
- 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flowcited by 3,700
- 2021Restormer: Efficient Transformer for High-Resolution Image Restorationcited by 1,627
- 2022Exploring CLIP for Assessing the Look and Feel of Imagescited by 991
- 2018Synthetic Depth-of-Field with a Single-Camera Mobile Phonecited by 71
- 2025MotionCanvas: Cinematic Shot Design with Controllable Image-to-Video Generationcited by 50
- 2022BokehMe: When Neural Rendering Meets Classical Renderingcited by 48
5 more
- 2019Synthetic Defocus and Look-Ahead Autofocus for Casual Videographycited by 28
- 2019SteReFo: Efficient Image Refocusing with Stereo Visioncited by 25
- 2021Stacked Deep Multi-Scale Hierarchical Network for Fast Bokeh Effect Rendering from a Single Imagecited by 18
- 2018DeepLens: Shallow Depth Of Field From A Single Imagecited by 13
- 2025Bokeh Diffusion: Defocus Blur Control in Text-to-Image Diffusion Modelscited by 10
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025Generative Refocusing: Flexible Defocus Control from a Single Imagecited by 4
- 2025Fine-grained Defocus Blur Control for Generative Image Modelscited by 1
- 2025Boosting Monocular Metric Depth Estimation via Bokeh Renderingcited by 1
- 2026AnyBokeh: Physics-Guided Any-to-Any Bokeh Editing with Optical Fingerprint Transfercited by 1
- 2026LensStyle: Learning the Optical Aesthetics for Controllable Stylized Lens Effect Renderingcited by 1
- 2026LensStyle: Learning the Optical Aesthetics for Controllable Stylized Lens Effect Rendering4 Sep 2026
- 2026AnyBokeh: Physics-Guided Any-to-Any Bokeh Editing with Optical Fingerprint Transfer30 Jun 2026
- 2025Generative Refocusing: Flexible Defocus Control from a Single Image18 Dec 2025
- 2025Boosting Monocular Metric Depth Estimation via Bokeh Rendering13 Dec 2025
- 2025Fine-grained Defocus Blur Control for Generative Image Models7 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025Learning to Refocus with Video Diffusion Models
- 2024DifuzCam: Replacing Camera Lens with a Mask and a Diffusion Model
- 2024Diffusion-based Light Field Synthesis
- 2026Diffusion Editing with Soft Mask: Pixel Level Redo of Image and Video with Adjustable Strength
- 2024Diffusing Differentiable Representations
- 2025DiffuEraser: A Diffusion Model for Video Inpainting
- 2026AReA: Adaptive Receptive-Field Attention for Efficient High-Resolution Diffusion Transformers
- 2024Diffusion-based image inpainting with internal learning