# yolov11-trt
[![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)
This repository contains a C++ implementation of YOLOv11, optimized with TensorRT for fast and efficient real-time inference.
### Dependencies
- **C++**:
- OpenCV
- TensorRT
- **Python**:
```bash
pip install --upgrade ultralytics
```
### Installation
#### Repository clone & build
```bash
git clone https://github.com/fbasatemur/yolov11-trt.git
cd yolov11-trt*
```
```bash
mkdir build && cd build
cmake ..
cmake --build . --config Release
```
## Usage
### Exporting the Model
Modify the export.py script for the desired model name, then run it to export the YOLOv11 model to ONNX.
```bash
python export.py
```
### Create a TRT Engine
Convert the ONNX model to a TRT engine:
```bash
./yolov11-trt yolo11.onnx "yolov11.engine"
```
### Running Inference
Perform object detection on an image:
```bash
./yolov11-trt yolo11.engine "img1.jpg"
```
Perform object detection on a video:
```bash
./yolov11-trt yolo11.engine "vid1.mp4"
```
#### References
- https://github.com/spacewalk01/yolov11-tensorrt
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
yolov11张量模型_yolov11-trt.zip (28个子文件)
yolov11-trt-main
CMakeLists.txt 1KB
src
yolov11.cpp 8KB
macros.h 461B
preprocess.h 307B
cuda_utils.h 1KB
preprocess.cu 4KB
logging.h 16KB
common.h 3KB
yolov11.h 1KB
LICENSE 34KB
export.py 205B
main.cpp 4KB
build
CMakeFiles
cmake.check_cache 85B
3.22.1
CompilerIdC
CMakeCCompilerId.c 24KB
CMakeDetermineCompilerABI_CXX.bin 16KB
CMakeCXXCompiler.cmake 5KB
CMakeSystem.cmake 422B
CMakeCCompiler.cmake 2KB
CMakeDetermineCompilerABI_C.bin 16KB
CompilerIdCXX
CMakeCXXCompilerId.cpp 24KB
yolov11-tensorrt.dir
src
yolov11-tensorrt_generated_preprocess.cu.o.cmake.pre-gen 12KB
yolov11-tensorrt_generated_preprocess.cu.o.depend 46B
CMakeOutput.log 48KB
CMakeCache.txt 23KB
.cmake
api
v1
query
client-vscode
query.json 144B
.gitignore 270B
README.md 1KB
yolov11 tensorrt model_yolov11-trt
项目内附说明
如果解压失败请用ara软件解压.txt 42B
共 28 条
- 1
资源评论
普通网友
- 粉丝: 1127
- 资源: 5293
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功