nvidia.dali.experimental.dynamic.ssd_random_crop#

nvidia.dali.experimental.dynamic.ssd_random_crop(input_0, input_1, input_2, /, *, batch_size=None, device=None, num_attempts=None, seed=None, rng=None)#

Warning

This operator is now deprecated. Use random_bbox_crop() instead.

Performs a random crop with bounding boxes where Intersection Over Union (IoU) meets a randomly selected threshold between 0-1.

When the IoU falls below the threshold, a new random crop is generated up to num_attempts. As an input, the operator accepts image, bounding boxes and labels. At the output cropped image, cropped and valid bounding boxes and valid labels are returned.

Supported backends
  • ‘cpu’

Parameters:
  • input_0 (Tensor/Batch) – Input to the operator.

  • input_1 (Tensor/Batch) – Input to the operator.

  • input_2 (Tensor/Batch) – Input to the operator.

Keyword Arguments:
  • num_attempts (int, optional, default = 1) – Number of attempts.

  • rng (RNG, optional) – A random number generator instance. Can be obtained by calling nvidia.dali.experimental.dynamic.random.RNG(seed)(). If not provided, the default RNG is used.