BbFlip

class dragon.vm.dali.ops.BbFlip(
  horizontal=None,
  vertical=None,
  ltrb=True,
  **kwargs
)[source]

Flip the bounding boxes.

Examples:

bbox_flip = dali.ops.BbFlip()
flip_rng = dali.ops.CoinFlip(0.5)
bbox = bbox_flip(inputs['bbox'], horizontal=flip_rng())

__new__

static BbFlip.__new__(
  cls,
  horizontal=None,
  vertical=None,
  ltrb=True,
  **kwargs
)[source]

Create a BbFlip operator.

Parameters:
  • horizontal (int, optional) Whether to apply the horizontal flip.
  • vertical (int, optional) Whether to apply the vertical flip.
  • ltrb (bool, optional, default=True) Indicate the bbox is ltrb or xywh format.
Returns:

nvidia.dali.ops.BbFlip The operator.