Skip to content

Implementation based on Argoverse2-Sensors and Openpcdet to realize the detection and tracking of surrounding agents by fusing lidar and images information

Notifications You must be signed in to change notification settings

BroJunn/sensor_fusion_of_lidar_cams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sensor Fusion of Lidar and Cameras

This repository provides code and guidelines for sensor fusion of lidar and cameras. Below are the steps for installation and bug fixes.

Table of Contents

Visualization

示例GIF

Prerequisites

  • Python 3.8/3.9/3.10
  • Follow official documentation.
  • Notice: The same version of local cuda and corresponding pytorch-cuda is mandatory for the installation of Openpcdet.

Installation

OpenPCDet

First, install OpenPCDet following the guidelines provided in their official documentation.

Other Dependencies

After installing OpenPCDet, install other required Python packages by running:

pip install open3d==0.17.0 kornia==0.5.8 opencv-python==4.8.0.76 av2

Bug Fixes

Bug related to Argoverse2 in Openpcdet

To resolve a bug related to inference data from Argoverse2, you'll need to manually update the `box_colormap` in `tools/visual_utils/open3d_vis_utils.py` to the following:

box_colormap = [
    [1, 1, 1],
    [0, 1, 0],
    [0, 1, 1],
    [1, 1, 0],
    [1, 0, 0],
    [0, 0, 1],
    [1, 0, 1],
    [0.5, 0.5, 0.5],
    [0.5, 0, 0],
    [0, 0.5, 0],
    [0, 0, 0.5],
    [0.5, 0.5, 0],
    [0.5, 0, 0.5],
    [0, 0.5, 0.5],
    [0.7, 0.3, 0.3],
    [0.8, 0.6, 0.3],
    [0.2, 0.8, 0.5],
    [0.6, 0.2, 0.7],
    [0.3, 0.7, 0.8],
    [0.8, 0.3, 0.2],
    [0.3, 0.2, 0.8],
    [0.8, 0.5, 0.6],
    [0.4, 0.7, 0.2],
    [0.7, 0.2, 0.4],
    [0.2, 0.4, 0.7],
    [0.6, 0.3, 0.5],
    [0.5, 0.6, 0.3],
    [0.4, 0.2, 0.1],
    [0.1, 0.4, 0.2],
    [0.2, 0.1, 0.4]
]

Invalid Official Checkpoint of Openpcdet

Please note that the pretrained Argoverse2 model in the official repository has issues. Use the one provided in the `tools/argo2_model` directory instead.

Download Dataset

Download dataset in this link Argoverse2. The root_path has to be arranged like this (just the default format):

- root_path
    - scene_ids (e.g. 00a6ffc1-6ce9-3bc3-a060-6006e9893a1a)
        - calibration
            - egovehicle_SE3_sensor.feather
            - intrinsics.feather
        - map
            ...
        - sensors
            - cameras
                - ring_front_center
                    - xxx.jpg
                    ...
                - ring_front_left
                - ring_front_right
                ...
                - stereo_front_left
                - stereo_front_right
            - lidar
                - xxx.feather
        - annotations.feather
        - city_SE3_egovehicle.feather

Get Started

Get started by running:

python sensor_fusion/main.py --root_path YOUR/DATASET/PATH

About

Implementation based on Argoverse2-Sensors and Openpcdet to realize the detection and tracking of surrounding agents by fusing lidar and images information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages