Skip to content

xiaocao-tian/yolov8_tensorrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YOLOv8

The Pytorch implementation is ultralytics/ultralytics

Reference

Reference wang-xinyu tensorrtx

Requirements

TensorRT 8.2
OpenCV 4.6.0

Config

Choose the model n/s/m/l/x from command line arguments.
Check more configs in include/config.h

How to Run, yolov8s as example

  1. generate .wts from pytorch with .pt
// download https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8s.pt
cd yolov8
python gen_wts.py
// a file 'yolov8s.wts' will be generated.
  1. Run CMakeLists.txt with Cmake

  2. Open project and run it

INT8 Quantization

  1. set the macro USE_INT8 in config.h and make

  2. serialize the model and test

bus

转载请注明出处

About

pt-->wts-->engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published