One Look is Enough: Seamless Patchwise Refinement for Zero-Shot Monocular Depth Estimation on High-Resolution Images

Byeongjun Kwon, Munchurl Kim

TL;DR

This paper introduces "Patch Refine Once" (PRO), a novel framework for zero-shot monocular depth estimation on high-resolution images. PRO tackles the common issues of depth discontinuity and blurred edges by proposing "Grouped Patch Consistency Training" (GPCT) and "Bias Free Masking" (BFM), achieving state-of-the-art accuracy with significantly faster inference times.

What Problem Does This Paper Address?

Estimating depth from a single monocular image is a crucial task for applications like autonomous driving and robotics. While zero-shot depth estimation (DE) models have shown impressive generalization capabilities, they struggle with high-resolution images. This is primarily due to a mismatch between the low-resolution images these models are typically trained on and the high-resolution images encountered during inference. Processing high-resolution images directly leads to prohibitive memory consumption, while downsampling them to match training resolutions results in a loss of fine details and blurred edges.

Existing patch-based methods attempt to mitigate this by processing images in smaller patches. However, these methods often introduce "depth discontinuity artifacts" at the boundaries between patches when reassembling the final depth map. Furthermore, to achieve fine-grained depth details, many methods rely on synthetic datasets, which can lead to poor generalization to real-world data due to domain gaps. This paper aims to address these limitations by enabling accurate, seamless depth estimation on high-resolution images without sacrificing efficiency or generalization.

Methods

The proposed "Patch Refine Once" (PRO) framework consists of two key innovations:

  • Grouped Patch Consistency Training (GPCT): This strategy enhances test-time efficiency and reduces depth discontinuity artifacts. Instead of processing individual patches, GPCT groups four overlapping patches together and enforces a consistency loss on their overlapping regions within a single backpropagation step. This ensures smoother transitions between patches compared to prior methods that only considered pairs of adjacent patches. Crucially, this training strategy allows for a single refinement pass per patch at inference time ("One Look").
  • Bias Free Masking (BFM): This technique improves generalization to real-world datasets, especially when training on synthetic data that may contain biases. BFM leverages the prior knowledge of a pretrained zero-shot MDE model to identify and mask out unreliable regions in the training data. These unreliable regions are typically where the coarse depth prediction and ground truth depth significantly deviate, often due to inaccuracies in synthetic datasets (e.g., transparent objects). By selectively applying supervision only to reliable regions, BFM prevents the model from overfitting to dataset-specific biases.

The overall PRO pipeline involves estimating a coarse depth map from the resized input image, then using a residual prediction network to refine individual patches. The fusion module within this network integrates features from the coarse depth map and the patch itself.

Datasets

The paper uses the following datasets:

  • Training: UnrealStereo4K: A synthetic dataset providing 4K resolution stereo images with pixel-wise GT disparity labels. The authors note that this dataset contains inaccuracies, particularly for transparent objects, which BFM is designed to address.
  • Evaluation:
    • Booster: High-resolution indoor images with specular and transparent surfaces.
  • ETH3D: High-resolution indoor and outdoor images with GT depth captured by LiDAR.
  • Middlebury 2014: High-resolution indoor images with dense ground truth disparity maps.
  • NuScenes: An autonomous driving dataset providing multi-directional camera images with depth from LiDAR and radar.
  • DIS-5K: A high-resolution image segmentation dataset used for evaluating edge accuracy.

Key Insights and Ideas

  • The "One Look" Philosophy: The core idea is to achieve high-quality depth refinement in a single pass per patch at inference time, significantly boosting efficiency. This contrasts with previous patch-based methods that often required test-time ensembling of multiple patches.
  • Leveraging Coarse Predictions for Masking: Using the coarse depth prediction from a pretrained model to identify unreliable regions in synthetic training data is a clever way to improve generalization without discarding valuable training data.
  • Grouped Patches for Smoother Boundaries: Enforcing consistency across four overlapping patches simultaneously, rather than just pairs, provides a stronger supervision signal and leads to demonstrably smoother depth transitions at patch boundaries.
  • Addressing Synthetic Data Biases: The BFM strategy directly tackles the common problem of synthetic datasets introducing biases that hinder real-world performance, particularly for challenging surfaces like transparent objects.

Key Results

  • State-of-the-Art Performance: PRO achieves state-of-the-art results across multiple zero-shot evaluation datasets (Booster, ETH3D, Middlebury 2014, NuScenes) in terms of accuracy metrics like Absolute Relative Error (AbsRel) and $\delta_1$.
  • Significant Speedup: PRO offers a substantial inference speedup, being up to 12x faster than PatchRefiner with 177 patches and significantly faster than other patch-based methods.
  • Reduced Discontinuities: Qualitative results show that PRO produces depth maps with minimal depth discontinuity artifacts along patch boundaries, a common issue in other patch-based methods.
  • Improved Generalization: The BFM component leads to a notable improvement (e.g., 9.5% in AbsRel on Booster) on datasets with transparent objects, demonstrating better generalization from synthetic to real-world data.
  • Consistency Improvement: GPCT leads to a significant improvement in consistency error (CE), showing its effectiveness in maintaining coherence between independently processed patches.

Limitations and Future Work

  • Dataset Specificity of BFM: While BFM is effective for synthetic datasets with known biases (like UnrealStereo4K), its applicability to other types of dataset biases might require further investigation.
  • Overlap Size Optimization: The paper notes that while increasing overlap generally reduces consistency error, there's an optimal point, beyond which performance can degrade. Further exploration into adaptive overlap strategies could be beneficial.
  • Generalizability of Base Models: The performance of PRO is dependent on the quality of the pretrained zero-shot MDE model used. Future work could explore how PRO integrates with even more advanced or diverse base models.
  • Further Efficiency Gains: While PRO is already efficient, exploring even more streamlined patch processing or fusion techniques could lead to further speed improvements.

Summary updated

BibTeX
@inproceedings{kwon2025one,
  author = {Byeongjun Kwon and Munchurl Kim},
  title = {{One Look is Enough: Seamless Patchwise Refinement for Zero-Shot Monocular Depth Estimation on High-Resolution Images}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure