LdDl / go-darknet

Go bindings for Darknet (YOLO v4 / v7-tiny / v3)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] - when running example code on Mac 12.1 - fatal error: unexpected signal during runtime execution

brianhumphreys opened this issue · comments

Describe the bug
Darknet built successfully.
The issue occurs when testing the repo with the sample:

go build main.go && ./main --configFile=../yolov4.cfg --weightsFile=../yolov4.weights --imageFile=../sample.jpg

The net builds but fails on the detection step in the network.c file with the following error:

atal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x537750000 pc=0x442fccd]

Specifically, the code fails on network_predict_ptr(n, sized.data);.

To Reproduce
Run the example code on mac.

Expected behavior
An image with bounding boxes is generated

Describe the solution you'd like and provide pseudocode examples if you can
It would be nice to know if this is mac related or an OS-agnostic issue. If mac-related, I will perform additional diagnostics. If not then direction towards a solution would be greatly appreciated.

When printing the sized.data parameter into network_predict_ptr with printf(sized.data) I got the following:

�l?C�k?�k?�k?�k?�k?Ki?�i?�i?�i?�h?�h?�xj?�j?�j?�j?�k?�k?�k?�k?�k?�k?�k?�k?~j?�j?�i?�i?�i?�h?�h?�h?�h?�h?P�h?�i?�yi?�j?�j?�kj?�k?�k?E�j?�l?��l?�m?�m?��m?�n?��m?�j?!Zi?0�k?}�p?Egs?
                               L?F\�>M�>5��>��>ԩ�>(�>�>�w�>�T�>

It seems odd that this is the output and not an address. Is this the correct output?