yolov7-opencv-onnxrun-cpp-py icon indicating copy to clipboard operation
yolov7-opencv-onnxrun-cpp-py copied to clipboard

使用--dnn的时候出现这个错误

Open the-cat-crying opened this issue 1 year ago • 2 comments

cv2.error: OpenCV(4.6.0) /io/opencv/modules/dnn/include/opencv2/dnn/shape_utils.hpp:170: error: (-215:Assertion failed) start <= (int)shape.size() && end <= (int)shape.size() && start <= end in function 'total'

the-cat-crying avatar Sep 30 '22 02:09 the-cat-crying

cv2.error: OpenCV(4.6.0) /io/opencv/modules/dnn/include/opencv2/dnn/shape_utils.hpp:170: error: (-215:Assertion failed) start <= (int)shape.size() && end <= (int)shape.size() && start <= end in function 'total'

请问你解决了吗?我好像也遇到这个问题了

XXMxxm220 avatar Jan 12 '24 12:01 XXMxxm220

有点久了,记得不是很清楚了,我记得当时我用yolov7官网的yolov7-u5版本转换成onnx来运行的。https://githubfast.com/WongKinYiu/yolov7/tree/u5

the-cat-crying avatar Jan 15 '24 02:01 the-cat-crying