Giter Site home page Giter Site logo

mattherdelma / tensorrt-alpha Goto Github PK

View Code? Open in Web Editor NEW

This project forked from feiyull/tensorrt-alpha

0.0 0.0 0.0 25.75 MB

TensorRT-Alpha implements CUDA C accelerated deployment of more than 30 models, including but not limited to yolov8, yolov7, yolov6, yolov5, yolov4, yolov3, yolox, yolor and so on, the other 10 more CNN models are being sorted out, vision transformer related models will be updated in the future.CUDA is all you need, best wish!

C++ 49.54% Python 8.07% C 0.26% Cuda 32.03% CMake 10.10%

tensorrt-alpha's Introduction

TensorRT-Alpha

Cuda

English | 简体中文

Introduce

This repository provides accelerated deployment cases of deep learning CV popular models, and cuda c accelerated methods for pre-processing and post-processing of mainstream models. Most of the model transformation process is torch->onnx->tensorrt. There are two ways to obtain onnx files:

  • According to the network disk provided by this repository, download ONNX directly
  • Follow the instructions provided in this repository to manually export ONNX from the relevant source code framework.
graph LR
    pytorch/tensorflow -->onnx-->tensorrt

Update

  • 2023.01.01 🔥 update yolov3, yolov4, yolov5, yolov6
  • 2023.01.04 🍅 update yolov7, yolox, yolor
  • 2023.01.05 🎉 update u2net, libfacedetction
  • 2023.01.08 🚀 The whole network is the first to support yolov8

Installation

platforms: windows and linux. The following environments have been tested:

ubuntu18.04

  • cuda11.3
  • cudnn8.2.0
  • gcc7.5.0
  • tensorrt8.4.2.4
  • opencv3.x、4.x
  • cmake3.10.2

windows10

  • cuda11.3
  • cudnn8.2.0
  • visual studio 2017 and 2019
  • tensorrt8.4.2.4
  • opencv3.x、4.x

python dependent environment(optional):

# install miniconda first
conda create -n tensorrt-alpha python==3.8 -y
conda activate tensorrt-alpha
git clone https://github.com/FeiYull/tensorrt-alpha
cd tensorrt-alpha
pip install -r requirements.txt  

Quick Start

ubuntu18.04

set your TensorRT_ROOT path:

git clone https://github.com/FeiYull/tensorrt-alpha
cd tensorrt-alpha/cmake
vim common.cmake
# set var TensorRT_ROOT to your path in line 20, eg:
# set(TensorRT_ROOT /root/TensorRT-8.4.2.4)

start to build project: For example:yolov7

windows10

waiting for update

Onnx

At present, more than 30 models have been implemented, and some onnx files of them are organized as follows:

Visualization



some precision alignment renderings comparison:

无法显示图片时显示的文字
yolov8n : Offical( left ) vs Ours( right )

无法显示图片时显示的文字
yolov7-tiny : Offical( left ) vs Ours( right )

无法显示图片时显示的文字
yolov5s : Offical( left ) vs Ours( right )

无法显示图片时显示的文字
libfacedetction : Offical( left ) vs Ours( right topK:4000)

Reference

[0].https://github.com/NVIDIA/TensorRT
[1].https://github.com/onnx/onnx-tensorrt
[2].https://github.com/NVIDIA-AI-IOT/torch2trt
[3].https://github.com/shouxieai/tensorRT_Pro
[4].https://github.com/opencv/opencv_zoo

tensorrt-alpha's People

Contributors

feiyull avatar slamfuture 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.