Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 2.69 KB

README.md

File metadata and controls

47 lines (27 loc) · 2.69 KB

votenet-kitti

Introduction

This repository is the VoteNet code implementation on KITTI Benchmark. The main parts of the code, including the network and loss computing,are changed from the offical code release of the VoteNet. The dataset and data augmentation part is changed from PointRCNN offcial code release. Comapred with VoteNet offical code release, the main changes are the codes in "kitti" folder.

Installation

Install Pytorch and Tensorflow (for TensorBoard). It is required that you have access to GPUs. Matlab is required to prepare data for SUN RGB-D. The code is tested with Ubuntu 16.04, Pytorch v1.1, TensorFlow v1.12, CUDA 9.0 and cuDNN v7.5.

Note in offical VoteNet: there is some incompatibility with newer version of Pytorch (e.g. v1.3), which is to be fixed.

And the installation details can be found in official VoteNet code.

Dataset preparation

The dataset preparation details can be found in official PointRCNN code.

Fisrt, please download the official KITTI 3D object detection dataset and organize the downloaded files as illustrated in PointRCNN.

Then, to use the ground truth sampling data augmentation for training, please generate the ground truth database as follows:

cd kitti
python generate_gt_database.py

Training and evaluating

To train a new VoteNet model on KITTI data: python train.py --dataset sunrgbd --log_dir log_sunrgbd

To test the trained model with its checkpoint: python eval.py --dataset sunrgbd --checkpoint_path log_sunrgbd/checkpoint.tar --dump_dir eval_sunrgbd --cluster_sampling seed_fps --use_3d_nms --use_cls_nms --per_class_proposal

The details can be found in VoteNet official code release

Visualization

I have added some visualization codes in kitti_vote_dataset.py, which are commented out for the convenience of training. And the visualizations are as follows:

This is the visualization of points and 3D boxes in one augmentated scene. teaser

This is the visualization of the votes in one augmentated scene. The groundtruth votes are boxes's centers. teaser

This is the detection results visualization. The red boxes are from prediction results and the yellow ones are from groundtruth boxes. teaser