Computer Vision, Data Augmentation, Object Detection, Deep Learning, Data Science.
Mix the images mixed_array = lam * resized_array1 + (1 - lam) * array2 # Convert the mixed array back to an image mixed_image = Image.fromarray(np.uint8(mixed_array)) return mixed_image, lam MixUp regularizes the neural network, promoting simple linear behavior between training samples and