yolov5-dnn-cpp-python icon indicating copy to clipboard operation
yolov5-dnn-cpp-python copied to clipboard

error: (-215:Assertion failed) model_proto.has_graph() in function 'populateNet'

Open yzl1014 opened this issue 2 years ago • 4 comments

/media/yzl/C4A8E8FBE4769FDE/sr/cpp/opencv-4.2.0/modules/dnn/src/onnx/onnx_importer.cpp:327: error: (-215:Assertion failed) model_proto.has_graph() in function 'populateNet'

为什么会报这样的错误?

yzl1014 avatar Oct 12 '21 03:10 yzl1014

/media/yzl/C4A8E8FBE4769FDE/sr/cpp/opencv-4.2.0/modules/dnn/src/onnx/onnx_importer.cpp:327: error: (-215:Assertion failed) model_proto.has_graph() in function 'populateNet'

为什么会报这样的错误?

升级opencv再试一下

hpc203 avatar Oct 25 '21 02:10 hpc203

/media/yzl/C4A8E8FBE4769FDE/sr/cpp/opencv-4.2.0/modules/dnn/src/onnx/onnx_importer.cpp:327: error: (-215:Assertion failed) model_proto.has_graph() in function 'populateNet' 为什么会报这样的错误?

升级opencv再试一下

升级过后,好像还不行

yzl1014 avatar Oct 25 '21 05:10 yzl1014

看报错信息,你的opencv版本是4.2的,需要升级opencv版本,才能运行的

---Original--- From: @.> Date: Tue, Apr 26, 2022 23:52 PM To: @.>; Cc: @.@.>; Subject: Re: [hpc203/yolov5-dnn-cpp-python] error: (-215:Assertion failed)model_proto.has_graph() in function 'populateNet' (#22)

/media/yzl/C4A8E8FBE4769FDE/sr/cpp/opencv-4.2.0/modules/dnn/src/onnx/onnx_importer.cpp:327: error: (-215:Assertion failed) model_proto.has_graph() in function 'populateNet' 为什么会报这样的错误?

升级opencv再试一下

升级过后,好像还不行

想问下这个问题解决了吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

hpc203 avatar Apr 27 '22 01:04 hpc203