RandomChannelPermutation — Torchvision 0.22 documentation (original) (raw)
class torchvision.transforms.v2.RandomChannelPermutation[source]¶
Randomly permute the channels of an image or video
make_params(flat_inputs: List[Any]) → Dict[str, Any][source]¶
Method to override for custom transforms.
See How to write your own v2 transforms
transform(inpt: Any, params: Dict[str, Any]) → Any[source]¶
Method to override for custom transforms.