FocDepthFormer: Transformer with latent LSTM for Depth Estimation from Focal Stack

Xueyang Kang, Fengze Han, Abdur R. Fayjie, Patrick Vandewalle, Kourosh Khoshelham +1 more
10/17/2023
cs.CVcs.AIeess.IV
transformer-attention

No confident code implementation found for this paper.

Abstract

Most existing methods for depth estimation from a focal stack of images employ convolutional neural networks (CNNs) using 2D or 3D convolutions over a fixed set of images. However, their effectiveness is constrained by the local properties of CNN kernels, which restricts them to process only focal stacks of fixed number of images during both training and inference.

Show full abstract

This limitation hampers their ability to generalize to stacks of arbitrary lengths. To overcome these limitations, we present a novel Transformer-based network, FocDepthFormer, which integrates a Transformer with an LSTM module and a CNN decoder. The Transformer's self-attention mechanism allows for the learning of more informative spatial features by implicitly performing non-local cross-referencing. The LSTM module is designed to integrate representations across image stacks of varying lengths. Additionally, we employ multi-scale convolutional kernels in an early-stage encoder to capture low-level features at different degrees of focus/defocus. By incorporating the LSTM, FocDepthFormer can be pre-trained on large-scale monocular RGB depth estimation datasets, improving visual pattern learning and reducing reliance on difficult-to-obtain focal stack data. Extensive experiments on diverse focal stack benchmark datasets demonstrate that our model outperforms state-of-the-art approaches across multiple evaluation metrics.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kang2023focdepthformer,
  title  = {FocDepthFormer: Transformer with latent LSTM for Depth Estimation from Focal Stack},
  author = {Xueyang Kang and Fengze Han and Abdur R. Fayjie and Patrick Vandewalle and Kourosh Khoshelham and Dong Gong},
  year   = {2023},
  eprint = {2310.11178},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.11178v3}
}

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/2310.11178.svg)](https://codeofpaper.com/paper/2310.11178)

Discussion