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
080b9543
Commit
080b9543
authored
Dec 07, 2017
by
David de la Iglesia Castro
Committed by
Alykhan Tejani
Dec 07, 2017
Browse files
Add RandomRotation to docs (#362)
parent
6c2ac026
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
docs/source/transforms.rst
docs/source/transforms.rst
+2
-0
torchvision/transforms/functional.py
torchvision/transforms/functional.py
+1
-1
No files found.
docs/source/transforms.rst
View file @
080b9543
...
@@ -38,6 +38,8 @@ Transforms on PIL Image
...
@@ -38,6 +38,8 @@ Transforms on PIL Image
.. autoclass:: ColorJitter
.. autoclass:: ColorJitter
.. autoclass:: RandomRotation
Transforms on torch.\*Tensor
Transforms on torch.\*Tensor
----------------------------
----------------------------
...
...
torchvision/transforms/functional.py
View file @
080b9543
...
@@ -527,7 +527,7 @@ def adjust_gamma(img, gamma, gain=1):
...
@@ -527,7 +527,7 @@ def adjust_gamma(img, gamma, gain=1):
def
rotate
(
img
,
angle
,
resample
=
False
,
expand
=
False
,
center
=
None
):
def
rotate
(
img
,
angle
,
resample
=
False
,
expand
=
False
,
center
=
None
):
"""Rotate the image by angle
and then (optionally) translate it by (n_columns, n_rows)
"""Rotate the image by angle
.
Args:
Args:
...
...
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