SAM3D: Zero-Shot 3D Object Detection via Segment Anything Model

Dingyuan Zhang, Dingkang Liang, Hongcheng Yang, Zhikang Zou, Xiaoqing Ye, Zhe Liu, Xiang Bai · OpenReview

Abstract

With the development of large language models, many remarkable linguistic systems like ChatGPT have thrived and achieved astonishing success on many tasks, showing the incredible power of foundation models. In the spirit of unleashing the capability of foundation models on vision tasks, the Segment Anything Model (SAM), a vision foundation model for image segmentation, has been proposed recently and presents strong zero-shot ability on many downstream 2D tasks. However, whether SAM can be adapted to 3D vision tasks has yet to be explored, especially 3D object detection. With this inspiration, we explore adapting the zero-shot ability of SAM to 3D object detection in this paper. We propose a SAM-powered BEV processing pipeline to detect objects and get promising results on the large-scale Waymo open dataset. As an early attempt, our method takes a step toward 3D object detection with vision foundation models and presents the opportunity to unleash their power on 3D vision tasks.

Introduction

3D object detection is a cornerstone of autonomous driving, typically requiring massive, human-annotated LiDAR datasets. Training these models is both expensive and time-consuming. Meanwhile, foundation models like the Segment Anything Model (SAM) have revolutionized 2D computer vision by segmenting objects without prior task-specific training (zero-shot).

The primary challenge in applying SAM to 3D detection is the domain gap: SAM is trained on dense, semantic-rich 2D RGB images, whereas LiDAR data is sparse and geometric. SAM3D bridges this gap by "disguising" 3D data as colorful Bird’s Eye View (BEV) images, leveraging SAM’s 2D intelligence for 3D scenes.

Methodology

The SAM3D framework utilizes a five-step pipeline to translate 3D space into a format compatible with SAM:

  1. LiDAR-to-BEV Projection: Sparse LiDAR points are projected onto a 2D BEV plane. To mimic natural images, LiDAR reflection intensity is mapped to an RGB palette.
  2. BEV Post-processing: Morphology dilation is applied to "thicken" sparse signals, creating the dense shapes SAM expects.
  3. Segmentation with SAM: A 32x32 mesh grid of points serves as prompts. To optimize performance, prompts in empty space are pruned, achieving a 5x speedup.
  4. Mask Post-processing: Noisy masks are filtered using physical priors, such as realistic vehicle dimensions and aspect ratios.
  5. Mask2Box: This module converts 2D masks back into 3D bounding boxes, estimating horizontal attributes from the mask and vertical attributes from the original LiDAR points.
Overview of the SAM3D pipeline

Experimental Results

The framework was evaluated on the Waymo Open Dataset, focusing on the VEHICLE category within a 30-meter range.

Quantitative Performance

SAM3D achieved a zero-shot performance of 19.51 mAP and 13.30 mAPH. While lower than fully supervised models, this demonstrates a successful proof of concept for zero-shot 3D detection. Ablation studies revealed that mapping intensity to RGB was crucial, increasing performance from 0.94 AP to 19.51 AP. Additionally, a pillar size of 0.1m was found to be the "Goldilocks" zone—balancing density and resolution.

Qualitative Analysis

Qualitative results show that SAM3D effectively detects vehicles in various scenarios. However, the model can be "over-eager," sometimes producing masks for background noise or failing to distinguish between closely packed objects.

Qualitative detection results on the Waymo dataset

Conclusion and Future Work

SAM3D demonstrates that 2D foundation models can be adapted for 3D tasks without 3D-specific training. Current limitations include sensitivity to point cloud sparsity at long distances and a lack of semantic classification. Future work could integrate vision-language models like CLIP for zero-shot classification and optimize the pipeline for real-time performance.

Summary updated

Abstract

With the development of large language models, many remarkable linguistic systems like ChatGPT have thrived and achieved astonishing success on many tasks, showing the incredible power of foundation models. In the spirit of unleashing the capability of foundation models on vision tasks, the Segment Anything Model (SAM), a vision foundation model for image segmentation, has been proposed recently and presents strong zero-shot ability on many downstream 2D tasks. However, whether SAM can be adapted to 3D vision tasks has yet to be explored, especially 3D object detection. With this inspiration, we explore adapting the zero-shot ability of SAM to 3D object detection in this paper. We propose a SAM-powered BEV processing pipeline to detect objects and get promising results on the large-scale Waymo open dataset. As an early attempt, our method takes a step toward 3D object detection with vision foundation models and presents the opportunity to unleash their power on 3D vision tasks. The code is released at https://github.com/DYZhang09/SAM3D.
BibTeX
@article{zhang2024sam,
  author = {Dingyuan Zhang and Dingkang Liang and Hongcheng Yang and Zhikang Zou and Xiaoqing Ye and Zhe Liu and Xiang Bai},
  title = {{SAM3D: Zero-Shot 3D Object Detection via Segment Anything Model}},
  journal = {Science China Information Sciences},
  year = {2024},
  url = {https://openreview.net/forum?id=XkFGQeEiLo},
}
Figure