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
OpenDAS
diffusers
Commits
d2285f51
Unverified
Commit
d2285f51
authored
May 16, 2023
by
Patrick von Platen
Committed by
GitHub
May 16, 2023
Browse files
fix warning message pipeline loading (#3446)
parent
326f326e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/diffusers/pipelines/pipeline_utils.py
src/diffusers/pipelines/pipeline_utils.py
+1
-2
No files found.
src/diffusers/pipelines/pipeline_utils.py
View file @
d2285f51
...
...
@@ -296,8 +296,7 @@ def maybe_raise_or_warn(
if
not
issubclass
(
model_cls
,
expected_class_obj
):
raise
ValueError
(
f
"
{
passed_class_obj
[
name
]
}
is of type:
{
type
(
passed_class_obj
[
name
])
}
, but should be"
f
"
{
expected_class_obj
}
"
f
"
{
passed_class_obj
[
name
]
}
is of type:
{
model_cls
}
, but should be"
f
"
{
expected_class_obj
}
"
)
else
:
logger
.
warning
(
...
...
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