Bridging Unsupervised and Supervised Depth from Focus via All-in-Focus Supervision

Ning-Hsu Wang, Ren Wang, Yu-Lun Liu, Yu-Hao Huang, Yu-Lin Chang +2 more
8/24/2021
cs.CV

Official code: albert100121/AiFDepthNet (52 stars, Python, PyTorch, last commit 2024-03-09).

Abstract

Depth estimation is a long-lasting yet important task in computer vision. Most of the previous works try to estimate depth from input images and assume images are all-in-focus (AiF), which is less common in real-world applications.

Show full abstract

On the other hand, a few works take defocus blur into account and consider it as another cue for depth estimation. In this paper, we propose a method to estimate not only a depth map but an AiF image from a set of images with different focus positions (known as a focal stack). We design a shared architecture to exploit the relationship between depth and AiF estimation. As a result, the proposed method can be trained either supervisedly with ground truth depth, or \emph{unsupervisedly} with AiF images as supervisory signals. We show in various experiments that our method outperforms the state-of-the-art methods both quantitatively and qualitatively, and also has higher efficiency in inference time.

View on arXivView PDF

Code Implementations(1)

PyTorch

Official Pytorch implementation of ICCV 2021 2020 paper "Bridging Unsupervised and Supervised Depth from Focus via All-in-Focus Supervision"

526PythonJul 25, 20212 years ago
all-in-focusblur-imagebokeh-effectcnncomputer-vision+6 more

Similar Papers

Cite this paper

@article{wang2021bridging,
  title  = {Bridging Unsupervised and Supervised Depth from Focus via All-in-Focus Supervision},
  author = {Ning-Hsu Wang and Ren Wang and Yu-Lun Liu and Yu-Hao Huang and Yu-Lin Chang and Chia-Ping Chen and Kevin Jou},
  year   = {2021},
  eprint = {2108.10843},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.10843}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.10843.svg)](https://codeofpaper.com/paper/2108.10843)

Discussion