Closed LdDl closed 2 years ago
I guess the problem is in this call:
sized = resize_image(*img, n->w, n->h);
both n->w and n->h give strange output (neither 416 or 608, which depends on *.cfg file): something like 20127904x0
When use
LATEST_COMMIT?=d65909fbea471d06e52a2e4a41132380dc2edaa6
I've got 608x608 for YOLOv4
So, I assume something went wrong on setting networks parameters when use 'stable'-ish release.
Changes between current working commit and stable one: https://github.com/AlexeyAB/darknet/compare/d65909fbea471d06e52a2e4a41132380dc2edaa6...AlexeyAB:9d40b619756be9521bc2ccd81808f502daaa3e9a
Addition: manual setup of width/height in resize_image leads to expected ('good') results without any errors (checked CPU)
I have tried every commit for the last 2 years (starting from commit f056fc3b6a11528fa0522a468eca1e909b7004b7
) and I get a compilation error for every single one.
ld: library not found for -l:libdarknet.so
clang: fatal error: linker command failed with exit code 1 (use -v to see invocation)
I am a mac user running make install_darknet
for CPU usage of darknet
I guess you need to make libdarknet.so 'visible' for compiler (also do not forget to make LIBSO=1 in Makefile)
Trying to checkout stable'ish YOLO v4: https://github.com/AlexeyAB/darknet/releases/tag/yolov4
Current state for GPU:
Need to dig into (Darknet's source code)
Current state for CPU:
When make switch from network_predict_ptr() to network_predict()
I got same error, but for 'CPU' RAM: