A fatal bug is fixed by replacing the input depth to the lensblur network with the inverse depth. Otherwise, the rendered DoF image will suffer from boundary artifacts.
This repo contains interactive evaluation code for our SIGGRAPH Asia 2018 paper. More details can be found in our project webpage English or 中文.
-
Supported OS: the source code has been tested on 64-bit Ubuntu 14.04 and 16.04 OS with python 2.7, and it should also be executable in other linux distributions.
-
Dependencies:
-
Tensorflow >= 1.8 and all its dependencies.
-
Cuda enabled GPUs
-
How to run:
- Run
python eval.py
, the input image and the corresponding depth maps will be displayed. - Select the focal point by clicking on the image and slide the slider to adjust aperture radius. Shallow depth of field effects will be rendered automatically.
If you find DeepLens useful in your research, please consider to cite our paper:
@ARTICLE{deeplens2018,
author={Wang Lijun and Shen Xiaohui and Zhang Jianming and Wang Oliver and Lin Zhe and Hsieh Chih-Yao and Kong Sarah and Lu Huchuan},
title={DeepLens: Shallow Depth of Field from a Single Image},
journal={ACM Trans. Graph. (Proc. SIGGRAPH Asia)},
year={2018},
pages = {6:1-6:11},
volume = {37},
number = {6}
}