Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
f3c1a172
Unverified
Commit
f3c1a172
authored
Nov 01, 2023
by
Wesley L Passos
Committed by
GitHub
Nov 01, 2023
Browse files
Fixing docstring in get_resize_output_image_size function (#27191)
parent
636f704d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
15 deletions
+15
-15
src/transformers/models/conditional_detr/image_processing_conditional_detr.py
...els/conditional_detr/image_processing_conditional_detr.py
+3
-3
src/transformers/models/deformable_detr/image_processing_deformable_detr.py
...odels/deformable_detr/image_processing_deformable_detr.py
+3
-3
src/transformers/models/deta/image_processing_deta.py
src/transformers/models/deta/image_processing_deta.py
+3
-3
src/transformers/models/detr/image_processing_detr.py
src/transformers/models/detr/image_processing_detr.py
+3
-3
src/transformers/models/yolos/image_processing_yolos.py
src/transformers/models/yolos/image_processing_yolos.py
+3
-3
No files found.
src/transformers/models/conditional_detr/image_processing_conditional_detr.py
View file @
f3c1a172
...
...
@@ -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:
i
mage_size (`Tuple[int, int]
`):
The i
nput i
mage size.
size (`int`):
i
nput_image (`np.ndarray
`):
The image
to re
size.
size (`int`
or `Tuple[int, int]` or `List[int]`
):
The desired output size.
max_size (`int`, *optional*):
The maximum allowed output size.
...
...
src/transformers/models/deformable_detr/image_processing_deformable_detr.py
View file @
f3c1a172
...
...
@@ -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:
i
mage_size (`Tuple[int, int]
`):
The i
nput i
mage size.
size (`int`):
i
nput_image (`np.ndarray
`):
The image
to re
size.
size (`int`
or `Tuple[int, int]` or `List[int]`
):
The desired output size.
max_size (`int`, *optional*):
The maximum allowed output size.
...
...
src/transformers/models/deta/image_processing_deta.py
View file @
f3c1a172
...
...
@@ -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:
i
mage_size (`Tuple[int, int]
`):
The i
nput i
mage size.
size (`int`):
i
nput_image (`np.ndarray
`):
The image
to re
size.
size (`int`
or `Tuple[int, int]` or `List[int]`
):
The desired output size.
max_size (`int`, *optional*):
The maximum allowed output size.
...
...
src/transformers/models/detr/image_processing_detr.py
View file @
f3c1a172
...
...
@@ -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:
i
mage_size (`Tuple[int, int]
`):
The i
nput i
mage size.
size (`int`):
i
nput_image (`np.ndarray
`):
The image
to re
size.
size (`int`
or `Tuple[int, int]` or `List[int]`
):
The desired output size.
max_size (`int`, *optional*):
The maximum allowed output size.
...
...
src/transformers/models/yolos/image_processing_yolos.py
View file @
f3c1a172
...
...
@@ -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:
i
mage_size (`Tuple[int, int]
`):
The i
nput i
mage size.
size (`int`):
i
nput_image (`np.ndarray
`):
The image
to re
size.
size (`int`
or `Tuple[int, int]` or `List[int]`
):
The desired output size.
max_size (`int`, *optional*):
The maximum allowed output size.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment