mxnet.image.DetRandomPadAug¶
-
class
mxnet.image.
DetRandomPadAug
(aspect_ratio_range=(0.75, 1.33), area_range=(1.0, 3.0), max_attempts=50, pad_val=(128, 128, 128))[source]¶ Random padding augmenter.
- Parameters
aspect_ratio_range (tuple of floats, default=(0.75, 1.33)) – The padded area of the image must have an aspect ratio = width / height within this range.
area_range (tuple of floats, default=(1.0, 3.0)) – The padded area of the image must be larger than the original area
max_attempts (int, default=50) – Number of attempts at generating a padded region of the image of the specified constraints. After max_attempts failures, return the original image.
pad_val (float or tuple of float, default=(128, 128, 128)) – pixel value to be filled when padding is enabled.
-
__init__
(aspect_ratio_range=(0.75, 1.33), area_range=(1.0, 3.0), max_attempts=50, pad_val=(128, 128, 128))[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
([aspect_ratio_range, area_range, …])Initialize self.
dumps
()Saves the Augmenter to string