You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it is unintuitive and can lead to some confusion for the user.
A more consistent and intuitive behaviour would return annotations as initialized here:
I was surprised by the output of
predict_jsons()
when the input image did not contain any face.The expected behaviour would have been an empty list, so that I could find the number of detected faces as
len(annotations)
.Instead, there is a list with 1 element, with empty bounding-boxes and a score of -1, due to the following line:
retinaface/retinaface/predict_single.py
Lines 92 to 93 in 29611c7
I think it is unintuitive and can lead to some confusion for the user.
A more consistent and intuitive behaviour would return
annotations
as initialized here:retinaface/retinaface/predict_single.py
Line 66 in 29611c7
Indeed:
annotations
,annotations
would be returned exactly as it was initialized.retinaface/retinaface/predict_single.py
Lines 124 to 130 in 29611c7
The text was updated successfully, but these errors were encountered: