SemAttNet: Toward Attention-Based Semantic Aware Guided Depth Completion

Danish Nazir, Alain Pagani, Marcus Liwicki, Didier Stricker, Muhammad Zeshan Afzal

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.
The SemAttNet architecture featuring the three-branch backbone and CSPN++ refinement stage.

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.

Architecture of the SAMMAFB block, which applies channel and spatial attention to fuse multi-modal features.

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.
Qualitative comparison showing SemAttNet's superior handling of reflections and object boundaries compared to other SOTA methods.

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 Alain Pagani and Marcus Liwicki and Didier Stricker and Muhammad Zeshan Afzal},
  title = {{SemAttNet: Toward Attention-Based Semantic Aware Guided Depth Completion}},
  booktitle = {IEEE Access},
  year = {2022},
  url = {https://openreview.net/forum?id=vNA2fI0tC6},
}
Figure