Zero-Shot Depth from Defocus

Yiming Zuo, Hongyu Wen, Venkat Subramanian, Patrick Chen, Karhan Kayan +3 more
3/27/2026
1 citation
cs.CV
transformer-attention

Official code: princeton-vl/FOSSA (62 stars, Python, BSD-3-Clause, last commit 2026-04-05).

Abstract

Depth from Defocus (DfD) is the task of estimating a dense metric depth map from a focus stack. Unlike previous works overfitting to a certain dataset, this paper focuses on the challenging and practical setting of zero-shot generalization.

Show full abstract

We first propose a new real-world DfD benchmark ZEDD, which contains 8.3x more scenes and significantly higher quality images and ground-truth depth maps compared to previous benchmarks. We also design a novel network architecture named FOSSA. FOSSA is a Transformer-based architecture with novel designs tailored to the DfD task. The key contribution is a stack attention layer with a focus distance embedding, allowing efficient information exchange across the focus stack. Finally, we develop a new training data pipeline allowing us to utilize existing large-scale RGBD datasets to generate synthetic focus stacks. Experiment results on ZEDD and other benchmarks show a significant improvement over the baselines, reducing errors by up to 55.7%. The ZEDD benchmark is released at https://zedd.cs.princeton.edu. The code and checkpoints are released at https://github.com/princeton-vl/FOSSA.

View on arXivView PDF

Code Implementations(1)

princeton-vl/FOSSAOfficial100%
BSD-3-Clause

Official code for Zero-Shot Depth from Defocus (https://arxiv.org/abs/2603.26658)

626Python, CudaMar 30, 20268 months agoBSD-3-Clause

Similar Papers

Cite this paper

@article{zuo2026zeroshot,
  title  = {Zero-Shot Depth from Defocus},
  author = {Yiming Zuo and Hongyu Wen and Venkat Subramanian and Patrick Chen and Karhan Kayan and Mario Bijelic and Felix Heide and Jia Deng},
  year   = {2026},
  eprint = {2603.26658},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.26658v1},
  journal = {ECCV 2026 2026}
}

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

Discussion