Abstract
Considering the role played by the inter-object relationships in monocular depth estimation (MDE), it is easy to tell that relationships, such as in front of and behind, provide explicit spatial priors. However, it is hard to answer the questions that which relationships contain useful spatial priors for depth estimation, and how much do their spatial priors contribute to the depth estimation? In this paper, we term the task of answering these two questions as ‘Relationship Spatialization’ for Depth Estimation. To this end, we strive to spatialize the relationships by devising a novel learning-based framework. Specifically, given a scene image, its image representations and relationship representations are first extracted. Then, the relationship representations are modified by spatially aligned into the visual space and redundancy elimination. Finally, the modified relationship representations are adaptively weighted to concatenate with the image ones for depth estimation, thus accomplishing the relationship spatialization. Experiments on KITTI, NYU v2, and ICL-NUIM datasets show the effectiveness of the relationship spatialization on MDE. Moreover, adopting our relationship spatialization framework to the current state-of-the-art MDE models leads to marginal improvement on most evaluation metrics.
1. Introduction
Monocular Depth Estimation (MDE) is a fundamental challenge in computer vision, requiring the prediction of 3D depth from a single 2D image. While modern deep learning models excel at identifying appearance cues like edges and textures, they often ignore the underlying semantic logic of a scene. Humans, by contrast, utilize semantic relationships to infer depth; for example, knowing a bag is under a table provides a strong relative spatial prior. This paper introduces "Relationship Spatialization," a framework designed to identify and quantify the spatial priors provided by both spatial and non-spatial inter-object relationships.
2. Methodology
The proposed framework is a modular system that can be integrated into existing MDE architectures. It operates in three primary stages:
2.1 Representation Extraction
The system extracts image features using a standard encoder-decoder. Simultaneously, it constructs a Scene Graph using an offline detector to identify objects and their relationships. These relationships are then processed via a Graph Residual CNN.
2.2 Relationship Spatialization
This core stage transforms abstract graph data into visual features:
- Spatial Alignment: Relationship data is projected onto the 2D image space using object masks, effectively "painting" semantic information onto relevant pixels.
- Redundancy Elimination: An orthogonalization process removes information already present in the raw image features, forcing the model to focus on the unique spatial priors provided by the relationships.
2.3 Depth Estimation and Weighting
An attention layer adaptively weights each relationship. High-impact relationships (e.g., "in front of") are prioritized, while less relevant ones are down-weighted. These are concatenated with image features to produce the final depth map.
3. Key Insights
A primary finding is that non-spatial relationships (e.g., "wear" or "hold") contribute significantly to depth accuracy. These relationships act as "depth anchors," providing constraints on the relative positions of objects even without explicit distance descriptors.
Additionally, the Redundancy Elimination step is vital. By stripping away redundant visual data, the framework ensures the network specifically learns from the distinguished spatial information contained within the semantic graph.
4. Experimental Results
The framework was evaluated on the KITTI, NYU Depth v2, and ICL-NUIM benchmarks. Integrating Relationship Spatialization (+R) into state-of-the-art models like Adabins, Midas, and Bts consistently improved performance:
- KITTI: The baseline model achieved a significant jump in $\delta_1$ accuracy from 0.9113 to 0.9260.
- Generalization: Models trained on NYU v2 demonstrated superior performance on the unseen ICL-NUIM dataset, proving that semantic relationships are robust, generalizable cues for depth estimation.
5. Conclusion
Relationship Spatialization offers a novel way to leverage scene logic for depth estimation. While the framework is currently dependent on the accuracy of upstream object detectors, it demonstrates that semantic priors can marginally improve even the most advanced MDE models. Future work may explore end-to-end training to unify object detection and depth estimation tasks.
Summary updated