...

/

Mixup and Cutmix

Mixup and Cutmix

Learn to train neural networks with Mixup and Cutmix augmentations.

The Pytorch Image Model (timm) framework provides an option to use Mixup and Cutmix augmentations. We can use these techniques to enhance the performance of our model.

Mixup

Mixup is a domain-agnostic augmentation technique. It randomly generates weighted combinations of image pairs from the training data. It takes two images and their corresponding ground truths to generate a new image.

The implementation for Mix up looks like this:

x~=λxi+(1λ)xj\tilde{x} = \lambda x_i + (1 - \lambda) x_j

y~=λyi+(1λ)yj\tilde{y} = \lambda y_i + (1 - \lambda) y_j ...

Access this course and 1400+ top-rated courses and projects.