NOTE: The code here is just for reference, I have no time to norm it.
It' same that there still no right way to export yolov8 to onnx format, so I try to export it.
- clone yolov9 from github
- copy the
export.py
to theyolov9/weights
folder - download the
gelan-c.pt
- run
python export.py
- cp
yolov9/weights/gelan-c.onnx
to this folder - run
python main_ocv.py
orpython main_ort.py
If everything is ok, you will see the result like this: