UNeedCryDear / yolov8-opencv-onnxruntime-cpp

yolov8 hub,cpp with onnxruntime and opencv
Apache License 2.0
341 stars 60 forks source link

Why the onnx model cannot be dynamic? #7

Closed Bensong0506 closed 1 year ago

Bensong0506 commented 1 year ago

Hi,

Could you please explain why the export onnx model cannot be dynamic?

UNeedCryDear commented 1 year ago

ONNXRuntime can run a dynamic model, but OpenCV does not support it. You can't use OpenCV to load a dynamic model, but OnnxRuntime can do it.