link
code in git
build the project and mind your onnxruntim path
mkdir build
cd build
cmake .. -DONNXRUNTIME_DIR=/home/oem/Downloads/yolov5-onnxruntime-master/onnxruntime-linux-x64-1.7.0 -DCMAKE_BUILD_TYPE=Release
make
./yolo_ort --model_path ../models/yolov5s.onnx --image ../images/bus.jpg --class_names ../models/coco.names --gpu