RandomChannelPermutation¶
- class torchaug.transforms.RandomChannelPermutation(p=1.0, batch_inplace=False, num_chunks=1, permute_chunks=False, batch_transform=False)[source]¶
Randomly permute the channels of an image or video.
- Parameters:
p (
float, optional) – probability of the image being channel permuted. Default:1.0batch_inplace (
bool, optional) – whether to apply the batch transform in-place. Does not prevent functionals to make copy but can reduce time and memory consumption. Default:Falsenum_chunks (
int, optional) – number of chunks to split the batched input into. Default:1permute_chunks (
bool, optional) – whether to permute the chunks. Default:Falsebatch_transform (
bool, optional) – whether to apply the transform in batch mode. Default:False