Mind The Edge: Refining Depth Edges in Sparsely-Supervised Monocular Depth Estimation

Lior Talker, Aviad Cohen, Erez Yosef, Alexandra Dana, Michael DinersteinCVPR 2024 · DOI

Introduction

Monocular Depth Estimation (MDE)—the task of predicting 3D distance from a single 2D image—is a cornerstone of modern computer vision with applications ranging from autonomous robotics to immersive Augmented Reality (AR). While current models achieve high per-pixel accuracy, they frequently struggle with depth discontinuities, or object boundaries. This often results in "edge fattening," where the depth of a foreground object "bleeds" into the background, causing significant visual artifacts in downstream applications.

The Problem: Sparse Supervision and Blurry Edges

In outdoor environments, MDE models are typically trained using LiDAR as ground truth. However, LiDAR data is inherently sparse and rarely provides a continuous silhouette of objects. Because the training signal is missing at the exact boundaries, models learn to produce smooth, blurry transitions instead of sharp edges.

Figure 5: Baseline MDE performance in an AR context, where virtual characters are placed into a real-world scene. Inaccurate depth edges lead to poor occlusion and "floating" artifacts.

In AR, these blurry edges manifest as "halos" around objects. For example, a virtual character placed behind a car might appear partially eaten by the car's depth map or seem to float incorrectly in the scene because the model cannot precisely define where the car ends and the road begins.

Methodology: The "Mind the Edge" Pipeline

To address this, the researchers propose a three-step strategy that leverages synthetic data to provide the dense edge supervision that real-world LiDAR lacks:

  1. Depth Edge Estimation (DEE) Network: The authors train a dedicated network on synthetic data (GTA-PreSIL), which offers perfect, dense depth maps. This network learns to predict the probability of a pixel being a depth edge based on RGB and sparse inputs.
  2. Pseudo-Label Generation: The trained DEE network is applied to real-world datasets like KITTI to generate "probabilistic edge maps," providing a best-guess for sharp boundaries in real scenes.
  3. MDE Training with Edge Loss (EL): The final MDE model is trained using a differentiable Edge Detection Block (EDB). This block calculates gradients perpendicular to the edge orientation, and a new "Edge Loss" forces the model to align its predicted depth gradients with the sharp pseudo-labels.

Key Insights and Benchmarking

A central insight of this work is that while synthetic and real images look different, their geometric structure is consistent. A car's silhouette in a simulation provides a valid geometric signal for a real-world car.

To evaluate their method, the authors created new benchmarks, KITTI-DE and DDAD-DE, by manually annotating high-fidelity depth edges. Standard metrics like Absolute Relative Error (ARE) are often blind to edge quality because LiDAR points rarely hit boundaries; these new benchmarks allow for precise measurement of edge localization.

Figure 6: Detailed view of edge localization. The red boxes highlight the sharp boundaries the model must learn to respect, particularly around thin structures like poles.

Results and Impact

The proposed Edge Loss (EL) was tested across several state-of-the-art MDE baselines, including Packnet-SAN and PixelFormer.

  • Sharper Boundaries: On the KITTI-DE benchmark, edge localization accuracy (AUC) jumped from 47.56% to 61.87%.
  • No Accuracy Trade-off: Crucially, sharpening the edges did not degrade overall per-pixel depth accuracy. The models became cleaner without losing their global context.
  • Improved AR Realism: Qualitative tests in AR simulations showed significantly cleaner occlusions. Virtual objects placed behind real-world vehicles appeared correctly masked, eliminating the "blurry halo" effect seen in baseline models.

Conclusion

By "minding the edge," this research demonstrates that synthetic data can effectively bridge the gap left by sparse real-world sensors. Through differentiable edge refinement and pseudo-labeling, MDE models can achieve the sharp boundaries necessary for high-fidelity spatial computing and robotics.

Summary updated

BibTeX
@inproceedings{talker2024mind,
  author = {Lior Talker and Aviad Cohen and Erez Yosef and Alexandra Dana and Michael Dinerstein},
  title = {{Mind The Edge: Refining Depth Edges in Sparsely-Supervised Monocular Depth Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.01009},
}
Figure