nvidia.dali.experimental.dynamic.jitter#

nvidia.dali.experimental.dynamic.jitter(input, /, *, batch_size=None, device=None, fill_value=None, interp_type=None, mask=None, nDegree=None, seed=None, rng=None)#

Performs a random Jitter augmentation.

The output images are produced by moving each pixel by a random amount, in the x and y dimensions, and bounded by half of the nDegree parameter.

Supported backends
  • ‘gpu’

Parameters:

input (Tensor/Batch ('HWC')) – Input to the operator.

Keyword Arguments:
  • fill_value (float, optional, default = 0.0) – Color value that is used for padding.

  • interp_type (nvidia.dali.types.DALIInterpType, optional, default = DALIInterpType.INTERP_NN) – Type of interpolation used.

  • mask (int or Tensor/Batch of int, optional, default = 1) –

    Determines whether to apply this augmentation to the input image.

    Here are the values:

    • 0: Do not apply this transformation.

    • 1: Apply this transformation.

  • nDegree (int, optional, default = 2) – Each pixel is moved by a random amount in the [-nDegree/2, nDegree/2] range

  • 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.