Elsevier

Contents lists available at ScienceDirect

Image and Vision Computing

journal homepage: www.elsevier.com/locate/imavis

Image and Vision Computing journal cover

ApDepth: Aiming for Precise Monocular Depth Estimation Based on Diffusion Models

Jiawei Wanga,c,d,† Mingbo Leia,c, Liang Yaoa,c Jiayi Lia,c, Tianyu Lua,c, and Yibo Chenb†,

aSchool of Computer Science and Engineering, Shenyang Jianzhu University
bSchool of Computer Science and Technology, Zhejiang Sci-Tech University
cShenyang Branch of the National Special Computer Engineering Technology Research Center
dInfiniFlow (Shanghai) Information Technology Co., Ltd.
† These authors contributed equally to this work.

Abstract

This paper presents ApDepth, a novel single-step diffusion framework for monocular depth estimation that enables fast inference while preserving fine-grained edge details. Current diffusion-based models achieve impressive generalization through iterative denoising. However, they face a critical trade-off: multi-step inference incurs prohibitive latency, whereas compressing the process into a single deterministic step can severely degrade local structural boundaries. Our model addresses this challenge by integrating a pre-trained, data-driven MDE model that provides strong semantic priors and maintains robust global structure despite the compressed diffusion process. To mitigate the inherent edge degradation, we introduce a coarse-to-fine two-stage training paradigm with two novel designs: 1) Feature Alignment via Cosine Similarity, which enriches the U-Net's structural understanding by explicitly aligning its intermediate features with an auxiliary encoder; and 2) an Iteration-Based Loss Scheduling Strategy, which initially employs spatial-domain constraints (latent MSE and pixel L1 losses) to establish an accurate global metric scale and subsequently transitions to a novel Frequency-Domain (FFT) Loss in the final training phase to explicitly recover sharp high-frequency edges. By effectively balancing inference efficiency and detail preservation, ApDepth significantly accelerates inference and achieves performance competitive with or superior to existing methods across multiple benchmarks. Code is available at https://haruko386.github.io/research/.

Qualitative comparison of RGB inputs, ApDepth predictions, and Marigold predictions, highlighting edge details.

Gallery

How it works

Fine-tuning protocol

Apdepth training scheme

In the first stage, we learn robust and generalizable representations by aligning U-Net features with high-quality semantic features from DINOv2, emphasizing global context while avoiding overfitting to low-level textures. Building on these semantic priors, the second stage focuses on depth estimation and detail refinement: it first captures global structure and scale through joint optimization, and then enhances fine details and sharp discontinuities via frequency-domain supervision, achieving both structural accuracy and high-fidelity reconstruction.

Single-Step Inference

Apdepth inference scheme

During inference, the input RGB image is first processed by a pretrained depth estimation model to generate a coarse predicted depth map. Both the RGB image and the predicted depth map are encoded into the latent space using the frozen VAE encoder to obtain the corresponding latent representations. These two latents are concatenated and fed into the Latent Diffusion U-Net, which performs only a single denoising step to generate the predicted latent representation. Finally, the latent decoder reconstructs the refined depth map from the predicted latent, producing the final output depth.

We train our model on a single NVIDIA RTX 6000 Ada Generation GPU , 20000 iters * 32 batchs for stage one and 1000 iters * 32 batchs for stage two. It takes around 6 days to complete the whole training process. We test our model on a single NVIDIA Geforce RTX 5090 GPU , result are available below.

Compared with Other Model-Driven Methods

Zero-shot monocular depth estimation benchmark comparison.
Type Method Training Data NYUv2 KITTI ETH3D ScanNet DIODE
AbsRel↓ δ1↑ AbsRel↓ δ1↑ AbsRel↓ δ1↑ AbsRel↓ δ1↑ AbsRel↓ δ1↑
Discriminative DiverseDepth320K11.787.519.070.422.869.410.988.2––
MiDaS2M11.188.523.663.018.475.212.184.6––
LeReS354K9.091.614.978.417.177.79.191.7––
Omnidata12.2M7.494.514.983.516.677.87.593.6––
HDN300K6.994.811.586.712.183.38.093.9––
DPT1.4M9.890.310.090.17.894.68.293.4––
Depth Anything V263.5M4.398.08.094.66.298.04.398.16.695.2
Generative Marigold74K5.596.49.991.66.596.06.495.110.090.7
GeoWizard280K5.296.69.792.16.496.16.195.312.089.8
DepthFM74K6.095.59.190.26.595.46.694.9––
GenPercept90K5.696.09.990.46.295.85.696.5––
Lotus54K5.396.78.592.85.997.05.995.79.892.4
DepthMaster74K5.097.28.293.75.397.45.596.7––
ApDepth (Ours)74K4.597.38.793.75.696.34.597.38.393.2

Citation

Please cite our paper if you find it useful:

@misc{wang2026apdepth,
  title  = {{ApDepth}: Aiming for Precise Monocular Depth Estimation Based on Diffusion Models},
  author = {Wang, Jiawei and Lei, Mingbo and Yao, Liang and Li, Jiayi and Lu, Tianyu and Chen, Yibo},
  year   = {2026},
  doi    = {10.2139/ssrn.7604741},
  url    = {https://doi.org/10.2139/ssrn.7604741},
  note   = {SSRN Preprint}
}