Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/transformers/models/deta/image_processing_deta.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/transformers/models/detr/image_processing_detr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/transformers/models/yolos/image_processing_yolos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down