- yolov5: https://github.com/ultralytics/yolov5
- get yolov5 weights from here: yolov5s, yolov5m, yolov5l, yolov5x.
git clone https://github.com/linghu8812/yolov5.git
python3 export.py ---weights weights/yolov5s.pt --batch-size 10 --imgsz 640 --include onnx --simplify
mkdir build && cd build
cmake ..
make -j
- inference with yolov5s
./yolov5_trt ../config.yaml ../samples
- inference with yolov5s6
./yolov5_trt ../config6.yaml ../samples
For more information, please refer this blog: https://blog.csdn.net/linghu8812/article/details/109322729