TL;DR
This paper introduces a multi-scale convolutional neural network (CNN) architecture that predicts depth maps from a single RGB image. By combining a global coarse-scale network with a local fine-scale network and employing a novel scale-invariant loss function, the authors achieved state-of-the-art results on indoor and outdoor datasets, effectively handling the inherent scale ambiguity of monocular vision.
What Problem Does This Paper Address?
Estimating the 3D geometry of a scene from a single 2D image is a classic "ill-posed" problem in computer vision. Unlike stereo vision, which relies on local correspondences between two viewpoints to triangulate depth, monocular depth estimation requires the integration of diverse cues like perspective lines, object sizes, and atmospheric effects.
A major challenge is global scale ambiguity. Given a single image, it is mathematically impossible to distinguish between a normal-sized room and a perfectly scaled-down dollhouse. Traditional error metrics (like Mean Squared Error) often penalize models heavily for missing the absolute scale, even if they correctly capture the relative spatial relationships within the scene. The authors set out to build a system that understands both the global layout and the fine-grained details of a scene while being robust to this scale uncertainty.
Methods
The authors propose a two-stack network architecture that processes an image at different scales:
- Global Coarse-Scale Network: This stack looks at the entire image to predict the overall structure of the scene. Its upper layers are fully connected, allowing every part of the image to influence the global depth prediction. This helps the model understand high-level features like vanishing points and room alignment.
- Local Fine-Scale Network: This stack takes the output of the coarse network and the original image as inputs. Its job is to refine the blurry global prediction by aligning it with local details like object boundaries and wall edges.
A key innovation is the Scale-Invariant Error. Instead of measuring absolute distance, this loss function compares the relationships between pairs of pixels. If the model predicts that pixel A is further than pixel B, it is rewarded if that relationship holds true in the ground truth, regardless of whether the absolute depth values are off by a constant factor.
Datasets
The model was trained and evaluated on two major benchmarks:
- NYU Depth v2: A dataset of 464 indoor scenes captured with a Microsoft Kinect. The authors leveraged the "raw" dataset, using 120,000 unique images to provide the large-scale training data required for deep networks.
- KITTI: An outdoor dataset consisting of video sequences captured from a car driving through various environments (city, residential, road), using a rotating LIDAR scanner for ground-truth depth.
Key Insights and Ideas
- Global Context is Mandatory: For monocular depth, local patches are often ambiguous. The coarse network's ability to see the "big picture" is what allows the model to make a reasonable initial guess about the scene's layout.
- Learning the Upsampling: Rather than using hardcoded interpolation, the coarse network learns its own upsampling templates in its final layer. This allows it to produce a 74x55 output from a 1x1 feature map more effectively than simple stretching.
- Scale Invariance as a Feature, Not a Bug: By explicitly accounting for scale ambiguity in the loss function, the authors found the model produced much better qualitative results. It focused the learning process on spatial relations rather than just trying to guess the average distance to the camera.
- Raw Data Power: Deep networks thrive on data. By using the raw, unprocessed frames from NYU Depth and KITTI rather than just the small, pre-cleaned subsets, the authors provided the network with enough variety to learn robust features.
Key Results
The multi-scale approach significantly outperformed previous methods like Make3D and SIFT Flow.
- NYU Depth: The model achieved a 35% relative improvement over the previous state-of-the-art across all metrics.
- KITTI: The model saw a ~31% relative gain.
- Qualitative Improvement: As shown in the figure below, the fine-scale network (column c) successfully sharpens the blurry output of the coarse network (column b), bringing depth boundaries in line with the actual objects in the input image (column a).
Limitations and Future Work
The authors noted that while the fine-scale network improves visual quality, it doesn't always significantly lower the numerical error metrics, likely because the ground-truth LIDAR data (especially in KITTI) can have alignment issues that "blur" the edges the network is trying to sharpen.
Future directions suggested include:
- Incorporating Surface Normals: Integrating 3D geometry information like surface orientation to further improve scene understanding.
- Higher Resolution: Extending the architecture with even more stacks to reach the full resolution of the input images.
- Video Consistency: Applying these techniques to video sequences to ensure depth predictions are stable over time.
Summary updated