RepositoryPythonGBUnited Kingdom
AutoVision-cloud

AutoVision-cloud/SA-Det3D

[ICCVW-2021] SA-Det3D: Self-attention based Context-Aware 3D Object Detection

168stars
31forks
7issues
2views

SA-Det3D: Self-Attention Based Context-Aware 3D Object Detection

By Prarthana Bhattacharyya, Chengjie Huang and Krzysztof Czarnecki.

We provide code support and configuration files to reproduce the results in the paper: SA-Det3D: Self-Attention Based Context-Aware 3D Object Detection.
Our code is based on OpenPCDet, which is a clean open-sourced project for benchmarking 3D object detection methods.

Overview

Fig.1. Self-Attention augmented global-context aware backbone networks.

In this paper, we explore variations of self-attention for contextual modeling in 3D object detection by augmenting convolutional features with self-attention features.
We first incorporate the pairwise self-attention mechanism into the current state-of-the-art BEV, voxel, point and point-voxel based detectors and show consistent improvement over strong baseline models while simultaneously significantly reducing their parameter footprint and computational cost. We call this variant full self-attention (FSA).
We also propose a self-attention variant that samples a subset of the most representative features by learning deformations over randomly sampled locations. This not only allows us to scale explicit global contextual modeling to larger point-clouds, but also leads to more discriminative and informative feature descriptors. We call this variant deformable self-attention (DSA).

Results

  • Self-attention (SA) systematically improves 3D object detection across state-of-the-art 3D detectors: PointPillars, SECOND and Point-RCNN. In this figure, we show 3D AP on moderate Car class of KITTI val split (R40) vs. the number of parameters (Top) and GFLOPs (Bottom) for baseline models and proposed baseline extensions with Deformable SA (DSA) and Full SA (FSA).

Fig.2. 3D Car AP with respect to params and FLOPs of baseline and proposed self-attention variants.


  • We also illustrate qualitative performance on KITTI val split. We show that our method identifies missed detections and removes false positives. Red bounding box represents ground truth and green represents detector outputs. From left to right: (a) RGB image of challenging scenes. (b) Result of the state-of-the-art methods: PointPillars, SECOND, Point-RCNN and PV-RCNN. (c) Result of our full self-attention (FSA) augmented baselines, which uses significantly fewer parameters and FLOPs.

Fig.3. Visualizing qualitative results between baseline and our proposed self-attention module.

Model Zoo

We provide our proposed detection models in this section. The 3D AP results (R-40) on KITTI 3D Object Detection validation of the Car moderate category are shown in the table below.

Notes:

  • For inference, our models have been tested with 1 Tesla V-100 GPU and Pytorch 1.3.
  • We use the checkpoints released by OpenPCDet as our baseline for evaluation.
  • Our models are trained with 4 Tesla V-100 GPUs and Pytorch 1.3.
Car 3D APParams (M)G-FLOPsdownload
PointPillar_baseline78.394.863.4PointPillar
PointPillar_red78.071.531.5PointPillar-red
PointPillar_DSA78.941.132.4PointPillar-DSA
PointPillar_FSA79.041.031.7PointPillar-FSA
SECOND_baseline81.614.676.7SECOND
SECOND_red81.112.551.2SECOND-red
SECOND_DSA82.032.252.6SECOND-DSA
SECOND_FSA81.862.251.9SECOND-FSA
Point-RCNN_baseline80.524.027.4Point-RCNN
Point-RCNN_red80.402.224Point-RCNN-red
Point-RCNN_DSA81.802.319.3Point-RCNN-DSA
Point-RCNN_FSA82.102.519.8Point-RCNN-FSA
PV-RCNN_baseline84.831289PV-RCNN
PV-RCNN_DSA84.711064PV-RCNN-DSA
PV-RCNN_FSA84.951064.3PV-RCNN-FSA

Usage

a. Clone the repo:

git clone --recursive https://github.com/AutoVision-cloud/SA-Det3D

b. Copy SA-Det3D src into OpenPCDet:

sh ./init.sh

c. Install OpenPCDet and prepare KITTI data:

Please refer to INSTALL.md for installation and dataset preparation.

d. Run experiments with a specific configuration file:

Please refer to GETTING_STARTED.md to learn more about how to train and run inference on this detector.

Citation

If you find this project useful in your research, please consider citing:

@misc{bhattacharyya2021sadet3d,
      title={SA-Det3D: Self-Attention Based Context-Aware 3D Object Detection}, 
      author={Prarthana Bhattacharyya and Chengjie Huang and Krzysztof Czarnecki},
      year={2021},
      eprint={2101.02672},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Acknowledgement

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
open-mmlab/OpenPCDet

OpenPCDet Toolbox for LiDAR-based 3D Object Detection.

5.8k
Oct 8, 2025
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryPython
ultralytics/ultralytics

Ultralytics YOLO27, YOLO26, YOLO11, YOLOv8 — object detection, instance segmentation, semantic segmentation, image classification, pose estimation, object tracking

63.9k
Dec 1, 2026
RepositoryPython
ultralytics/yolov5

Ultralytics YOLOv5 in PyTorch for object detection, instance segmentation, classification, training, and export.

58.3k
Nov 23, 2026
RepositoryPython
open-mmlab/mmdetection

OpenMMLab Detection Toolbox and Benchmark

33.1k
Aug 21, 2024
RepositoryPython
WZMIAOMIAO/deep-learning-for-image-processing

deep learning for image processing including classification and object-detection etc.

26.5k
Jan 1, 2026
RepositoryPython
fundamentalvision/BEVFormer

[ECCV 2022] This is the official implementation of BEVFormer, a camera-only framework for autonomous driving perception, e.g., 3D object detection and semantic map segmentation.

4.7k
Aug 15, 2024
RepositoryPython
zubair-irshad/NeRF-MAE

[ECCV 2024] Pytorch code for our ECCV'24 paper NeRF-MAE: Masked AutoEncoders for Self-Supervised 3D Representation Learning for Neural Radiance Fields

106
Mar 20, 2025
RepositoryPython
Comfy-Org/ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

149.6k
Dec 2, 2026