# 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
普通网友
- 粉丝: 1127
- 资源: 5292
最新资源
- 带载流子密度的双温模型matlab,电子晶格温度,电子密度,飞秒激光源模拟,有限元法解偏微分方程 德鲁德模型,带载流子密度变化
- GP026-仓库系统.zip
- HttpCanary_3.3.6.apk
- 线控制动系统仿真 Carsim和Simulink联合仿真线控制动系统BBW-EMB系统 包含简单的制动力分配和四个车轮的线控制动机构 四个车轮独立BLDCM三环PID闭环制动控制,最大真实还原线
- Comsol脉冲涡流无损检测仿真 图一:脉冲涡流仿真,检出电压信号 图二:脉冲涡流模型 图三:磁通密度模 图四:磁通密度模
- CC2530无线zigbee裸机代码实现光敏和热敏传感器数值读取.zip
- CC2530无线zigbee裸机代码实现继电器的控制.zip
- CC2530无线zigbee裸机代码实现看门口狗Watch Dog使用.zip
- CC2530无线zigbee裸机代码实现控制步进电机正反转.zip
- CC2530无线zigbee裸机代码实现人体红外传感器数值读取.zip
- CC2530无线zigbee裸机代码实现睡眠定时器唤醒系统.zip
- CC2530无线zigbee裸机代码实现外部中断控制LED开关.zip
- CC2530无线zigbee裸机代码实现外部中断控制流水灯.zip
- 基于51单片机的污水处理厂气体检测报警系统(protues仿真)-毕业设计
- CC2530无线zigbee裸机代码实现温度传感器DS18B20数值读取.zip
- CC2530无线zigbee裸机代码实现温湿度传感器DHT11数值读取.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈