Machine Learning, Data Science, Artificial Intelligence, Programming, Towards Data Science.
albumentations as albu def train_transform(image, p=1): scale_limit = (0.5, 2) aug = albu.Compose([ albu.RandomRotate90(p=0.5), albu.HorizontalFlip(p=0.5), albu.RandomGamma(gamma_limit=(80, 120), p=0.5), albu.JpegCompression(quality_lower=70, quality_upper=90, p=0.5),