PatchRefiner: Leveraging Synthetic Data for Real-Domain High-Resolution Monocular Metric Depth Estimation

Zhenyu Li, Shariq Farooq Bhat, Peter Wonka

Introduction

Monocular metric depth estimation—the task of predicting absolute distance from a single image—is a fundamental component of autonomous navigation, 3D reconstruction, and augmented reality. As camera technology advances toward 4K resolutions, the demand for high-fidelity depth maps has increased. However, existing models struggle to maintain both metric accuracy and high-frequency detail when scaling to high resolutions.

PatchRefiner addresses this challenge by introducing a novel framework that bridges the gap between synthetic and real-world data. By reformulating depth estimation as a refinement process and utilizing a "Detail and Scale Disentangling" (DSD) loss, the system captures the sharp details found in synthetic datasets while preserving the accurate metric scale of real-world sensors.

The Synthetic-Real Dilemma

The authors identify a critical trade-off in current depth estimation training, termed the "synthetic-real dilemma":

  1. Real-World Datasets: Data captured via LiDAR or Kinect sensors provide accurate metric scale but often suffer from low resolution, sparsity, or noise. Training on this data typically results in accurate but "blurry" depth maps that fail to capture fine object boundaries.
  2. Synthetic Datasets: Rendered environments (e.g., Unreal Engine) provide perfect, high-resolution ground truth with crisp edges. However, models trained exclusively on synthetic data often fail to generalize to the real world, leading to significant "scale shift" errors where relative depth is preserved but absolute distance is incorrect.

Existing "tile-based" methods attempt to solve the resolution limit by processing image patches, but these are often computationally expensive and struggle to balance fine-grained detail with global scale consistency.

The PatchRefiner Framework

PatchRefiner introduces two primary innovations to overcome these limitations: a residual-based refinement architecture and a disentangled loss function.

1. Refinement over Fusion

Unlike standard approaches that attempt to fuse a coarse global depth map with fine local patches, PatchRefiner treats the task as a refinement process. The framework utilizes a frozen, pre-trained "coarse" model to establish the global scene structure and metric scale. A lightweight "Refiner" module then processes high-resolution patches to predict a residual (offset). This residual is added to the coarse prediction, effectively "painting in" missing high-frequency details without disrupting the established global scale.

2. Detail and Scale Disentangling (DSD) Loss

To leverage the strengths of both synthetic and real data, the authors employ a teacher-student framework. A Teacher Model is trained on high-quality synthetic data to master the representation of sharp edges. A Student Model is then trained on real-world data using the DSD Loss, which disentangles the supervision signals:

  • Scale Accuracy: Real-world ground truth is used to enforce absolute scale via a scale-invariant log loss.
  • Detail Capture: Pseudo-labels from the synthetic-trained teacher are used to enforce sharp boundaries via ranking and scale-shift invariant losses.

This allows the student model to learn sharp boundaries from the teacher while ignoring the teacher's potentially incorrect absolute scale.

Experimental Results

The researchers evaluated PatchRefiner across several benchmarks, including UnrealStereo4K (synthetic), CityScapes (outdoor), ScanNet++ (indoor), and ETH3D (mixed).

Quantitative Performance

PatchRefiner demonstrated significant improvements over previous state-of-the-art methods like PatchFusion:

  • UnrealStereo4K: Achieved an 18.1% improvement in RMSE and a 15.7% reduction in Relative Error (REL).
  • CityScapes: Achieved a 19.2% increase in boundary recall compared to standard fine-tuning methods, proving its ability to maintain precise metric scale while improving edge definition.

Qualitative Impact

Visual analysis confirms that PatchRefiner produces significantly crisper depth maps, particularly around complex geometries such as tree branches, fences, and thin poles. Where previous models produced "halo" artifacts or blurred edges, PatchRefiner maintains sharp, distinct boundaries.

Conclusion and Future Work

PatchRefiner successfully demonstrates that synthetic data can be used to "fix" the blurry ground truth of real-world datasets. By predicting residuals and disentangling scale from detail, the framework achieves high-resolution metric depth without the typical generalization errors associated with synthetic training.

While effective, the framework's performance remains dependent on the quality of the initial coarse depth map. Future research directions include developing more efficient patch-selection strategies to reduce computational overhead and extending the framework to video depth estimation to ensure temporal consistency.

Summary updated

BibTeX
@inproceedings{li2024patchrefiner,
  author = {Zhenyu Li and Shariq Farooq Bhat and Peter Wonka},
  title = {{PatchRefiner: Leveraging Synthetic Data for Real-Domain High-Resolution Monocular Metric Depth Estimation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72855-6\_15},
}
Figure