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

用opencv的dnn模块实现Yolo-Fastest的目标检测

Results 3 Yolo-Fastest-opencv-dnn issues
Sort by recently updated
recently updated
newest added

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

``` Traceback (most recent call last): File "D:/yolo/Yolo-Fastest-opencv-dnn-master/main_yolov3.py", line 103, in outs = net.forward(getOutputsNames(net)) File "D:/yolo/Yolo-Fastest-opencv-dnn-master/main_yolov3.py", line 27, in getOutputsNames return [layersNames[i[0] - 1] for i in net.getUnconnectedOutLayers()] File "D:/yolo/Yolo-Fastest-opencv-dnn-master/main_yolov3.py",...

main_yolov3.py,会出现报错,把41行i[0],改成i,115行i[0],改成i,即可。