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
e9a6cbb4
Unverified
Commit
e9a6cbb4
authored
Feb 27, 2020
by
Eldar Kurtic
Committed by
GitHub
Feb 27, 2020
Browse files
Fixed missing new line in the crop docstring (#1922)
parent
2f433e0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
torchvision/transforms/functional.py
torchvision/transforms/functional.py
+1
-0
No files found.
torchvision/transforms/functional.py
View file @
e9a6cbb4
...
@@ -348,6 +348,7 @@ def pad(img, padding, fill=0, padding_mode='constant'):
...
@@ -348,6 +348,7 @@ def pad(img, padding, fill=0, padding_mode='constant'):
def
crop
(
img
,
top
,
left
,
height
,
width
):
def
crop
(
img
,
top
,
left
,
height
,
width
):
"""Crop the given PIL Image.
"""Crop the given PIL Image.
Args:
Args:
img (PIL Image): Image to be cropped. (0,0) denotes the top left corner of the image.
img (PIL Image): Image to be cropped. (0,0) denotes the top left corner of the image.
top (int): Vertical component of the top left corner of the crop box.
top (int): Vertical component of the top left corner of the crop box.
...
...
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