RandomHorizontalFlip#

class RandomHorizontalFlip(prob=0.5, *, order=None)[source]#

Horizontally flip the input data randomly with a given probability.

Parameters:
  • p – probability of the input data being flipped. Default: 0.5

  • order – the same with VisionTransform.

apply(input)[source]#

Apply transform on single input data.