Coder Social home page Coder Social logo

trellixvulnteam / tensorrt-centernet-3d_idzi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qjizhi/tensorrt-centernet-3d

0.0 0.0 0.0 44.19 MB

tensorrt5, centernet, 3d detection, kitti, centerface, deform conv, int8,

License: MIT License

C++ 70.20% Python 10.82% C 0.84% Cuda 14.75% CMake 2.26% Dockerfile 0.41% SWIG 0.73%

tensorrt-centernet-3d_idzi's Introduction

TensorRT-CenterNet-3D

Most parts of this Repo are based on CaoWGG, Thanks for that great work, and I didn't find an open-sourced 3d-detection based on CenterNet (2020.06). So I followed the work of Cao and test the 3D detection based on CenterNet with the acceleration of TensorRT.

1. Enviroments

NVIDIA Quadro M4000

pytorch 1.1
ubuntu 16.04
TensorRT 5.0
onnx-tensorrt v5.0
cuda 10.1

2. Performance

image

3. How to use

  • download the ddd_3dop.pth from here
  • Convert CenterNet-3D model to onnx. See here for details, Use netron to observe whether the output of the converted onnx model is (('hm', 3), ('dep', 1), ('rot', 8), ('dim', 3), ('wh', 2), ('reg', 2))
  • set the OPENCV path in ./src/CMakeLists.txt ,set the TENSORRT path in ./CMakeLists.txt
  • uncomment the configs of 3-D model in ./include/ctdetConfig.h and comment others.
  • build
git clone https://github.com/Qjizhi/TensorRT-CenterNet-3D.git
cd TensorRT-CenterNet-3D
mkdir build
cd build && cmake .. && make
cd ..
  • build the engie and do the inference
./buildEngine -i model/ddd_3dop.onnx -o model/ddd_3dop.engine
./runDet -e model/ddd_3dop.engine -i 000292.png -c test.h264

4. Good to know

  • This codes are just for testing and will not be well maintained, for any suggestions and improvements, please propose an issue.
  • With the help of TensorRT, the inference time has been shortened from 0.227s to 98.89ms.
  • The functions of previous Repo are still remained, for exmaple, centerface...

Related projects

tensorrt-centernet-3d_idzi's People

Contributors

qjizhi avatar trellixvulnteam 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.