Giter Club home page Giter Club logo

pp's Introduction

Introduction

This repository is an implementation of PointPainting on the Waymo Open Dataset.

Dataset

Download v1.4.1 of the Waymo Open Dataset following the instruction. Format the segments under the following folder structure.

waymo
    |- waymo_format
        |- training
        |- validation
        |- testing

Environment

Create a conda environment

  conda create -n pp python=3.10
  conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
  conda install tqdm
  conda install numba==0.57
  pip install opencv-python
  pip install open3d
  pip install tensorboard
  pip install waymo-open-dataset-tf-2-11-0==1.6.1

Compile ops

    conda activate pp
    cd ops
    python setup.py develop

Preparing the Dataset

First convert the dataset to the KITTI format. This will create a kitti_format folder under your waymo directory.

  cd data_prep
  python convert_data.py --waymo_root [path/to/waymo]

Next paint the lidar points using a trained segmentation model.

cd painting
python painting.py --training_path [path/to/waymo]/kitti_format/training/ --model_path [path/to/segmentation/model]

Create the info file used for training

  cd data_prep
  python create_info.py --waymo_root [path/to/waymo] --painted --create_info

Training

To train on painted lidar points.

  conda activate pp
  torchrun --nproc_per_node=[gpus] train.py --data_root [path/to/waymo]/kitti_format/  --painted --cam_sync --save-path [checkpoint/path] --max_epoch [num of epochs] --ckpt_freq_epoch [freq]

Evaluation

To evaluate the mAP.

conda activate pp
python evaluate.py --ckpt [checkpoint/path] --data_root [path/to/waymo]/kitti_format/ --painted --cam_sync

To perform inference

conda activate pp
python inference.py --data_root [path/to/waymo]/kitti_format --lidar_detector [pointpillars/checkpoint/path] --segmentor [deeplab/checkpoint/path] --painted --cam_sync

Acknowledements

This repository makes use of the open source from PointPillars, MMDet3D, DeepLabV3Plus-Pytorch, and PointPainting.

pp's People

Contributors

rod409 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.