class_docstr: Random flip the image either horizontally or vertically.
docstr: Args:
      horiz (bool): use horizontal flip.
      vert (bool): use vertical flip.
      prob (float): probability of flip.
docstr_tok: ["Args",":","horiz","(","bool",")",":","use","horizontal","flip",".","vert","(","bool",")",":","use","vertical","flip",".","prob","(","float",")",":","probability","of","flip","."]
code: def __init__(self, horiz=False, vert=False, prob=0.5):
      """
      Args:
          horiz (bool): use horizontal flip.
          vert (bool): use vertical flip.
          prob (float): probability of flip.
      """
      super(Flip, self).__init__()
      if horiz and vert:
          raise ValueError(
              "Cannot do both horiz and vert. Please use two Flip instead."
          )
      if not horiz and not vert:
          raise ValueError(
              "At least one of horiz or vert has to be True!"
          )
      self._init(locals())
  
imports: import cv2
  from ...utils import logger
  from ...utils.argtools import shape2d
  from .base import ImageAugmentor
  from .transform import ResizeTransform, NoOpTransform, FlipTransform, TransposeTransform
label_desc: Use image node_id 1 to create a new Flip object from inherited base classes: ImageAugmentor with example: obj = Flip(horiz, vert, prob)