Abstract
Depth estimation plays a significant role in industrial applications, e.g. augmented reality, robotic mapping and autonomous driving. Traditional approaches for capturing depth, such as laser or depth sensor based methods, are difficult to use in most scenarios due to the limitations of high system cost and limited operational conditions. As an inexpensive and convenient approach, using the computational models to estimate depth from a single RGB image offers a preferable way for the depth prediction. Although the design of computational models to estimate the depth map has been widely investigated, the majority of models suffers from low prediction accuracy due to the sole utilization of a one-stage regression strategy. Inspired by both theoretical and practical success of two-stage regression, we propose a two-stage deep regression model, which is composed of two state-of-the-art network architectures, i.e. the fully convolutional residual network (FCRN) and the conditional generation adversarial network (cGAN). FCRN has been proved to possess a strong prediction ability for depth prediction, but fine details in the depth map are still incomplete. Accordingly, we have improved the existing cGAN model to refine the FCRN-based depth prediction.
Introduction
Estimating 3D depth from a single 2D image—monocular depth estimation—is a "mathematically ill-posed" problem. A single pixel in a 2D image could correspond to an infinite number of points in 3D space. While LiDAR and depth sensors provide ground truth, they are expensive and bulky for many industrial applications like augmented reality or autonomous drones.
Current deep learning approaches usually rely on a single-stage regression model. While these models are effective at capturing the general layout of a scene, they often produce "blurry" depth maps that lack sharp edges and struggle to accurately represent objects far away from the camera. This research argues that a single pass is insufficient to handle both global structure and local geometric details simultaneously.
Methods
The researchers propose a two-stage deep regression strategy, inspired by classical statistical theory which suggests that multi-stage regression can reduce the computational search space and improve accuracy.
Stage 1: The Rough Estimate
The system first uses a Fully Convolutional Residual Network (FCRN) based on ResNet-50. This stage focuses on the global scene structure. It utilizes "up-projection" blocks to increase resolution and is trained using a reverse Huber (Berhu) loss, which is particularly effective for depth data because it balances linear and quadratic errors.
Stage 2: The Refinement
The output from Stage 1 is fed into an improved cGAN to sharpen the results. The Generator uses a U-Net architecture with skip connections, allowing low-level spatial information to "shuttle" across the network to preserve edges. The Discriminator employs a PatchGAN approach, which penalizes structure at the scale of local image patches (70x70) rather than the whole image, forcing the model to focus on high-frequency details like object boundaries.
Key Insights
- The "Prior" Effect: The first stage acts as a probabilistic prior. By providing a rough map, it narrows down the possibilities for the second stage, making the refinement task much easier for the cGAN.
- cGAN as a Refiner: While a cGAN alone cannot predict depth from a raw RGB image effectively due to ambiguity, it excels at translating a "blurry" depth map into a "sharp" one.
- Optimal Staging: Testing a three-stage model (FCRN-cGAN-cGAN) actually showed a decrease in performance, suggesting that two stages provide the optimal balance between learning features and avoiding overfitting.
Key Results
The two-stage model outperformed several state-of-the-art (SOTA) methods across both indoor and outdoor datasets:
- NYU Depth v2: Achieved a Relative Error (rel) of 0.114, beating the standalone FCRN (0.127).
- Make3D: Achieved a rel of 0.167, significantly better than the standalone FCRN (0.175) and nearly doubling the accuracy of a standalone cGAN (0.336).
Qualitative results show much sharper object boundaries and significantly better depth prediction for distant objects, which are often "lost" in the background noise of single-stage models.
Conclusion
The primary trade-off for this increased accuracy is computational complexity. Because the model uses two distinct, large network architectures, it has more parameters than a single-stage regressor. Future work aims to optimize the architecture to reduce the parameter count while maintaining the high-precision refinement capabilities demonstrated by the two-stage approach.
Summary updated