Browse by type
English | 简体中文


This repository provides accelerated deployment cases of deep learning CV popular models, and cuda c supports dynamic-batch image process, infer, decode, NMS.
There are two ways to compile model(pth or onnx):
pth -> trt
coming soon.
pth -> onnx -> trt:
The following environments have been tested:
Ubuntu18.04
Windows10
Python 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
Installation Tutorial: - Install For 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 /home/feiyull/TensorRT-8.4.2.4)
start to build project: For example:yolov8
At present, more than 30 models have been implemented, and some onnx files of them are organized as follows:
| model | tesla v100(32G) | weiyun | google driver |
|---|---|---|---|
| yolov3 | weiyun | google driver | |
| yolov4 | weiyun | google driver | |
| yolov5 | weiyun | google driver | |
| yolov6 | weiyun | google driver | |
| yolov7 | weiyun | google driver | |
| yolov8 | weiyun | google driver | |
| yolox | weiyun | google driver | |
| yolor | weiyun | google driver | |
| u2net | weiyun | google driver | |
| libfacedetection | weiyun | google driver | |
| facemesh | weiyun | google driver | |
| pphumanseg | weiyun | google driver | |
| efficientdet | weiyun | google driver | |
| yolov8-pose | weiyun | google driver | |
| yolov8-seg | weiyun | google driver | |
| yolonas | weiyun | google driver | |
| more...(🚀: I will be back soon!) |
🍉We will test the time of all models on tesla v100 and A100! Now let's preview the performance of yolov8n on RTX2070m(8G):
| model | video resolution | model input size | GPU Memory-Usage | GPU-Util |
|---|---|---|---|---|
| yolov8n | 1920x1080 | 8x3x640x640 | 1093MiB/7982MiB | 14% |

cost time per frame
<img src="https://github.com/FeiYull/TensorRT-Alpha/raw/v0.1/github/yolov8n-Offical(left)vsOurs(right).jpg"
alt="无法显示图片时显示的文字"
style="zoom:80%"/>
yolov8n : Offical( left ) vs Ours( right )
<img src="https://github.com/FeiYull/TensorRT-Alpha/raw/v0.1/github/yolov7-tiny-Offical(left)vsOurs(right).jpg"
alt="无法显示图片时显示的文字"
style="zoom:80%"/>
yolov7-tiny : Offical( left ) vs Ours( right )
<img src="https://github.com/FeiYull/TensorRT-Alpha/raw/v0.1/github/yolov6s-v6.3-Offical(left)vsOurs(right).jpg"
alt="无法显示图片时显示的文字"
style="zoom:80%"/>
yolov6s : Offical( left ) vs Ours( right )
<img src="https://github.com/FeiYull/TensorRT-Alpha/raw/v0.1/github/yolov5s-v5.7-Offical(left)vsOurs(right)-img2.jpg"
alt="无法显示图片时显示的文字"
style="zoom:80%"/>
yolov5s : Offical( left ) vs Ours( right )
<img src="https://github.com/FeiYull/TensorRT-Alpha/raw/v0.1/github/yolov5s-v5.7-Offical(left)vsOurs(right)-img1.jpg"
alt="无法显示图片时显示的文字"
style="zoom:80%"/>
yolov5s : Offical( left ) vs Ours( right )
<img src="https://github.com/FeiYull/TensorRT-Alpha/raw/v0.1/github/libfacedet-Offical(left)vsOurs(right-topk-2000).jpg"
alt="无法显示图片时显示的文字"
style="zoom:100%"/>
libfacedetection : Offical( left ) vs Ours( right topK:2000)
@misc{FeiYull_TensorRT-Alpha,
author = {FeiYull},
title = {TensorRT-Alpha},
year = {2023},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {https://github.com/FeiYull/tensorrt-alpha}
}
$ claude mcp add TensorRT-Alpha \
-- python -m otcore.mcp_server <graph>