"test/srt/vscode:/vscode.git/clone" did not exist on "3c06b673aff98b2e3f3ae311f39f76445ff24e5f"
Unverified Commit 9e87618f authored by Daniil's avatar Daniil Committed by GitHub
Browse files

Fix docstring and type hint for resize (#27104)

fix docstring and type hint for resize
parent ef23b68e
......@@ -274,7 +274,7 @@ def get_resize_output_image_size(
def resize(
image,
image: np.ndarray,
size: Tuple[int, int],
resample: "PILImageResampling" = None,
reducing_gap: Optional[int] = None,
......@@ -286,7 +286,7 @@ def resize(
Resizes `image` to `(height, width)` specified by `size` using the PIL library.
Args:
image (`PIL.Image.Image` or `np.ndarray` or `torch.Tensor`):
image (`np.ndarray`):
The image to resize.
size (`Tuple[int, int]`):
The size to use for resizing the image.
......
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