Table Of Contents
Table Of Contents


class mxnet.image.RandomSizedCropAug(size, area, ratio, interp=2, **kwargs)[source]

Make random crop with random resizing and random aspect ratio jitter augmenter.

  • size (tuple of (int, int)) – Size of the crop formatted as (width, height).

  • area (float in (0, 1] or tuple of (float, float)) – If tuple, minimum area and maximum area to be maintained after cropping If float, minimum area to be maintained after cropping, maximum area is set to 1.0

  • ratio (tuple of (float, float)) – Aspect ratio range as (min_aspect_ratio, max_aspect_ratio)

  • interp (int, optional, default=2) – Interpolation method. See resize_short for details.

__init__(size, area, ratio, interp=2, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.


__init__(size, area, ratio[, interp])

Initialize self.


Saves the Augmenter to string