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
fda12563
Unverified
Commit
fda12563
authored
Nov 14, 2022
by
amyeroberts
Committed by
GitHub
Nov 14, 2022
Browse files
Downgrade log warning -> info (#20202)
parent
36b063ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/image_processing_utils.py
src/transformers/image_processing_utils.py
+1
-1
No files found.
src/transformers/image_processing_utils.py
View file @
fda12563
...
@@ -497,7 +497,7 @@ def get_size_dict(
...
@@ -497,7 +497,7 @@ def get_size_dict(
elif
isinstance
(
size
,
(
tuple
,
list
))
and
not
height_width_order
:
elif
isinstance
(
size
,
(
tuple
,
list
))
and
not
height_width_order
:
size_dict
=
{
"height"
:
size
[
1
],
"width"
:
size
[
0
]}
size_dict
=
{
"height"
:
size
[
1
],
"width"
:
size
[
0
]}
logger
.
warning
(
logger
.
info
(
"The size parameter should be a dictionary with keys ('height', 'width'), ('shortest_edge', 'longest_edge')"
"The size parameter should be a dictionary with keys ('height', 'width'), ('shortest_edge', 'longest_edge')"
f
" or ('shortest_edge',) got
{
size
}
. Setting as
{
size_dict
}
."
,
f
" or ('shortest_edge',) got
{
size
}
. Setting as
{
size_dict
}
."
,
)
)
...
...
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