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
dc7db17e
Commit
dc7db17e
authored
May 06, 2019
by
Adam J. Stewart
Committed by
Francisco Massa
May 06, 2019
Browse files
Typo and syntax fixes to transform docstrings (#887)
parent
164a2657
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
torchvision/transforms/transforms.py
torchvision/transforms/transforms.py
+3
-2
No files found.
torchvision/transforms/transforms.py
View file @
dc7db17e
...
@@ -572,7 +572,7 @@ class RandomPerspective(object):
...
@@ -572,7 +572,7 @@ class RandomPerspective(object):
height : height of the image.
height : height of the image.
Returns:
Returns:
List containing [top-left, top-right, bottom-right, bottom-left] of the orignal image,
List containing [top-left, top-right, bottom-right, bottom-left] of the orig
i
nal image,
List containing [top-left, top-right, bottom-right, bottom-left] of the transformed image.
List containing [top-left, top-right, bottom-right, bottom-left] of the transformed image.
"""
"""
half_height
=
int
(
height
/
2
)
half_height
=
int
(
height
/
2
)
...
@@ -745,7 +745,7 @@ class TenCrop(object):
...
@@ -745,7 +745,7 @@ class TenCrop(object):
size (sequence or int): Desired output size of the crop. If size is an
size (sequence or int): Desired output size of the crop. If size is an
int instead of sequence like (h, w), a square crop (size, size) is
int instead of sequence like (h, w), a square crop (size, size) is
made.
made.
vertical_flip(bool): Use vertical flipping instead of horizontal
vertical_flip
(bool): Use vertical flipping instead of horizontal
Example:
Example:
>>> transform = Compose([
>>> transform = Compose([
...
@@ -975,6 +975,7 @@ class RandomRotation(object):
...
@@ -975,6 +975,7 @@ class RandomRotation(object):
def
__call__
(
self
,
img
):
def
__call__
(
self
,
img
):
"""
"""
Args:
img (PIL Image): Image to be rotated.
img (PIL Image): Image to be rotated.
Returns:
Returns:
...
...
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