Incorrect RandomCrop
Closed this issue · 1 comments
K-Mike commented
Hi,
I found that RandomCrop works incorrect. You use
h_start = np.random.randint(0, height - self.h)
w_start = np.random.randint(0, width - self.w)
but the values will be the same each epoch, better
h_start = random.randint(0, height - self.h)
w_start = random.randint(0, width - self.w)
P.S. thank you for your code, watching you on Kaggle, cool work!
ternaus commented
I replaced all augmentations with https://github.com/albu/albumentations
This problem should not be an issue now.