Skip to content

xiaocao-tian/ONNXToTensorRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

ONNXToTensorRT

C++ and Python convert ONNX to TensorRT

prerequisite

Please confirm that you have configured CUDA, CUDNN, TensorRT

quantization

FP32
FP16
INT8

Tested yolov5, yolov6, yolov7, yolov8 conversion successfully

yolov5: https://github.com/ultralytics/yolov5
yolov6: https://github.com/meituan/YOLOv6
yolov7: https://github.com/WongKinYiu/yolov7
yolov8: https://github.com/ultralytics/ultralytics

Note: If you use INT8 quantization, you need an additional file
C++:calibrator.cpp & calibrator.h
Python: calibrator.py

Run

python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published