自己训练的权重文件转onnx 用opencv c++调用后报错terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.6.0) /home/xy/opencv/modules/core/src/out.cpp:87: error: (-215:Assertion failed) m.dims <= 2 in function 'FormattedImpl'
但用官方自带的权重转onnx就可以用,自己的权重文件用test.py调用也可以跑的
,请问下是什么情况。