def do_blending(self, imgs, label, **kwargs):
        """Blending images with MViT style. Cutmix for half for mixup for the other half."""
        assert len(kwargs) == 0, f'unexpected kwargs for cutmix_half_mixup {kwargs}'

        if np.random.rand() < self.switch_prob:
            return self.do_cutmix(imgs, label)
        else:
            return self.do_mixup(imgs, label)
Blending images with MViT style. Cutmix for half for mixup for the other half.
EVA-01/video/datasets/blending.py