Skip to content

wyddmw/votenet-kitti

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.0, CUDA 10.0

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.

As officially mentioned in VoteNet implementation, the following dependence is required:

opencv-python
plyfile
'trimesh>=2.35.39,<2.35.40'
'networkx>=2.2,<2.3'

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.7%
  • Cuda 5.0%
  • C++ 3.6%
  • C 0.7%