mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fixing docstring in get_resize_output_image_size function (#27191)
This commit is contained in:
parent
636f704d0b
commit
f3c1a172bb
@ -136,9 +136,9 @@ def get_resize_output_image_size(
|
||||
image size is computed by keeping the aspect ratio of the input image size.
|
||||
|
||||
Args:
|
||||
image_size (`Tuple[int, int]`):
|
||||
The input image size.
|
||||
size (`int`):
|
||||
input_image (`np.ndarray`):
|
||||
The image to resize.
|
||||
size (`int` or `Tuple[int, int]` or `List[int]`):
|
||||
The desired output size.
|
||||
max_size (`int`, *optional*):
|
||||
The maximum allowed output size.
|
||||
|
@ -135,9 +135,9 @@ def get_resize_output_image_size(
|
||||
image size is computed by keeping the aspect ratio of the input image size.
|
||||
|
||||
Args:
|
||||
image_size (`Tuple[int, int]`):
|
||||
The input image size.
|
||||
size (`int`):
|
||||
input_image (`np.ndarray`):
|
||||
The image to resize.
|
||||
size (`int` or `Tuple[int, int]` or `List[int]`):
|
||||
The desired output size.
|
||||
max_size (`int`, *optional*):
|
||||
The maximum allowed output size.
|
||||
|
@ -127,9 +127,9 @@ def get_resize_output_image_size(
|
||||
image size is computed by keeping the aspect ratio of the input image size.
|
||||
|
||||
Args:
|
||||
image_size (`Tuple[int, int]`):
|
||||
The input image size.
|
||||
size (`int`):
|
||||
input_image (`np.ndarray`):
|
||||
The image to resize.
|
||||
size (`int` or `Tuple[int, int]` or `List[int]`):
|
||||
The desired output size.
|
||||
max_size (`int`, *optional*):
|
||||
The maximum allowed output size.
|
||||
|
@ -133,9 +133,9 @@ def get_resize_output_image_size(
|
||||
image size is computed by keeping the aspect ratio of the input image size.
|
||||
|
||||
Args:
|
||||
image_size (`Tuple[int, int]`):
|
||||
The input image size.
|
||||
size (`int`):
|
||||
input_image (`np.ndarray`):
|
||||
The image to resize.
|
||||
size (`int` or `Tuple[int, int]` or `List[int]`):
|
||||
The desired output size.
|
||||
max_size (`int`, *optional*):
|
||||
The maximum allowed output size.
|
||||
|
@ -152,9 +152,9 @@ def get_resize_output_image_size(
|
||||
image size is computed by keeping the aspect ratio of the input image size.
|
||||
|
||||
Args:
|
||||
image_size (`Tuple[int, int]`):
|
||||
The input image size.
|
||||
size (`int`):
|
||||
input_image (`np.ndarray`):
|
||||
The image to resize.
|
||||
size (`int` or `Tuple[int, int]` or `List[int]`):
|
||||
The desired output size.
|
||||
max_size (`int`, *optional*):
|
||||
The maximum allowed output size.
|
||||
|
Loading…
Reference in New Issue
Block a user