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
39f8e5ce
Unverified
Commit
39f8e5ce
authored
Sep 21, 2022
by
vfdev
Committed by
GitHub
Sep 21, 2022
Browse files
[proto] Fixed fill arg for pad pil image (#6620)
parent
a188bcd3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/prototype/transforms/functional/_geometry.py
torchvision/prototype/transforms/functional/_geometry.py
+1
-1
No files found.
torchvision/prototype/transforms/functional/_geometry.py
View file @
39f8e5ce
...
@@ -762,7 +762,7 @@ def perspective_image_pil(
...
@@ -762,7 +762,7 @@ def perspective_image_pil(
img
:
PIL
.
Image
.
Image
,
img
:
PIL
.
Image
.
Image
,
perspective_coeffs
:
List
[
float
],
perspective_coeffs
:
List
[
float
],
interpolation
:
InterpolationMode
=
InterpolationMode
.
BICUBIC
,
interpolation
:
InterpolationMode
=
InterpolationMode
.
BICUBIC
,
fill
:
Optional
[
Union
[
int
,
float
,
Sequence
[
int
],
Sequence
[
float
]]]
=
None
,
fill
:
Optional
[
Union
[
int
,
float
,
List
[
float
]]]
=
None
,
)
->
PIL
.
Image
.
Image
:
)
->
PIL
.
Image
.
Image
:
return
_FP
.
perspective
(
img
,
perspective_coeffs
,
interpolation
=
pil_modes_mapping
[
interpolation
],
fill
=
fill
)
return
_FP
.
perspective
(
img
,
perspective_coeffs
,
interpolation
=
pil_modes_mapping
[
interpolation
],
fill
=
fill
)
...
...
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