Skip to content

Kevin16437/yolov11-trt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yolov11-trt

cuda trt

This repository contains a C++ implementation of YOLOv11, optimized with TensorRT for fast and efficient real-time inference.

Dependencies

  • C++:

    • OpenCV
    • TensorRT
  • Python:

    pip install --upgrade ultralytics

Installation

Repository clone & build

git clone https://github.com/fbasatemur/yolov11-trt.git
cd yolov11-trt*
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.

python export.py

Create a TRT Engine

Convert the ONNX model to a TRT engine:

./yolov11-trt yolo11.onnx "yolov11.engine"

Running Inference

Perform object detection on an image:

./yolov11-trt yolo11.engine "img1.jpg"

Perform object detection on a video:

./yolov11-trt yolo11.engine "vid1.mp4"

References

About

yolov11 tensorrt model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 60.0%
  • C 25.4%
  • CMake 9.9%
  • Cuda 4.5%
  • Python 0.2%