Skip to content

Commit

Permalink
Fixed the docstring of RandomResizedCrop (pytorch#2851)
Browse files Browse the repository at this point in the history
* docs: Fixed docstring of RandomResizedCrop

* docs: Updated docstring

Co-authored-by: vfdev <[email protected]>
  • Loading branch information
frgfm and vfdev-5 committed Dec 4, 2020
1 parent c8e70fb commit 76aeb82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchvision/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 76aeb82

Please sign in to comment.