RandomHorizontalFlipΒΆ
- class torchvision.transforms.RandomHorizontalFlip(p=0.5)[source]ΒΆ
Horizontally flip the given image randomly with a given probability. If the image is torch Tensor, it is expected to have [β¦, H, W] shape, where β¦ means an arbitrary number of leading dimensions
- Parameters:
p (float) β probability of the image being flipped. Default value is 0.5
Examples using
RandomHorizontalFlip
:Transforms v2: End-to-end object detection/segmentation example
Transforms v2: End-to-end object detection/segmentation example