Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
ae1acbf1
Unverified
Commit
ae1acbf1
authored
Mar 20, 2021
by
Nicolas Hug
Committed by
GitHub
Mar 20, 2021
Browse files
more correct (#3586)
Co-authored-by:
Vasilis Vryniotis
<
datumbox@users.noreply.github.com
>
parent
8aba1dc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
torchvision/transforms/transforms.py
torchvision/transforms/transforms.py
+2
-1
No files found.
torchvision/transforms/transforms.py
View file @
ae1acbf1
...
@@ -787,7 +787,8 @@ class RandomResizedCrop(torch.nn.Module):
...
@@ -787,7 +787,8 @@ class RandomResizedCrop(torch.nn.Module):
int instead of sequence like (h, w), a square output size ``(size, size)`` is
int instead of sequence like (h, w), a square output size ``(size, size)`` is
made. If provided a sequence of length 1, it will be interpreted as (size[0], size[0]).
made. If provided a sequence of length 1, it will be interpreted as (size[0], size[0]).
In torchscript mode size as single int is not supported, use a sequence of length 1: ``[size, ]``.
In torchscript mode size as single int is not supported, use a sequence of length 1: ``[size, ]``.
scale (tuple of float): lower and upper bounds for the random area of the crop, before resizing.
scale (tuple of float): Specifies the lower and upper bounds for the random area of the crop,
before resizing. The scale is defined with respect to the area of the original image.
ratio (tuple of float): lower and upper bounds for the random aspect ratio of the crop, before
ratio (tuple of float): lower and upper bounds for the random aspect ratio of the crop, before
resizing.
resizing.
interpolation (InterpolationMode): Desired interpolation enum defined by
interpolation (InterpolationMode): Desired interpolation enum defined by
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment