Skip to main content
QUICK REVIEW

[Paper Review] MonoDETR: Depth-guided Transformer for Monocular 3D Object Detection

Renrui Zhang, Han Qiu|arXiv (Cornell University)|Mar 24, 2022
Advanced Neural Network ApplicationsComputer Science7 citations
TL;DR

MonoDETR proposes a depth-guided Transformer for monocular 3D object detection, introducing a dual-encoder architecture with a foreground depth map predictor and a depth-aware decoder that enables long-range inter-object depth reasoning. It achieves state-of-the-art performance on KITTI without dense depth supervision, and its depth-guided modules generalize effectively to multi-view detection on nuScenes.

ABSTRACT

Monocular 3D object detection has long been a challenging task in autonomous driving. Most existing methods follow conventional 2D detectors to first localize object centers, and then predict 3D attributes by neighboring features. However, only using local visual features is insufficient to understand the scene-level 3D spatial structures and ignores the long-range inter-object depth relations. In this paper, we introduce the first DETR framework for Monocular DEtection with a depth-guided TRansformer, named MonoDETR. We modify the vanilla transformer to be depth-aware and guide the whole detection process by contextual depth cues. Specifically, concurrent to the visual encoder that captures object appearances, we introduce to predict a foreground depth map, and specialize a depth encoder to extract non-local depth embeddings. Then, we formulate 3D object candidates as learnable queries and propose a depth-guided decoder to conduct object-scene depth interactions. In this way, each object query estimates its 3D attributes adaptively from the depth-guided regions on the image and is no longer constrained to local visual features. On KITTI benchmark with monocular images as input, MonoDETR achieves state-of-the-art performance and requires no extra dense depth annotations. Besides, our depth-guided modules can also be plug-and-play to enhance multi-view 3D object detectors on nuScenes dataset, demonstrating our superior generalization capacity. Code is available at https://github.com/ZrrSkywalker/MonoDETR.

Motivation & Objective

  • Address the limitation of center-guided monocular 3D detectors that rely only on local visual features and ignore long-range depth relationships.
  • Improve 3D object detection by incorporating scene-level depth geometry and inter-object depth relations using a transformer-based framework.
  • Develop a plug-and-play depth-guided module that enhances both monocular and multi-view 3D detection without requiring dense depth annotations.
  • Enable end-to-end training without non-maximum suppression or anchor-based label assignment, using only object-wise labels for supervision.

Proposed method

  • Introduce a lightweight depth predictor to generate a foreground depth map using only discrete depth labels per object, avoiding dense depth supervision.
  • Employ a parallel dual-encoder: a visual encoder for appearance features and a depth encoder for non-local depth embeddings from the predicted depth map.
  • Design a depth-guided decoder that uses a depth cross-attention layer to allow object queries to attend to depth-aware regions across the image, enabling global context aggregation.
  • Formulate 3D object detection as a set of learnable queries that adaptively aggregate features from both visual and depth-embedded representations.
  • Use a learnable depth positional encoding with meter-wise or k-bin discretization to preserve depth geometry in the transformer attention mechanism.
  • Train end-to-end using only 2D and 3D object annotations, eliminating the need for NMS, anchors, or auxiliary depth data.

Experimental results

Research questions

  • RQ1Can a depth-guided transformer architecture improve monocular 3D object detection by capturing long-range depth relationships beyond local visual features?
  • RQ2How effective is a foreground depth map predicted with only object-wise depth supervision in guiding 3D detection without dense depth annotations?
  • RQ3To what extent can the depth-guided modules be generalized to enhance multi-view 3D detection in a plug-and-play manner?
  • RQ4Does the integration of depth-aware attention improve feature representation learning in BEV-based detectors like BEVFormer and PETRv2?
  • RQ5How do different depth representation and positional encoding designs affect the final detection performance?

Key findings

  • MonoDETR achieves state-of-the-art performance on the KITTI test set, surpassing the second-best method by +2.53%, +1.08%, and +0.85% for easy, moderate, and hard difficulty levels, respectively.
  • The depth-guided decoder with depth cross-attention enables object queries to attend to distant, depth-relevant regions, as visualized in attention maps that spread across the image.
  • On the nuScenes benchmark, the depth-guided modules improve PETRv2 by +1.2% NDS and BEVFormer by +0.9% NDS, demonstrating strong generalization to multi-view detection.
  • The ablation study shows that using a depth encoder with deformable self-attention outperforms direct feature feeding, with the best performance when depth features are properly encoded.
  • The foreground depth map with uniform discretization (k-bin) yields the best performance, and depth positional encoding with meter-wise embeddings is more effective than sinusoidal or 2D sinusoidal encodings.
  • The method achieves consistent gains across different depth representation schemes, including uniform, increasing, and linear-increasing discretizations, with the foreground depth map being the most effective.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.