Skip to content

Commit 39f8e5c

Browse files
authored
[proto] Fixed fill arg for pad pil image (#6620)
1 parent a188bcd commit 39f8e5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/prototype/transforms/functional/_geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ def perspective_image_pil(
762762
img: PIL.Image.Image,
763763
perspective_coeffs: List[float],
764764
interpolation: InterpolationMode = InterpolationMode.BICUBIC,
765-
fill: Optional[Union[int, float, Sequence[int], Sequence[float]]] = None,
765+
fill: Optional[Union[int, float, List[float]]] = None,
766766
) -> PIL.Image.Image:
767767
return _FP.perspective(img, perspective_coeffs, interpolation=pil_modes_mapping[interpolation], fill=fill)
768768

0 commit comments

Comments
 (0)