class
RandomMixupCutMixCollator
RandomMixupCutMixCollator(mixup_alpha: float = 0.2, cutmix_alpha: float = 1.0, num_classes: int, p: float = 1.0, switch_prob: float = 0.5)Pick MixupCollator or CutMixCollator per batch.
The reference-framework "RandomMixup+CutMix" recipe: each batch
independently chooses one of the two collators uniformly, then
that collator decides whether to fire (per its own p).
Parameters
mixup_alphafloat= 0.2No description.
cutmix_alphafloat= 1.0No description.
num_classesintNo description.
pfloat= 1.0Probability that either collator runs (vs the batch being
returned unchanged with soft labels).
switch_probfloat= 0.5When the policy fires, probability of choosing CutMix over
Mixup.