Abstract
Scene understanding is paramount in robotics, self-navigation, augmented reality, and many other fields. To fully accomplish this task, an autonomous agent has to infer the 3D structure of the sensed scene (to know where it looks at) and its content (to know what it sees). To tackle the two tasks, deep neural networks trained to infer semantic segmentation and depth from stereo images are often the preferred choices. Specifically, Semantic Stereo Matching can be tackled by either standalone models trained for the two tasks independently or joint end-to-end architectures. Nonetheless, as proposed so far, both solutions are inefficient because requiring two forward passes in the former case or due to the complexity of a single network in the latter, although jointly tackling both tasks is usually beneficial in terms of accuracy. In this paper, we propose a single compact and lightweight architecture for real-time semantic stereo matching. Our framework relies on coarse-to-fine estimations in a multi-stage fashion, allowing: i) very fast inference even on embedded devices, with marginal drops in accuracy, compared to state-of-the-art networks, ii) trade accuracy for speed, according to the specific application requirements. Experimental results on high-end GPUs as well as on an embedded Jetson TX2 confirm the superiority of semantic stereo matching compared to standalone tasks and highlight the versatility of our framework on any hardware and for any application.
Introduction
For autonomous systems like self-driving cars or mobile robots, navigating safely requires solving two fundamental problems simultaneously: depth estimation (geometric structure) and semantic segmentation (object recognition). Traditionally, these tasks have been treated independently, requiring separate deep networks that are computationally expensive and ignore the natural synergy between geometry and semantics. For instance, knowing a group of pixels represents a "car" provides strong geometric priors for its depth, while depth information can help disambiguate visually similar classes like "vegetation" versus "terrain."
Existing joint models often fail to meet real-time requirements, frequently operating below 1 FPS. This paper introduces RTS$^2$Net, a framework that is both fast enough for real-world robotics and accurate enough to compete with state-of-the-art standalone models.
RTS$^2$Net: A Multi-Stage Coarse-to-Fine Architecture
RTS$^2$Net is built on a fully residual and pyramidal architecture designed for efficiency. The design is broken down into four main modules:
- Shared Encoder: A lightweight backbone (depicted in blue in Figure 2) that extracts features from the stereo pair, forcing the network to learn a unified representation useful for both tasks.
- Disparity Decoder: This branch (yellow) estimates depth in three stages, starting at 1/16th resolution and refining up to 1/4th. It utilizes an efficient "cost volume" approach with restricted search ranges at each level.
- Semantic Decoder: This branch (green) produces class probability maps at three increasing resolutions.
- Synergy Disparity Refinement: The core innovation (purple) fuses semantic and disparity outputs into a "hybrid volume." This allows the network to use semantic cues to correct geometric errors, particularly on challenging reflective surfaces.
A key feature of this design is "Anytime Inference." Because the model produces valid outputs at every stage of the pyramid, a system can "early-stop" computation at a lower resolution to save power or meet strict timing deadlines.
Experimental Results and Key Insights
The model was evaluated on the KITTI 2015 benchmark, following pre-training on the synthetic SceneFlow and real-world CityScapes datasets. RTS$^2$Net demonstrates a remarkable balance of speed and precision:
- High-End Performance: On an NVIDIA 2080ti, the model runs at 60.4 FPS with a D1-all error of only 3.3%.
- Embedded Deployment: On the low-power Jetson TX2, it achieves 6.3 FPS for the full model. Using "Anytime Inference" to stop at Stage 2 increases speed to 10.9 FPS while maintaining competitive accuracy.
- Synergy Benefits: Ablation studies confirm that joint training improves depth accuracy even before the final refinement stage. The hybrid volume allows the model to learn "object-aware" depth, aligning semantic boundaries with sharp depth changes.
Conclusion
RTS$^2$Net represents a significant advancement in real-time scene understanding. By leveraging a multi-stage pyramidal architecture and semantic-geometric synergy, it achieves state-of-the-art results among real-time contenders. While the refinement module adds some overhead and the model currently caps resolution at 1/4th scale, its ability to run at high frame rates on both desktop and embedded hardware makes it a versatile solution for modern autonomous applications.
Summary updated