TrojanXu / yolov5-tensorrt

A tensorrt implementation of yolov5: https://github.com/ultralytics/yolov5
Apache License 2.0
190 stars 46 forks source link

yolov5-tensorrt

A tensorrt implementation of yolov5: https://github.com/ultralytics/yolov5

requirement

Please use torch>=1.6.0 + onnx>=1.6.0 + TRT 7.1+ (fix upsample issue) to run the sample code
onnx-simplifier-0.2.16

The code

Add newly implemented upsample to get this working with current combination of onnx and tensorrt.

  1. prepare above mentioned environment.
  2. git clone && git submodule update --init
  3. download weights file (use yolov5/models/export.py)
  4. python main.py to run the benchmark
  5. Generally, for image of size 640*640, using batchsize=1, the speedup is 4x on V100.

Updates

TODO