<div align="center">
TensorRT-YOLOv9
===========================
[![python](https://img.shields.io/badge/python-3.10.12-green)](https://www.python.org/downloads/release/python-31012/)
[![cuda](https://img.shields.io/badge/cuda-11.6-green)](https://developer.nvidia.com/cuda-downloads)
[![trt](https://img.shields.io/badge/TRT-8.6-green)](https://developer.nvidia.com/tensorrt)
[![mit](https://img.shields.io/badge/license-MIT-blue)](https://github.com/spacewalk01/TensorRT-YOLOv9/tree/main?tab=MIT-1-ov-file#readme)
<div align="left">
This repo hosts a C++ and python implementation of the [YOLOv9](https://github.com/WongKinYiu/yolov9) state of the art object detection model, leveraging the TensorRT API for efficient real-time inference.
<p align="center" margin: 0 auto;>
<img src="assets/traffic.gif" width="360px" />
<img src="assets/parkinglot.gif" width="360px" />
</p>
## ð Usage
#### Python
``` shell
cd <this project path>/python
python yolov9_trt.py --engine yolov9-c.engine --data images --outdir output
```
#### C++
``` shell
cd <this project path>/build/release
# infer an image
yolov9-tensorrt.exe yolov9-c.engine test.jpg
# infer a folder(images)
yolov9-tensorrt.exe yolov9-c.engine data
# infer a video
yolov9-tensorrt.exe yolov9-c.engine test.mp4 # the video path
```
## ð ï¸ Build
#### Python
The following command will install tensorrt for python:
``` shell
cd <tensorrt installation path>/python
pip install cuda-python
pip install tensorrt-8.6.0-cp310-none-win_amd64.whl
pip install opencv-python
```
#### C++
Refer to our [docs/INSTALL.md](https://github.com/spacewalk01/tensorrt-yolov9/blob/main/docs/INSTALL.md) for detailed installation instructions.
- Cuda preprocessing: [main branch](https://github.com/spacewalk01/TensorRT-YOLOv9/tree/main)
- Cpu preprocessing: [cpu-preprocessing branch](https://github.com/spacewalk01/TensorRT-YOLOv9/tree/cpu_preprocessing)
## ð¥ï¸ Requirement
- TensorRT
- CUDA, CudaNN
- C++ compiler with C++17 or higher support
- CMake 3.14 or higher
- OpenCV
## ð± Examples
Parameters for inference:
```
Confidence threshold : 0.2
NMS threshold : 0.3
Model : yolov9-e (with FP32)
```
Inference result:
<p align="center" margin: 0 auto;>
<img src="assets/street_o.jpg" />
</p>
Original image: https://www.flickr.com/photos/nicolelee/19041780
## ð Acknowledgement
This project is based on the following awesome projects:
- [YOLOv9](https://github.com/WongKinYiu/yolov9) - YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information.
- [TensorRT](https://github.com/NVIDIA/TensorRT/tree/release/8.6/samples) - TensorRT samples and api documentation.
- [TensorRTx](https://github.com/wang-xinyu/tensorrtx) - Implementation of popular deep learning networks with TensorRT network definition API.
## ð See also
- [Yolov9-Bytetrack](https://github.com/spacewalk01/yolov9-bytetrack-tensorrt) - Integration of YOLOv9 with ByteTracker using the TensorRT API.
没有合适的资源?快使用搜索试试~ 我知道了~
基于C++部署yolov9的tensorrt源码+部署步骤模型.zip
共18个文件
h:5个
md:3个
txt:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 101 浏览量
2024-05-15
11:17:44
上传
评论
收藏 11.72MB ZIP 举报
温馨提示
基于C++部署yolov9的tensorrt源码+部署步骤模型.zip基于C++部署yolov9的tensorrt源码+部署步骤模型.zip基于C++部署yolov9的tensorrt源码+部署步骤模型.zip基于C++部署yolov9的tensorrt源码+部署步骤模型.zip基于C++部署yolov9的tensorrt源码+部署步骤模型.zip基于C++部署yolov9的tensorrt源码+部署步骤模型.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于C++部署yolov9的tensorrt源码+部署步骤模型.zip (18个子文件)
code
CMakeLists.txt 1KB
assets
parkinglot.gif 3.93MB
street_o.jpg 1.49MB
traffic.gif 6.42MB
src
yolov9.cpp 7KB
macros.h 489B
preprocess.h 319B
cuda_utils.h 2KB
preprocess.cu 4KB
logging.h 17KB
yolov9.h 1KB
main.cpp 4KB
docs
INSTALL.md 2KB
reparameterize.py 4KB
python
readme.md 764B
yolov9_trt.py 18KB
requirements.txt 129B
README.md 3KB
共 18 条
- 1
资源评论
FL1768317420
- 粉丝: 4500
- 资源: 4773
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功