Cutmix
- class easypl.callbacks.mixers.cutmix.Cutmix(on_batch: bool = True, alpha: float = 0.4, num_workers: int = 1, p: float = 0.5, domen: str = 'classification')
Callback for cutmixing data operations
- on_batch
If True generate samples from batch otherwise from dataset.
- Type
bool
- p
Mix probability.
- Type
float
- num_workers
Number of workers for mixing operation.
- Type
int
- alpha
Parameter of cutmix operation.
- Type
float
- domen
Name of task, in which will be mixed samples. Available: [“classification, segmentation”].
- Type
str