Abstract
Perceiving the three-dimensional structure of the surrounding environment is a fundamental task for autonomous robotic systems. This paper presents a supervised end-to-end convolutional neural network (CNN) for dense depth estimation from a single monocular image. The proposed architecture utilizes a ResNeXt-50 encoder to extract robust features, a feature pyramid structure to fuse multi-scale information, and a decoder composed of transposed convolutional layers for high-resolution depth map reconstruction. By employing a composite loss function incorporating depth, gradient, and surface normal components, the model achieves state-of-the-art performance on the NYU Depth v2 dataset without requiring complex post-processing steps.
Introduction
Estimating depth from a single 2D image is an inherently ill-posed problem in computer vision, as a single projection can correspond to infinitely many 3D configurations. Traditional methods often relied on hand-crafted features or geometric priors, while early deep learning approaches frequently necessitated secondary refinement steps, such as Conditional Random Fields (CRFs), to produce smooth results. This work aims to eliminate these additional processing stages by designing a robust encoder-decoder network that preserves both high-level semantic context and low-level spatial details.
Proposed Methodology
The core of the proposed approach is an integrated encoder-decoder framework designed for efficient and accurate depth prediction.
Network Architecture
The architecture consists of three primary stages:
- Encoder (ResNeXt-50): The model employs ResNeXt-50 as the backbone. Unlike standard ResNet, ResNeXt utilizes "grouped convolutions," which allow for a more diverse set of learned features while maintaining computational efficiency.
- Feature Pyramid Structure: To mitigate the loss of spatial resolution during down-sampling, a feature pyramid is implemented. This structure facilitates the merging of high-level semantic features with low-level spatial information, ensuring that fine-grained details are preserved throughout the network.
- Decoder and Upsampling: The decoder uses transposed convolutional layers (deconvolution blocks) to progressively up-sample feature maps back to the original input resolution.
Composite Loss Function
To ensure sharp boundaries and geometric consistency, the model is trained using a weighted triple loss function ($0.6L_d + 0.2L_g + 0.2L_n$):
- Depth Loss ($L_d$): A hybrid $L_1$ and $L_2$ loss targeting pixel-wise accuracy.
- Gradient Loss ($L_g$): Penalizes errors at edges to maintain sharp object boundaries.
- Surface Normal Loss ($L_n$): Uses cosine similarity to ensure the predicted surface orientations are physically plausible.
Experimental Results
The model was evaluated on the NYU Depth v2 dataset, using a training set augmented to approximately 1.2 million images.
Quantitative Performance
The proposed method outperformed existing benchmarks across five key metrics. Notably, it achieved an accuracy ($\delta < 1.25$) of 0.796, surpassing previous models like Laina et al. (0.785). The Root Mean Squared Error (RMSE) was reduced to 0.583, demonstrating a significant improvement in depth estimation precision compared to earlier benchmarks (0.641 to 0.907).
Qualitative Analysis and Depth Completion
Qualitatively, the model excels at preserving the geometry of small objects and sharp edges. A notable advantage of this RGB-based learning approach is its ability to perform "depth completion." While physical sensors (like Kinect) often fail on reflective surfaces, this model can infer depth in those regions based on visual context.
Conclusion
This paper demonstrates that a well-designed encoder-decoder network with a feature pyramid and a multi-component loss function can achieve state-of-the-art monocular depth estimation without post-processing. Future work will explore multi-task learning, specifically integrating semantic segmentation to further refine depth predictions based on object categories.
Summary updated