Giter Site home page Giter Site logo

perhapswo / centerpointtensorrt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haohaonju/centerpoint

0.0 0.0 0.0 74.58 MB

A trt version of CenterPoint model for Lidar Detection

License: MIT License

C++ 87.17% CMake 0.88% Python 0.72% C 3.82% Cuda 7.41%

centerpointtensorrt's Introduction

An Lidar Object Detection project implemented by TensorRT

The project is a TensorRT version of CenterPoint, an 3D object detection model using center points in the bird eye view. Code is written according to the project

Besides, it is running inference on WaymoOpenSet

Setup

The project has been tested on Ubuntu18.04 and Ubuntu20.04, It mainly relies on TensorRT and cuda as 3rd-party package, with the following versions respectively:

vTensorRT : 8.0.1.6

vCuda : 11.3

Note that this project does not rely on PCL and Boost by now. However, they may be used in the future and has been written in CMakeLists.txt.

After installation, you may then build the project by executing the following commands:

cd /YOUR/PATH/TO/centerpoint
mkdir centerpoint_pp_baseline_score0.1_nms0.7 && cd src
mkdir build && cd build
cmake .. && make
./centerpoint

By default, the project loads the serialized engine files to do inference, and the engine files are created by the onnx files we provided and are set as float16. You can also build from onnx files by setting params.load_engine = false in samplecenterpoint.cpp and provide the onnx file path. In that way, you may decide whether to use fp16 or fp32.

What has been done?

To futher learn the detailed documentation, please refer to the following computation graph and doc file. graph

Computation Speed

Acceleration is the main aim we want to archieve, and therefore we do most of computation(including preprocess & postprocess) on GPU. The below table gives the average computation speed (by millisecond) of every computation module, and it is tested on RTX3080, with all the 39987 waymo validation samples. As illustrated above, the engine is set to float16, and eveluation metric shows no difference on fp32 or fp16.

Preprocess PfeInfer ScatterInfer RpnInfer Postprocess
1.61 5.88 0.17 6.89 2.37

Detection result shows below: gif

Acknowledgements

This project refers to some codes from:

CenterPoint

TensorRT

CenterPoint-PointPillars

centerpointtensorrt's People

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.