AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.77k stars 7.96k forks source link

the version of cpu opencv, can not detect any object, but the version of the cuda opencv works. #4444

Open xinsuinizhuan opened 4 years ago

xinsuinizhuan commented 4 years ago

I use the version of cpu opencv and the yolo_cpp_dll_no_gpu to detect (coco model), find no objects.

detection *dets = get_network_boxes(net, im.w, im.h, thresh, hier_thresh, 0, 1, &nboxes, letter_box); the &nboxes is zero

But when i use the version of the gpu opencv, it works.

AlexeyAB commented 4 years ago

I just compiled yolo_cpp_dll_no_gpu.sln and run darknet.py and it can detect successfully by using CPU: coco model image