Open jinyu121 opened 6 years ago
mark
Is this problem about big endian or little endian for model saving?
@jinyu121 Thanks jinyu 👍
@jinyu121 I meet the same problem today. Can AlexeyAB's version solve this problem? I see the get_yolo_detections function is almost the same. Do you know the reason of this error? @pjreddie
@GordonDongZHAO
Yes, AlexyAB's version is OK, even on RaspberryPi, while pjreddie's version crash in both detection and classification functions.
You can try reducing the memory split of GPU for the rapsberry-pi. Allocating 64mb worked for me
I had this problem as well in my pi 3b+ Moving to AlexeyAB/darknet not only worked but it's ridiculously fast. I mean, for a pi.
I cloned the darknet, and make it on my Pi, without ANY modification. No OpenCV.
But darknet fails both in detect and classifier.
I run darknet with
./darknet detect cfg/yolov3-tiny.cfg yolov3-tiny.weights data/kite.jpg
I traced some of the code, add
printf("Check get_yolo_detections in FOR FOR %d %d / %d %d %d\n\n", n, j, l.classes, n*l.w*l.h + i, 4 + 1 + j);
brfore https://github.com/pjreddie/darknet/blob/f6d861736038da22c9eb0739dca84003c5a5e275/src/yolo_layer.c#L334And the output is
But on my PC, same code, same weights, and same command, it is OK. If I modify the code as above, the output is
I think that it is an Array out of bounds error here.
BTW: My PC is 64-bit Debian, and Pi is 32-bit offcial RASPBIAN with desktop, which can be download HERE