Giter VIP home page Giter VIP logo

af3d's Introduction

AF3D: Asynchronous Multi-Modal Fusion based 3D Object Detection

1.Introduction

This repository is the PyTorch implementation of the paper : Asynchronous Multi-Modal Fusion based 3D Object Detection.

The code includes 3 parts:


PART0: 00_3DMotionEstimation:

Self-Supervised Monocular Scene Flow Estimation

Junhwa Hur and Stefan Roth | Paper | Supplemental | Arxiv

Features: Scene flow estimation from two temporally consecutive monocular images.


PART1: 01_AF3D:

Features: Asynchronous multi-modal fusion to generate LiDAR point cloud for asynchronous frame.


PART2: 02_Unified3DDetection:

MMDetection3D is an open source object detection toolbox based on PyTorch, towards the next-generation platform for general 3D detection. It is a part of the OpenMMLab project developed by MMLab.

Model Zoo, supported methods and backbones are shown in the below table.

ResNet ResNeXt SENet PointNet++ HRNet RegNetX Res2Net
SECOND
PointPillars
FreeAnchor
VoteNet
H3DNet
3DSSD
Part-A2
MVXNet
CenterPoint
SSN

Features: Since image modality is transferred to LiDAR modality, all LiDAR-based, fusion-based 3D object detectors can be applied.


PART 4: 03_eAP


2. Getting Started

2.1 Enviroment

Follow the Readme.md of SceneFlow and mm3DDet to install the required enviroment.

2.2 Dataset

Download the following datasets from KITTI Benchmark.

(1) KITTI RAW Dataset

(2) KITTI 3D Object Detection Dataset

(3) KITTI Scene Flow Dataset (For training Scene Flow Estimation Algorithms, could be ignored.)

Retrive previous frame of 3D object detection dataset

python3 01_AF3D/01_prepare_data.py

# The following parameter need to be modified:
# dKITTI3D = '../data/kitti_3d'
# dKITTIRAW = '../data/kitti_raw/data_raw'
# dsavepath = '../data/kitti_asyn3d'
# dsaveimage2 = os.path.join(dsavepath,'image_2')
# dsaveimage3 = os.path.join(dsavepath,'image_3')
# dsavevelodyne = os.path.join(dsavepath,'velodyne')
# dsavecalibcam = os.path.join(dsavepath,'calib_cam')
# dsavecalibvelo = os.path.join(dsavepath,'calib_velo')

2.3 Generate LiDAR for Asynchronous Frame

# Generate LiDAR 
./00_3DMotionEstimation/scripts/eval_monosf_selfsup_kitti_train.sh --save_disp=True, --save_disp2=True --save_flow=True

2.3 Asynchronous Multi-Modal Fusion

# Generate LiDAR 
python3 01_AF3D/02_sceneflow_recover_pcl.py

# The following parameter need to be modified:
# ddisp0 = '../data/monosf_selfsup_kitti_3ddet/disp_0'
# ddisp1 = '../data/monosf_selfsup_kitti_3ddet/disp_1'
# dflow = '../data/monosf_selfsup_kitti_3ddet/flow'
# dasyn3d = '../data/kitti_asyn3d'
# dbinsave = '../data/kitti_asyn3d_recbin'
# dtxtlabel = '../data/kitti_3d/training/label_2'
# dtxtcalib = '../data/kitti_3d/training/calib'

2.4 3D Object Detection

# Train generated LiDAR/LiDAR
python3 tools/train.py ${CONFIG_FILE} --work_dir ${YOUR_WORK_DIR} [optional arguments]
# Validation
python3 tools/test.py ${CONFIG_FILE} ${CHECKPOINT_FILE} [--out ${RESULT_FILE}] [--eval ${EVAL_METRICS}] [--show]

Follow the instruction of mm3DDet.

2.5 Metric for Evaluation

# Evaluation 
python3 04_eAP/demo.py

af3d's People

Contributors

sliverk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.