Skip to content

RandomCrop

source

RandomCrop(
   pad: int = 4, out: int = 84
)


Random crop operation for processing image-based observations.

Args

  • pad (int) : Padding size.
  • out (int) : Desired output size.

Returns

Augmented images.

Methods:

.forward

source

.forward(
   x: th.Tensor
)