Monocular Depth Estimation Using Multi-Scale Continuous CRFs as Sequential Deep Networks

Dan Xu, Elisa Ricci, Wanli Ouyang, Xiaogang Wang, Nicu Sebe

TL;DR

This paper introduces a novel framework for monocular depth estimation that fuses multi-scale information from a CNN using Continuous Conditional Random Fields (CRFs). By implementing mean-field inference as a sequence of neural network layers, the authors enable end-to-end training of a structured graphical model that produces sharper, more accurate depth maps than traditional fusion methods.

What Problem Does This Paper Address?

Estimating the 3D depth of a scene from a single 2D RGB image (monocular depth estimation) is a classic "ill-posed" problem in computer vision. While deep learning has made massive strides here, standard Convolutional Neural Networks (CNNs) often struggle with a trade-off: global layers capture the overall layout but lose fine details, while local layers capture edges but lack global context.

Existing methods usually try to "fuse" these different scales using simple tricks like concatenating feature maps or taking weighted averages. However, these methods don't explicitly model the structural relationships between pixels or across different resolutions. The authors aim to bridge this gap by using a structured graphical model—a CRF—to perform the fusion in a mathematically principled way.

Methods

The core innovation is the Multi-Scale Continuous CRF module, which sits on top of a "front-end" CNN (like VGG or ResNet).

  1. Side Outputs: The front-end CNN produces depth predictions at multiple intermediate layers (scales).
  2. Continuous CRF: Unlike standard CRFs used for discrete tasks like semantic segmentation, this model handles continuous values (depth). It uses an energy function that penalizes depth inconsistencies between neighboring pixels with similar appearances and between different scales.
  3. Two Architectures:
    • Multi-scale Unified CRF: A single, complex graphical model where all scales are interconnected and optimized simultaneously.
  4. Multi-scale Cascade CRF: A sequence of CRFs where the refined output of a coarse scale serves as the input for the next, finer scale.
  5. C-MF Blocks: To make this trainable, the authors reformulated the Mean-Field (MF) inference—the algorithm used to solve the CRF—into a series of CNN operations. These "C-MF blocks" allow the entire system to be trained end-to-end via standard backpropagation.

Datasets

The authors evaluated their model on three major benchmarks:

  • NYU Depth V2: Indoor scenes captured with a Microsoft Kinect (120K pairs).
  • Make3D: Outdoor static scenes with high-resolution depth maps.
  • KITTI: A large-scale dataset of outdoor driving scenes captured with LiDAR.

Key Insights and Ideas

  • Structured Fusion > Simple Fusion: The paper proves that using a graphical model to "reason" about how scales should relate is significantly more effective than just stacking or averaging them.
  • The Power of Message Passing: The authors experimented with different ways to pass information between scales. They found that an "All-to-one" structure—where every coarse scale sends information directly to the finest scale—performed best, as it allows the final prediction to absorb the most complementary information.
  • Differentiable Inference: By turning a classical optimization algorithm (Mean-Field) into a neural network block, they demonstrate that we don't have to choose between the interpretability of graphical models and the learning power of deep networks.

Key Results

The proposed method established new state-of-the-art (SOTA) results across all three datasets at the time of publication.

  • NYU Depth V2: Using a ResNet-50 backbone, they achieved a Mean Relative Error (rel) of 0.108, significantly outperforming previous SOTA models like Laina et al. (0.129) and Eigen et al. (0.158).
  • Qualitative Sharpness: Visually, the depth maps produced by this method are much "crisper." They preserve thin structures (like chair legs or poles) and sharp depth transitions that are typically blurred out by other CNN-based methods.
  • Consistency: The CRF-based fusion consistently improved performance regardless of which front-end CNN (AlexNet, VGG, or ResNet) was used.

Limitations and Future Work

  • Computational Overhead: The "Unified" CRF model is more accurate but computationally heavier than the "Cascade" version. Even with optimized implementations, the inference takes about 1.02 to 1.45 seconds per image on a high-end GPU, which might be too slow for real-time robotics applications.
  • Feature-Level Fusion: Currently, the CRF operates on the "score level" (the depth predictions). The authors suggest that integrating "feature-level" information (the raw CNN features) into the CRF could further boost accuracy.
  • Multi-Task Learning: A promising direction is to use this framework for joint tasks, such as simultaneously predicting depth and semantic labels, allowing the two tasks to provide mutual constraints within the CRF.

Summary updated

BibTeX
@article{xu2019monocular,
  author = {Dan Xu and Elisa Ricci and Wanli Ouyang and Xiaogang Wang and Nicu Sebe},
  title = {{Monocular Depth Estimation Using Multi-Scale Continuous CRFs as Sequential Deep Networks}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2019},
  doi = {10.1109/tpami.2018.2839602},
}
Figure