GithubHelp home page GithubHelp logo

wanhaipeng / tiny-tensorrt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zerollzeng/tiny-tensorrt

0.0 1.0 0.0 616 KB

A simple, efficient, easy-to-use Nvidia TensorRT wrapper for CNN, support c++ and python.

CMake 1.82% C++ 96.50% C 1.30% Python 0.38%

tiny-tensorrt's Introduction

image

tiny-tensorrt

A simple, efficient, easy-to-use nvidia TensorRT wrapper for cnn with c++ and python api,support caffe, uff and onnx format models. you will be able to deploy your model with tiny-tensorrt in few lines of code!

Trt* net = Trt();
net->CreateEngine(onnxModel, engineFile,maxBatchSize, int mode);
net->CopyFromHostToDevice(input, inputBindIndex);
net->Forward();
net->CopyFromDeviceToHost(output, outputBindIndex)

News

Upgrade to TensorRT 8.0 API, checkout 7.x branch for use under TensorRT 7 - 2021-7-9

Better int8 calibrator api, refer to User Guide - 2021-5-24

Remove caffe and uff support, convert to onnx with tf2onnx or keras.onnx. - 2021-4-23

Want to implement your own onnx plugin and don't know where to start? - 2021-1-29

onnx plugin template

Features

  • Add DLA support
  • Custom plugin tutorial and well_commented sample
  • Custom onnx model output node
  • Engine serialization and deserialization
  • INT8 support
  • Python api support
  • Set device

System Requirements

cuda 10.0+

TensorRT 7

For python api, python 2.x/3.x and numpy in needed

Installation

Make sure you had install dependencies list above, if you are familiar with docker, you can use official docker

# clone project and submodule
git clone --recurse-submodules -j8 https://github.com/zerollzeng/tiny-tensorrt.git

cd tiny-tensorrt

mkdir build && cd build && cmake .. && make

Then you can intergrate it into your own project with libtinytrt.so and Trt.h, for python module, you get pytrt.so

Docs

User Guide

Custom Plugin Tutorial (En-Ch)

About License

For the 3rd-party module and TensorRT, you need to follow their license

For the part I wrote, you can do anything you want

tiny-tensorrt's People

Contributors

zerollzeng avatar

Watchers

James Cloos 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.