Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Enhancement - C++ Port of Darknet, Enabling OpenCV3 on Linux #21
Merged latest commit from pjreddie (d8adaf8) (tree stuff). Now make will build both original darknet and darknet-cpp from same merged code-base (no separate .cpp files), thus making it easy to maintain. Please consider merge. Also fixed some real bugs (memory allocation, header includes, and CUBLAS error checks vs CUDA error checks).
Lets look at the change in yolo.c, line 302. The probs array is passed to the function "get_detection_boxes". Looking at "get_detection_boxes()" implementation in src/detection_layer.c, a FLOAT value is assigned to each element of probs array, like below.
Hence each probs entry is a pointer to FLOAT, and this allocation does that.
Please let me know if this is not how you see it.