Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
2222740f
Unverified
Commit
2222740f
authored
Dec 22, 2022
by
dhansmair
Committed by
GitHub
Dec 22, 2022
Browse files
change strings to f-strings in image_processing_utils.py (#20865)
change strings to f-strings
parent
829e8894
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/image_processing_utils.py
src/transformers/image_processing_utils.py
+2
-2
No files found.
src/transformers/image_processing_utils.py
View file @
2222740f
...
@@ -509,8 +509,8 @@ def get_size_dict(
...
@@ -509,8 +509,8 @@ def get_size_dict(
if
not
isinstance
(
size
,
dict
):
if
not
isinstance
(
size
,
dict
):
size_dict
=
convert_to_size_dict
(
size
,
max_size
,
default_to_square
,
height_width_order
)
size_dict
=
convert_to_size_dict
(
size
,
max_size
,
default_to_square
,
height_width_order
)
logger
.
info
(
logger
.
info
(
"{param_name} should be a dictionary on of the following set of keys: {VALID_SIZE_DICT_KEYS}, got {size}."
f
"
{
param_name
}
should be a dictionary on of the following set of keys:
{
VALID_SIZE_DICT_KEYS
}
, got
{
size
}
."
" Converted to {size_dict}."
,
f
" Converted to
{
size_dict
}
."
,
)
)
else
:
else
:
size_dict
=
size
size_dict
=
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