Bokehlicious: Photorealistic Bokeh Rendering with Controllable Apertures
Tim Seizinger, Florin-Alexandru Vasluianu, Marcos V. Conde, Zongwei Wu, Radu Timofte
TL;DR
This work tackles the need for realistic, controllable Bokeh rendering without depth maps by introducing RealBokeh, a large real-world dataset with varying aperture and focal length, and Bokehlicious, an efficient end-to-end model with Aperture-Aware Attention that mimics lens physics. RealBokeh enables robust training and benchmarking, including a fixed-aperture subset RealBokeh_bin for fair comparisons. Bokehlicious achieves state-of-the-art results on conventional and aperture-controlled Bokeh benchmarks with significantly reduced compute and strong zero-shot generalization, and extends to defocus deblurring via RealDOF. The authors release code and data to encourage further research and practical applications in computational photography.
Abstract
Bokeh rendering methods play a key role in creating the visually appealing, softly blurred backgrounds seen in professional photography. While recent learning-based approaches show promising results, generating realistic Bokeh with variable strength remains challenging. Existing methods require additional inputs and suffer from unrealistic Bokeh reproduction due to reliance on synthetic data. In this work, we propose Bokehlicious, a highly efficient network that provides intuitive control over Bokeh strength through an Aperture-Aware Attention mechanism, mimicking the physical lens aperture. To further address the lack of high-quality real-world data, we present RealBokeh, a novel dataset featuring 23,000 high-resolution (24-MP) images captured by professional photographers, covering diverse scenes with varied aperture and focal length settings. Evaluations on both our new RealBokeh and established Bokeh rendering benchmarks show that Bokehlicious consistently outperforms SOTA methods while significantly reducing computational cost and exhibiting strong zero-shot generalization. Our method and dataset further extend to defocus deblurring, achieving competitive results on the RealDOF benchmark. Our code and data can be found at https://github.com/TimSeizinger/Bokehlicious
