itsnine / yolov5-onnxruntime

YOLOv5 ONNX Runtime C++ inference code.
247 stars 58 forks source link

Segmentation fault (core dumped) #10

Closed ShakhzodbekYuldoshov closed 2 years ago

ShakhzodbekYuldoshov commented 2 years ago

I did not understand wht is going on. Wrote this line of command: ./yolo_ort --model_path best.onnx --image img.jpeg --class_names coco.names --gpu But it is returning just this line of error there is no other error messages. What should I do? Thank you beforehand

ShakhzodbekYuldoshov commented 2 years ago

I found that Model is not being initialized

ShakhzodbekYuldoshov commented 2 years ago

env = Ort::Env(OrtLoggingLevel::ORT_LOGGING_LEVEL_WARNING, "ONNX_DETECTION");

I found one more information it cannot execute this line of code. I do not know C++ very well. So I am not understanding what is going on.

itsnine commented 2 years ago

@ShakhzodbekYuldoshov Which onnxruntime version do you have? Did you try to build and run without --gpu argument? Is your path to the model correct?

ShakhzodbekYuldoshov commented 2 years ago

@itsnine Thank you very much. I found that it was because of onnxruntime version. I used 1.6 gave an error, then tried 1.10 working fine