hbilen / WSDDN

Weakly Supervised Deep Detection Networks (CVPR 2016)
148 stars 53 forks source link

There are seem to be a bug in layers/LossTopBoxSmoothProb.m #11

Closed chengmengli06 closed 6 years ago

chengmengli06 commented 6 years ago

o = find((inter ./ (gtArea + area - inter))>obj.minOverlap); inter gtArea, area and inter are actually of uint16, so o could only be 0 or 1(when actual value > 0.5), so an setting of minOverlap = 0.6 is useless.

w = max(0.0, xx2-xx1+1); h = max(0.0, yy2-yy1+1); w and h are still uint16;

And (gtArea + area - inter) could overflow

I use matlab ##R2014a

hbilen commented 6 years ago

Thanks, it should be fixed now.