Hi,
when i run the network via the dll i get many random boxes.
Via darknet.exe is fine
(same config and weight parameters).
It doesnt matter if i call the dll via the cv::mat method or via filename. same result.
any ideas?
(windows 10 64bit)
@VisionEp1 Hi,
Can you show screenshot?
sure

(this is the darknet.exe ouput. i disabled the grouping of the boxes for testing)

this is the dll output
(untouched compailed as it was)
i can provide more, they all look the same tho.
correct result in the darknet.exe
wierd results in the dll
@VisionEp1
Can you show all changes that you did?
What Probability-threshold do you use for DLL?
hey i just uncommented
if (nms) do_nms_sort(dets, nboxes, l.classes, nms);
in detector.c
but just for debugg.
Even if i undo the uncomment. i still get the correct output from detector.exe (this time no extra boxes just one). but unchanged output from the dll version.
I tried with many. Atm i used 0.05 for both
But i can reproduce the same with 0.25 or others.
Detector *detector = new Detector("test.cfg", "test.weights");
vector<bbox_t> vector_b = detector->detect("C:\\test.png", 0.05, false);
call in the dll.
but as i said i also called it via opencv:
vector<bbox_t> vector_b = detector->detect(mat, 0.05, false);
same result. For me it looks like the dll and the .exe work diffrent. (also the execution code looks diffrent even tho i guess it will do the same)
ok just to make it sure. i just re downloaded and compilled the current version.
same result (detector.exe still works perfectly fine).
dll version does not
maybe you could use one of your existing networks,
set a low min confidence (around 0.05 or even lower) and then test yourself?
ok -- i think i found the issue.
Somehow my config file seemed to be corrupt (even a quick diff didnt seem to do much).
After re copy the same file (file size+ date match) it works.
So i guess it had to be something with maybe unprintable chars or what ever.
sorry to bother you. i tried everything for 2 days :/