Yolo-Fastest-opencv-dnn icon indicating copy to clipboard operation
Yolo-Fastest-opencv-dnn copied to clipboard

读取模型出错

Open first-wording opened this issue 4 years ago • 1 comments

你好,请问你使用的opencv具体是哪个版本,我用最新的opencv4.4读取模型时仍然报错:cv2.error: OpenCV(4.4.0) /tmp/pip-req-build-qacpj5ci/opencv/modules/dnn/src/darknet/darknet_io.cpp:855: error: (-215:Assertion failed) classes > 0 && num_of_anchors > 0 && (num_of_anchors * 2) == anchors_vec.size() in function 'ReadDarknetFromCfgStream'

first-wording avatar Dec 04 '20 02:12 first-wording

you should check the of filters in the convolution layer befor the yolo layer

nguyenthaohut avatar Jun 27 '22 04:06 nguyenthaohut