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
renzhc
diffusers_dcu
Commits
be0b7f55
Unverified
Commit
be0b7f55
authored
Apr 02, 2025
by
Eliseu Silva
Committed by
GitHub
Apr 02, 2025
Browse files
fix: for checking mandatory and optional pipeline components (#11189)
fix: optional componentes verification on load
parent
4d5a96e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/pipeline_utils.py
src/diffusers/pipelines/pipeline_utils.py
+1
-1
No files found.
src/diffusers/pipelines/pipeline_utils.py
View file @
be0b7f55
...
...
@@ -998,7 +998,7 @@ class DiffusionPipeline(ConfigMixin, PushToHubMixin):
for
module
in
missing_modules
:
init_kwargs
[
module
]
=
passed_class_obj
.
get
(
module
,
None
)
elif
len
(
missing_modules
)
>
0
:
passed_modules
=
set
(
list
(
init_kwargs
.
keys
())
+
list
(
passed_class_obj
.
keys
()))
-
optional_kwargs
passed_modules
=
set
(
list
(
init_kwargs
.
keys
())
+
list
(
passed_class_obj
.
keys
()))
-
set
(
optional_kwargs
)
raise
ValueError
(
f
"Pipeline
{
pipeline_class
}
expected
{
expected_modules
}
, but only
{
passed_modules
}
were passed."
)
...
...
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