Unverified Commit 57b653c5 authored by F-G Fernandez's avatar F-G Fernandez Committed by GitHub
Browse files

Fixed the docstring of RandomResizedCrop (#2851)



* docs: Fixed docstring of RandomResizedCrop

* docs: Updated docstring
Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
parent 005355bd
......@@ -738,8 +738,8 @@ class RandomResizedCrop(torch.nn.Module):
size (int or sequence): expected output size of each edge. If size is an
int instead of sequence like (h, w), a square output size ``(size, size)`` is
made. If provided a tuple or list of length 1, it will be interpreted as (size[0], size[0]).
scale (tuple of float): range of size of the origin size cropped
ratio (tuple of float): range of aspect ratio of the origin aspect ratio cropped.
scale (tuple of float): scale range of the cropped image before resizing, relatively to the origin image.
ratio (tuple of float): aspect ratio range of the cropped image before resizing.
interpolation (int): Desired interpolation enum defined by `filters`_.
Default is ``PIL.Image.BILINEAR``. If input is Tensor, only ``PIL.Image.NEAREST``, ``PIL.Image.BILINEAR``
and ``PIL.Image.BICUBIC`` are supported.
......
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