Skip to content

This repository is an official implementation of HVDetFusion

License

Notifications You must be signed in to change notification settings

HVXLab/HVDetFusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HVDetFusion

This is the official implementation of HVDetFusion. In this work, we integrates the radar inputs into a unified bev space based on BEVDepth. We use a novel bev-based method to associate the radar detections to their corresponding camera detections, which is modified from CenterFusion. Firstly, Objects in the bird's-eye view are detected using the BevDepth4D detection network. Then we use the spatial position and size information of the detected objects to filter the effective information in the radar detection data, and use the effective radar point cloud to generate radar-based feature maps. Finally, the radar feature map is fused with the feature information of the object detected in the corresponding image to enhance the regression accuracy of attributes such as object depth and velocity.

For more details, please refer to our paper, and our paper is comming soon.

image

Install

Step 0. Download and install Miniconda from the official website.

Step 1. Create a conda environment and activate it.

conda create --name hvdetfusion python=3.8 -y
conda activate hvdetfusion

Step 2. Install PyTorch following official instructions,

conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia

Step 3. Install mmdet3d

pip install mmcv-full==1.6.2
pip install mmsegmentation==0.30.0

git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
git checkout v2.28.1  
pip install -r requirements/build.txt
pip install -v -e .

git clone https://github.com/open-mmlab/mmdetection3d.git
cd mmdetection3d
git checkout v1.0.0rc4
pip install -v -e .  # or "python setup.py develop"

pip install  numba==0.53.0
pip install numpy==1.23.5

Step 4. Install onnx

pip install onnx
pip install onnxruntime
pip install onnxruntime-gpu

Step 5. install dcnv3

cd intern4j/ops_dcnv3
rm -f build/
bash make.sh

Step 6. HVDetFusion

cd {HVDetFusion PATH}
pip install -v -e .

Prepare Datasets

  • Prepare nuScenes dataset Download nuScenes 3D detection data and unzip all zip files. The folder structure should be organized as follows before our processing.
HVDetFusion
├── mmdet3d
├── tools
├── configs
├── data
│   ├── nuscenes
│   │   ├── maps
│   │   ├── samples
│   │   ├── sweeps
│   │   ├── v1.0-test
|   |   ├── v1.0-trainval
  • get *.pkl file by command:
python3 tools/create_data_hvdet.py

Download checkpoints

Inference

bash hvdet_test.sh

Acknowledgement

This work is built on the open-sourced BevDet,BevDepth and the published code of CenterFusion.

License

This project is released under the Apache 2.0 license.

About

This repository is an official implementation of HVDetFusion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published