Git Product home page Git Product logo

pointpillars_tensorrt's Introduction

Lidar-detection

ONLY support python 3.6+, pytorch 1.0.0+. Tested in Ubuntu 16.04.

雷达驱动

通过更改雷达驱动使驱动使之可以输出通道ring信息,为算法提供支持 使用方法参考rslidar

Install

1. Clone code

git clone https://https://github.com/tt-leader/Lidar-detection.git

2. Install dependence python packages

pip3 install numba pyntcloud pyyaml rospkg pyquaternion protobuf

安装ros_numpy:

git clone https://github.com/eric-wieser/ros_numpy
cd ros_numpy && python setup.py install

LLVM_CONFIG找不到的问题:

sudo apt-get install llvm-8
export LLVM_CONFIG=/usr/bin/llvm-config-8
pip3 install numba

No lapack/blas resources found 问题:

apt-get install gfortran libopenblas-dev liblapack-dev
pip3 install scipy

Follow instructions in spconv to install spconv.

can not find CUDNN问题:添加软连接

sudo ln -s libcudnn.so.7 libcudnn.so

Follow instructions in torch2trt to install torch2trt

3. 安装ros 依赖:

apt install ros-melodic-rospy ros-melodic-ros-base ros-melodic-sensor-msgs ros-melodic-jsk-recognition-msgs ros-melodic-visualization-msgs

4. Setup cuda for numba

you need to add following environment variable for numba.cuda, you can add them to ~/.bashrc:

export NUMBAPRO_CUDA_DRIVER=/usr/lib/aarch64-linux-gnu/libcuda.so
export NUMBAPRO_NVVM=/usr/local/cuda/nvvm/lib64/libnvvm.so
export NUMBAPRO_LIBDEVICE=/usr/local/cuda/nvvm/libdevice

5. add Lidar-detection/ to PYTHONPATH

Usage

生成tensorrt引擎

  1. 进入工程根目录
cd ./Lidar-detection/second
  1. 生成tensorrt引擎
python utils/convert2rt.py --model_dir ./weights/pointpillarsBG --bg_filter  
  1. 启动ros推理节点
python inference_ros.py --tensorrt  --model_dir ./weights/pointpillarsBG --bg_filter --tensorrt
  1. 启动rviz可视化
rviz -d rviz/lidar_detection.rviz

Concepts

  • Kitti lidar box

A kitti lidar box is consist of 7 elements: [x, y, z, w, l, h, rz], see figure.

Kitti Box Image

All training and inference code use kitti box format. So we need to convert other format to KITTI format before training.

  • Kitti camera box

A kitti camera box is consist of 7 elements: [x, y, z, l, h, w, ry].

pointpillars_tensorrt's People

Contributors

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