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
21a2fbaf
"docs/vscode:/vscode.git/clone" did not exist on "74b3344fbc1c2e07a3a13195fcbee174a00324f3"
Unverified
Commit
21a2fbaf
authored
Nov 01, 2023
by
Wesley L Passos
Committed by
GitHub
Nov 01, 2023
Browse files
Fix docstring in get_oneformer_resize_output_image_size func (#27207)
parent
f8afb2b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/transformers/models/oneformer/image_processing_oneformer.py
...ansformers/models/oneformer/image_processing_oneformer.py
+4
-2
No files found.
src/transformers/models/oneformer/image_processing_oneformer.py
View file @
21a2fbaf
...
@@ -307,14 +307,16 @@ def get_oneformer_resize_output_image_size(
...
@@ -307,14 +307,16 @@ def get_oneformer_resize_output_image_size(
Computes the output size given the desired size.
Computes the output size given the desired size.
Args:
Args:
input_
image (`np.ndarray`):
image (`np.ndarray`):
The input image.
The input image.
size (`int`
,
`Tuple[int, int]`
,
`List[int]`
,
`Tuple[int]`):
size (`int`
or
`Tuple[int, int]`
or
`List[int]`
or
`Tuple[int]`):
The size of the output image.
The size of the output image.
max_size (`int`, *optional*):
max_size (`int`, *optional*):
The maximum size of the output image.
The maximum size of the output image.
default_to_square (`bool`, *optional*, defaults to `True`):
default_to_square (`bool`, *optional*, defaults to `True`):
Whether to default to square if no size is provided.
Whether to default to square if no size is provided.
input_data_format (`ChannelDimension` or `str`, *optional*):
The channel dimension format of the input image. If unset, will use the inferred format from the input.
Returns:
Returns:
`Tuple[int, int]`: The output size.
`Tuple[int, int]`: The 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