yolov7-opencv-onnxrun-cpp-py
yolov7-opencv-onnxrun-cpp-py copied to clipboard
使用--dnn的时候出现这个错误
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'
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'
请问你解决了吗?我好像也遇到这个问题了
有点久了,记得不是很清楚了,我记得当时我用yolov7官网的yolov7-u5版本转换成onnx来运行的。https://githubfast.com/WongKinYiu/yolov7/tree/u5