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
翻译:散景渲染方法在创造专业摄影中视觉吸引力强、柔和模糊背景方面起着关键作用。尽管近期基于学习的方法显示出有希望的结果,但生成具有可变强度的真实散景仍然具有挑战性。现有方法需要额外输入,并且由于依赖合成数据而导致散景再现不真实。在本工作中,我们提出Bokehlicious,一种通过模拟物理镜头光圈的孔径感知注意力机制提供对散景强度直观控制的高效网络。为进一步解决高质量真实世界数据的缺乏问题,我们提出了RealBokeh,一个包含23,000张由专业摄影师拍摄的高分辨率(2400万像素)图像的新颖数据集,涵盖了具有不同光圈和焦距设置的多样化场景。在我们新的RealBokeh数据集和已建立的散景渲染基准上的评估表明,Bokehlicious始终优于最先进方法,同时显著降低了计算成本并展现出强大的零样本泛化能力。我们的方法和数据集进一步扩展到离焦去模糊任务,在RealDOF基准上取得了有竞争力的结果。我们的代码和数据可在https://github.com/TimSeizinger/Bokehlicious找到。