0

I want to optimize my trained model in Yolov5 using tensorRT. But am unable to find a proper way of doing so.Can any body tell show me how to do so?

Bigyan Subedi
  • 99
  • 2
  • 9

3 Answers3

1

You can refer to this repository for Yolo-V5. It has a section dedicated to tensorrt deployment.

You can also learn about tensorrt inference using C++ and Python

Jitesh Malipeddi
  • 2,150
  • 3
  • 17
  • 37
0

https://github.com/ultralytics/yolov5/issues/251

would you try:

python benchmarks.py --weights yolov5s.pt --imgsz 640 --device 0
Stephen Ostermiller
  • 23,933
  • 14
  • 88
  • 109
0

Benchmark is used for exporting and evaluating ALL export frameworks. Even the ones that has nothing to do with TenosrRT. Use:

python export.py --weights yolov5s.pt --include engine

for exporting your Yolov5 model to TensorRT

Mike B
  • 2,136
  • 2
  • 12
  • 31