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
f1b59075
"megatron/legacy/vscode:/vscode.git/clone" did not exist on "f43ec2ddfa01bb6d69328c00f9f3893cfc74f364"
Commit
f1b59075
authored
Jul 22, 2018
by
Vishwak Srinivasan
Committed by
Soumith Chintala
Jul 22, 2018
Browse files
Fix links to pillow docs (#554)
parent
cd1f58f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
torchvision/transforms/functional.py
torchvision/transforms/functional.py
+1
-1
torchvision/transforms/transforms.py
torchvision/transforms/transforms.py
+8
-4
No files found.
torchvision/transforms/functional.py
View file @
f1b59075
...
...
@@ -602,7 +602,7 @@ def rotate(img, angle, resample=False, expand=False, center=None):
Origin is the upper left corner.
Default is the center of the image.
.. _filters: http://pillow.readthedocs.io/en/
3.4.x
/handbook/concepts.html#filters
.. _filters: http
s
://pillow.readthedocs.io/en/
latest
/handbook/concepts.html#filters
"""
...
...
torchvision/transforms/transforms.py
View file @
f1b59075
...
...
@@ -804,8 +804,7 @@ class RandomRotation(object):
If degrees is a number instead of sequence like (min, max), the range of degrees
will be (-degrees, +degrees).
resample ({PIL.Image.NEAREST, PIL.Image.BILINEAR, PIL.Image.BICUBIC}, optional):
An optional resampling filter.
See http://pillow.readthedocs.io/en/3.4.x/handbook/concepts.html#filters
An optional resampling filter. See `filters`_ for more information.
If omitted, or if the image has mode "1" or "P", it is set to PIL.Image.NEAREST.
expand (bool, optional): Optional expansion flag.
If true, expands the output to make it large enough to hold the entire rotated image.
...
...
@@ -814,6 +813,9 @@ class RandomRotation(object):
center (2-tuple, optional): Optional center of rotation.
Origin is the upper left corner.
Default is the center of the image.
.. _filters: https://pillow.readthedocs.io/en/latest/handbook/concepts.html#filters
"""
def
__init__
(
self
,
degrees
,
resample
=
False
,
expand
=
False
,
center
=
None
):
...
...
@@ -880,10 +882,12 @@ class RandomAffine(object):
If degrees is a number instead of sequence like (min, max), the range of degrees
will be (-degrees, +degrees). Will not apply shear by default
resample ({PIL.Image.NEAREST, PIL.Image.BILINEAR, PIL.Image.BICUBIC}, optional):
An optional resampling filter.
See http://pillow.readthedocs.io/en/3.4.x/handbook/concepts.html#filters
An optional resampling filter. See `filters`_ for more information.
If omitted, or if the image has mode "1" or "P", it is set to PIL.Image.NEAREST.
fillcolor (int): Optional fill color for the area outside the transform in the output image. (Pillow>=5.0.0)
.. _filters: https://pillow.readthedocs.io/en/latest/handbook/concepts.html#filters
"""
def
__init__
(
self
,
degrees
,
translate
=
None
,
scale
=
None
,
shear
=
None
,
resample
=
False
,
fillcolor
=
0
):
...
...
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