TL;DR
This paper reframes monocular depth estimation from a continuous regression problem into a discrete pixel-wise classification task using deep fully convolutional residual networks. By discretizing depth values into bins, the model naturally outputs a probability distribution that represents prediction confidence, enabling the use of an information gain loss and CRF post-processing to achieve state-of-the-art performance.
What Problem Does This Paper Address?
Predicting depth from a single monocular image is a core challenge in computer vision and scene understanding. Traditionally, because depth is a continuous physical property, researchers have formulated this as a regression problem, typically minimizing the $L_2$ norm between predicted and ground-truth depths.
However, continuous regression has two major drawbacks:
- It is incredibly difficult for a network to converge on exact depth values, often causing models to default to mean depth values and suffer high errors at extreme distances.
- Standard regression models only output a single scalar value per pixel, completely lacking a measure of prediction variance or confidence.
The authors address these limitations by asking a simple question: What if we treat depth estimation as a classification problem instead?
Methods
The authors propose a pipeline that converts continuous depth into discrete ranges and processes them using a deep Fully Convolutional Network (FCN).
The key components of their method include:
- Depth Discretization: Continuous ground-truth depth values are divided into discrete bins. This discretization is performed uniformly in log space, which naturally allocates finer resolution to nearby objects and coarser resolution to distant ones.
- Network Architecture: The model utilizes a fully convolutional architecture based on deep residual networks (ResNet-101 and ResNet-152). By replacing standard fully connected layers with convolutional layers, the network can accept images of any size and output a dense score map, which is then upsampled back to the original image size via bilinear interpolation.
- Information Gain Loss: Standard classification losses (like cross-entropy) treat all incorrect predictions equally. To account for the ordinal nature of depth, the authors introduce an information gain matrix into their multinomial logistic loss function. This matrix penalizes predictions less if they are close to the correct bin, encouraging the network to make "near-miss" predictions rather than wildly inaccurate ones.
- Fully-Connected CRF Post-Processing: Because classification outputs a softmax probability distribution over all depth bins, it provides a natural confidence score. The authors leverage this distribution as a unary potential in a fully-connected Conditional Random Field (CRF) to smooth out local noise and sharpen object boundaries.
Datasets
The approach was trained and evaluated on three benchmark datasets:
- NYUD2: An indoor scene dataset. The authors used the standard split of 795 training images and 654 test images.
- KITTI: An outdoor driving dataset. Models were evaluated using a standard split of 700 training images and 697 test images, as well as a larger training set of 33,131 images for state-of-the-art comparisons.
- SUN RGB-D: An indoor dataset containing 10,335 images. A subset of 500 randomly selected images was used strictly for cross-dataset evaluation to demonstrate the model's ability to generalize to unseen environments.
Key Insights and Ideas
- Classification is Easier Than Regression: Reframing the task shows that predicting a discrete depth range is an easier optimization problem for deep networks than regressing an exact continuous value, leading to superior accuracy.
- Logarithmic Discretization Wins: Discretizing depth values in log space yields significantly lower errors than linear space discretization. This aligns with visual intuition: precision matters more for objects close to the camera than those far away.
- Confidence Scores Unlock Post-Processing: Standard regression lacks a built-in confidence metric. By outputting a probability distribution over classes, the classification approach provides a pixel-wise confidence map that makes advanced post-processing techniques, like fully-connected CRFs, highly effective.
Key Results
- Regression vs. Classification: On the NYUD2 dataset, switching from standard regression to a 100-bin classification model boosted the threshold accuracy ($\delta < 1.25$) from 65.3% to 70.1% while reducing the root-mean-squared (RMS) error.
- Robustness to Bin Count: The performance of the classification model is remarkably insensitive to the exact number of bins chosen (testing 30, 50, 80, and 100 bins yielded similarly strong results).
- State-of-the-Art Performance: When scaled up using ResNet-152 and the full training sets, the proposed method outperformed existing models on both NYUD2 (achieving a $\delta < 1.25$ accuracy of 81.9%) and KITTI (achieving 88.7% accuracy within an 80-meter cap).
Limitations and Future Work
While the method achieves excellent results, the authors note a few areas for improvement:
- Simple Upsampling: The model currently relies on basic bilinear interpolation to upscale its prediction maps by a factor of 8, which can blur fine details. Implementing learned up-sampling blocks could preserve sharper edges.
- Feature Integration: The authors suggest that incorporating multi-scale inputs and explicitly concatenating mid-layer outputs (low- and mid-level features) would likely capture finer scene details and further boost performance.
Summary updated