zbf1991 / RRM

Reliability Does Matter: An End-to-End Weakly Supervised Semantic Segmentation Approach
94 stars 11 forks source link

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

Open hyalvin opened 2 years ago

hyalvin commented 2 years ago

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?

zbf1991 commented 2 years ago

I think it is correct.

azongjie commented 2 years ago

a image have not label may cause this matter