Machine Learning, Data Science, Artificial Intelligence, Programming, Towards Data Science.
crops. One before, and one after the resize. import albumentations as albu def train_transform(image, p=1): aug = albu.Compose([ albu.RandomCrop(height=960, width=960, p=1), albu.RandomRotate90(p=0.5), albu.HorizontalFlip(p=0.5), albu.RandomGamma(gamma_limit=(80, 120), p=0.5),