Open Bardia-Zamani-Abnili-UniMelb opened 4 months ago
Just noticed that in all of the instances of the bug that I have screenshotted, the boxes do not have IDs.
I looked at the part of my code handling missing box IDs and found the source of the bogus confidence values is (as sources of issues often are) in my own code.
I assume missing IDs mean that the inter-frame relationship (a la persist=True) is broken and the model needs to start from scratch?
However I am not closing this issue because I would like to know how come the model seems to detect a lot more objects just after this happens even though the input has not changed significantly.
Perhaps the confidence threshold is lowered or ignored for a few frames for some reason?
Is there a way I can continue to detect all of those extra objects consistently?
I would say around 5-10% of frames cause this. I'm still working on detecting and saving those frames to see if it happens every time. I have screenshots of confidences higher than 40 (40 out of 1, as in 4000%). The issue is per frame, as in either all detections in a frame are like this, or they are all normal.
I'm sure it's not caused by any manipulation that I do after the model runs because when this happens the number of detected objects increases, meaning fewer detections are being discarded for being under the confidence threshold, meaning the confidence is too high inside of the model before the results are passed onto my code.
Relevant parts of my code:
I will also try it with verbose=False removed to see if the console output reflects this issue.
Could there be something wrong with the sigmoid approximation function? Or something about the NMS being removed? I don't have enough of a background in neural networks to guess.