Commit 23ea65cd authored by Federico Baldassarre's avatar Federico Baldassarre Committed by Francisco Massa
Browse files

Fixed typo in the doc of RandomResizedCrop (#394)

Updated the doc of RandomResizedCrop.__call__() from 'Image to be flipped' to 'Image to be cropped and resized'
parent cbf19d4f
......@@ -417,10 +417,10 @@ class RandomResizedCrop(object):
def __call__(self, img):
"""
Args:
img (PIL Image): Image to be flipped.
img (PIL Image): Image to be cropped and resized.
Returns:
PIL Image: Randomly cropped and resize image.
PIL Image: Randomly cropped and resized image.
"""
i, j, h, w = self.get_params(img, self.scale, self.ratio)
return F.resized_crop(img, i, j, h, w, self.size, self.interpolation)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment