SemAttNet: Towards Attention-based Semantic Aware Guided Depth Completion

Danish Nazir, Marcus Liwicki, Didier Stricker, Muhammad Zeshan Afzal · DOI

TL;DR

SemAttNet is a novel deep-learning framework that transforms sparse LiDAR data into dense depth maps by leveraging a three-branch architecture (color, semantic, and depth-guided). By introducing a specialized multi-modal attention mechanism (SAMMAFB), the model achieves state-of-the-art accuracy on the KITTI benchmark, proving significantly more robust to challenging lighting conditions like shadows and reflections than traditional methods.

What Problem Does This Paper Address?

In the world of autonomous driving and robotics, "seeing" the distance to objects is critical. LiDAR sensors provide highly accurate depth data, but there's a catch: the data is incredibly sparse. A typical LiDAR scan might only provide depth values for about 5.9% of the pixels in a scene.

To fill in the blanks—a task called depth completion—researchers usually use a high-resolution RGB image as a guide. However, RGB images are fickle. Shadows, glare, and reflections can trick a neural network into seeing "edges" that don't exist in the physical world, leading to distorted depth maps. The authors of SemAttNet argue that color alone isn't enough; we need a deeper "semantic" understanding of the scene (knowing what is a car vs. what is a tree) to produce truly reliable depth.

Methods

The core of SemAttNet is a three-branch backbone designed to extract and fuse different types of information:

  1. Color-Guided (CG) Branch: Focuses on standard image cues like object boundaries.
  2. Semantic-Guided (SG) Branch: Uses semantic maps (generated by a pre-trained model) to understand the scene's layout. Because semantic maps have uniform values for objects, they are much more stable than raw RGB pixels under changing light.
  3. Depth-Guided (DG) Branch: Refines the predictions from the first two branches to ensure the final output is "depth-dominant" and accurate.
FIGURE 2: The overview of proposed SemAttNet. It consists of a novel three-branch backbone and a CSPN++ module with Atrous convolutions. Unlike earlier image-guided methods, we design a separate branch for learning the semantic information of the scene. Furthermore, we propose to apply attention based fusion block (ABF) to perform semantic-aware fusion between RGB, depth, and semantic modalities. Each branch outputs a depth map and a confidence map, which are adaptively fused to produce a fused depth map. In the end, the fused depth map are sent to CSPN++ module with Atrous convolutions for refinement. Note, due to shortage of space, we use AFB to represent SAMMAFB block.

To combine these branches effectively, the authors developed the Semantic-aware Multi-modal Attention-based Fusion Block (SAMMAFB). Rather than just stacking features together (concatenation), SAMMAFB uses channel and spatial attention to "weigh" which features are most important at any given pixel. Finally, the model uses CSPN++ with Atrous convolutions to smooth out the transition between neighboring pixels and ensure a sharp, dense result.

FIGURE 3: Architecture of SAMMAFB. The input to SAMMAFB is the concate- nation of RGB, semantic and sparse depth modalities. It applies channel-wise and spatial-wise attention to the concatenated features to produce the refined fused feature maps.

Datasets

The model was trained and evaluated on the KITTI depth completion benchmark, a massive outdoor dataset for autonomous vehicles. It contains:

  • 85,000 sparse depth maps with corresponding RGB images for training.
  • 7,000 images for validation.
  • 1,000 images for official testing.

Key Insights and Ideas

  • Semantics are a Stabilizer: The "aha moment" here is that semantic information is inherently more robust than color. A white car in a shadow and a white car in bright sun look different to an RGB branch, but they look identical to a semantic branch. This prevents the model from being "distracted" by illumination changes.
  • Attention over Addition: Standard fusion (adding or concatenating features) treats all data equally. SAMMAFB allows the network to dynamically decide, for example, to trust the semantic branch more near complex object boundaries and the color branch for fine textures.
  • Confidence-Based Fusion: Each branch doesn't just output a depth map; it also outputs a "confidence map." The final fused depth is a weighted average based on these learned confidence scores, allowing the model to self-correct if one branch produces a noisy estimate.

Key Results

SemAttNet achieved state-of-the-art performance on the KITTI leaderboard at the time of its submission.

  • Quantitative: It reached a Root Mean Squared Error (RMSE) of 709.41 mm, outperforming prominent models like RigNet and PENet.
  • Qualitative: Visually, the model excels in tricky areas. As seen in Figure 4, SemAttNet correctly predicts depth through car window reflections and maintains the sharp structure of pedestrians, where other models often "over-segment" or blur the boundaries.
FIGURE 4: Qualitative results on KITTI depth completion test set. The results are obtained by online KITTI depth completion leaderboard. From left-to-right (a) RGB Image, (b) PENet [13], (c) RigNet [14], (d) SemAttNet(ours). The correct estimates in errors maps are given in blue color, whereas wrong estimate are depicted by warmer colors.

Limitations and Future Work

While the paper demonstrates impressive results, it relies on a pre-trained model (WideResNet38) to generate semantic maps. This means the depth completion is only as good as the semantic segmentation; if the segmenter fails to identify an object, the SG branch might provide misleading guidance.

Future work could involve training the semantic segmentation and depth completion tasks jointly (end-to-end) to see if they can mutually improve each other, or optimizing the architecture for real-time performance on embedded hardware typically found in autonomous vehicles.

Summary updated

BibTeX
@inproceedings{nazir2022semattnet,
  author = {Danish Nazir and Marcus Liwicki and Didier Stricker and Muhammad Zeshan Afzal},
  title = {{SemAttNet: Towards Attention-based Semantic Aware Guided Depth Completion}},
  booktitle = {IEEE Access},
  year = {2022},
  url = {https://openreview.net/forum?id=vNA2fI0tC6},
}
Figure