hpc203 / Yolo-Fastest-opencv-dnn

用opencv的dnn模块实现Yolo-Fastest的目标检测
49 stars 18 forks source link

读取模型出错 #1

Open first-wording opened 3 years ago

first-wording commented 3 years ago

你好,请问你使用的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'

nguyenthaohut commented 2 years ago

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