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
9d37cc97
Commit
9d37cc97
authored
Mar 26, 2019
by
ekka
Committed by
Francisco Massa
Mar 26, 2019
Browse files
Fix crop and resized_crop docs in functional.py (#817)
parent
b212254d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
torchvision/transforms/functional.py
torchvision/transforms/functional.py
+8
-8
No files found.
torchvision/transforms/functional.py
View file @
9d37cc97
...
@@ -345,10 +345,10 @@ def crop(img, i, j, h, w):
...
@@ -345,10 +345,10 @@ def crop(img, i, j, h, w):
Args:
Args:
img (PIL Image): Image to be cropped.
img (PIL Image): Image to be cropped.
i
: Upper pixel coordinate
.
i
(int): i in (i,j) i.e coordinates of the upper left corner
.
j
: Left pixel coordinate
.
j
(int): j in (i,j) i.e coordinates of the upper left corner
.
h: Height of the cropped image.
h
(int)
: Height of the cropped image.
w: Width of the cropped image.
w
(int)
: Width of the cropped image.
Returns:
Returns:
PIL Image: Cropped image.
PIL Image: Cropped image.
...
@@ -376,10 +376,10 @@ def resized_crop(img, i, j, h, w, size, interpolation=Image.BILINEAR):
...
@@ -376,10 +376,10 @@ def resized_crop(img, i, j, h, w, size, interpolation=Image.BILINEAR):
Args:
Args:
img (PIL Image): Image to be cropped.
img (PIL Image): Image to be cropped.
i: i in (i,j) i.e coordinates of the upper left corner
i
(int)
: i in (i,j) i.e coordinates of the upper left corner
j: j in (i,j) i.e coordinates of the upper left corner
j
(int)
: j in (i,j) i.e coordinates of the upper left corner
h: Height of the cropped image.
h
(int)
: Height of the cropped image.
w: Width of the cropped image.
w
(int)
: Width of the cropped image.
size (sequence or int): Desired output size. Same semantics as ``resize``.
size (sequence or int): Desired output size. Same semantics as ``resize``.
interpolation (int, optional): Desired interpolation. Default is
interpolation (int, optional): Desired interpolation. Default is
``PIL.Image.BILINEAR``.
``PIL.Image.BILINEAR``.
...
...
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