BBoxPaste

class dragon.vm.dali.ops.BBoxPaste[source]

Transform bounding boxes to match the Paste operator.

Examples:

__new__

static BBoxPaste.__new__(
  cls,
  ltrb=True,
  ratio=None,
  paste_x=None,
  paste_y=None
)[source]

Create a BBoxPaste operator.

Parameters:
  • ltrb (bool, optional, default=True) – Indicate the bbox is ltrb or xywh format.
  • ratio (int, optional) – The expand ratio.
  • paste_x (int, optional) – The paste position at x-axis.
  • paste_y (int, optional) – The paste position at y-axis.
Returns:

nvidia.dali.ops.BBoxPaste – The operator.