Detector's detect() method returns nothing #7760
Replies: 3 comments
-
Tracing down the problem from the source, the issue is l.output[obj_index] == nan for all three yolo layers. int yolo_num_detections(layer l, float thresh) |
Beta Was this translation helpful? Give feedback.
-
fix is found: one needs to remove CUDNN_HALF pre-compile flag before compiling yolo_cpp_dll. |
Beta Was this translation helpful? Give feedback.
-
Hey @alexyuisme
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I got yolo_cpp_dll compiled and work but the Detector failed to detect objects from an image:
std::string file_name = "C:\person.jpg";
std::vector<bbox_t> boxes;
boxes = detector->detect(file_name); // ---> boxes.size() is 0.
But It works if I run the command line to test the same image.
.\darknet detect cfg/yolov4.cfg yolov4.weights data/person.jpg
Any possible reasons?
Thanks,
Alex
Beta Was this translation helpful? Give feedback.
All reactions