Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

DeepLens: Shallow Depth Of Field From A Single Image

About

We aim to generate high resolution shallow depth-of-field (DoF) images from a single all-in-focus image with controllable focal distance and aperture size. To achieve this, we propose a novel neural network model comprised of a depth prediction module, a lens blur module, and a guided upsampling module. All modules are differentiable and are learned from data. To train our depth prediction module, we collect a dataset of 2462 RGB-D images captured by mobile phones with a dual-lens camera, and use existing segmentation datasets to improve border prediction. We further leverage a synthetic dataset with known depth to supervise the lens blur and guided upsampling modules. The effectiveness of our system and training strategies are verified in the experiments. Our method can generate high-quality shallow DoF images at high resolution, and produces significantly fewer artifacts than the baselines and existing solutions for single image shallow DoF synthesis. Compared with the iPhone portrait mode, which is a state-of-the-art shallow DoF solution based on a dual-lens depth camera, our method generates comparable results, while allowing for greater flexibility to choose focal points and aperture size, and is not limited to one capture setup.

Lijun Wang, Xiaohui Shen, Jianming Zhang, Oliver Wang, Zhe Lin, Chih-Yao Hsieh, Sarah Kong, Huchuan Lu• 2018

Related benchmarks

TaskDatasetResultRank
Bokeh RenderingBLB Level 4 Blender 2.93 (test)
PSNR29.3
10
Bokeh RenderingBLB Level 5 Blender 2.93 (test)
PSNR28.68
10
Bokeh RenderingBLB Level 1 Blender 2.93 (test)
PSNR33.68
10
Bokeh RenderingBLB Level 3 Blender 2.93 (test)
PSNR30.16
10
Bokeh RenderingBLB Level 2 Blender 2.93 (test)
PSNR31.43
10
Bokeh RenderingEBB400
PSNR23.46
6
Bokeh RenderingSynthetic Benchmark
RMSE0.0461
5
Bokeh RenderingIPB (test)
Good Outcome Rate26.3
4
Showing 8 of 8 rows

Other info

Follow for update