Closed PistonY closed 5 years ago
Thank you for your comment. Clipping seems to change the distribution of r. It might be enough to derive r from right range instead.
If W==H, just set r to 0.4~1/0.4 is ok. Or you may fix range of it.
r_1 = max(r_1, (H*s) / W)
r_2 = min(r_2, H / (W*s))
hi again- any chance you could check out my question here: https://github.com/yu4u/cutout-random-erasing/issues/6 I've still not had a reply from the owner of this repo
Actually you could not use
while
loop, you need this cause by wrong range ofr
. In your conditions:Then you code could be
It's should be the same thing cause even you use
while
you just waiting therandom r
in right range.