Giter Site home page Giter Site logo

votenet-kitti's Introduction

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

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.