Bokehlicious
[ICCV 2025 Highlight] Bokehlicious: Photorealistic Bokeh Rendering with Controllable Apertures. Official Code and Dataset
Install / Use
/learn @TimSeizinger/BokehliciousREADME
Bokehlicious: Photorealistic Bokeh Rendering with Controllable Apertures (ICCV 2025)
Project Page
Tim Seizinger, Florin-Alexandru Vasluianu, Marcos V. Conde, Zongwei Wu, Radu Timofte
Computer Vision Lab , CAIDAS, University of Wurzburg, Germany
Official Code and Dataset repository of Bokehlicious: Photorealistic Bokeh Rendering with Controllable Apertures
TLDR; We are the first method that renders photorealistic Bokeh in a controllable way using neural networks
<p align="center"> <img src="https://github.com/user-attachments/assets/5b23014d-6cbb-40eb-9752-61b97ead73b3" width="30%"> </p>Updates:
22.1.2026:
In collaboration with NTIRE (New Trends in Image Restoration and Enhancement) Workshop @ CVPR 2026 we are hosting a Challenge on Controllable Aperture Bokeh Rendering! The goal is to beat our Baseline method from this repository, with the top teams invited to present their solution at NTIRE @ CVPR 2026
Sign up here: https://www.codabench.org/competitions/12764/
26.1.2026
This repo now includes a script (submit_ntire.py) for easy submission of your results to the NTIRE 2026 Challenge on Controllable Bokeh Rendering!
NTIRE related setup instructions can be found in submit_ntire.py.
Installation
git clone https://github.com/TimSeizinger/Bokehlicious.git
cd Bokehlicious
pip install -r requirements.txt
Usage
Due to GitHub file size limits, if you want to use any of the large model checkpoints, don't forget to unpack the .zpaq archives!
predict.py lets you run Bokehlicious on a single image. For example:
python predict.py -img_path ./examples/collie.jpg -size small -av 2.8
Here -img_path is the path to the image you want to render, -size is the size of the model you want to use (small or large) and -av is the aperture f-stop to control the strength of bokeh (between 2.0 and 20.0).
Evaluation
This Repository includes evaluation scripts for Bokeh Rendering on our new RealBokeh dataset, as well as EBB! Val294 and EBB400.
Before running the evaluation script you need to download the test set of RealBokeh and copy it to the ./dataset/RealBokeh folder. The same applies to EBB! Val294 (./dataset/EBB_Val294) and EBB400 (./dataset/EBB400).
To run the evaluation script use:
python evaluate.py -dataset RealBokeh -size small --save_outputs
Here -dataset is the dataset you want to evaluate on (RealBokeh, RealBokeh_bin, EBB_Val294, EBB400), -size is the size of the model you want to use (small or large) and --save_outputs is a flag to save the rendered images.
RealBokeh Dataset
You can find our RealBokeh Dataset on Huggingface!
Contact and License
If you would like to use this code or dataset for commercial purposes, check the license and contact us. Feel free to contact us for other inquiries and collaborations.
{tim.seizinger, marcos.conde}[at]uni-wuerzburg.de
Citation
If you find our work useful for your research work please cite:
@inproceedings{seizinger2025bokehlicious,
author = {Seizinger, Tim and Vasluianu, Florin-Alexandru and Conde, Marcos and Wu, Zongwei and Timofte, Radu},
title = {Bokehlicious: Photorealistic Bokeh Rendering with Controllable Apertures},
booktitle = {ICCV},
year = {2025},
}
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
