Unverified Commit 39f8e5ce authored by vfdev's avatar vfdev Committed by GitHub
Browse files

[proto] Fixed fill arg for pad pil image (#6620)

parent a188bcd3
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment