RRM icon indicating copy to clipboard operation
RRM copied to clipboard

zero-size array to reduction operation maximum which has no identity

Open hyalvin opened this issue 3 years ago • 2 comments

Thanks for your work! But I got a problem using my own dataset! It said zero-size array to reduction operation maximum which has no identity that is caused by a empty array in this line bg_score = np.power(1 - np.max(v, axis=0, keepdims=True), alpha) in myTool.py, and I delete the cam_label thresh code if cam_label[i] > 1e-5:, it runs successfully but I got a negative dloss, I don't know whether it is correct?

hyalvin avatar Nov 26 '21 06:11 hyalvin

I think it is correct.

zbf1991 avatar Dec 04 '21 06:12 zbf1991

a image have not label may cause this matter

azongjie avatar Jan 14 '22 04:01 azongjie