You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and 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!
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},
}
About
Official Code and Dataset repository of Bokehlicious: Photorealistic Bokeh Rendering with Controllable Apertures