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
df8dd778
Unverified
Commit
df8dd778
authored
Oct 31, 2025
by
Dhruv Nair
Committed by
GitHub
Oct 31, 2025
Browse files
[Modular] Fix for custom block kwargs (#12561)
update
parent
9f3c0fdc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/modular_pipelines/modular_pipeline.py
src/diffusers/modular_pipelines/modular_pipeline.py
+1
-1
No files found.
src/diffusers/modular_pipelines/modular_pipeline.py
View file @
df8dd778
...
@@ -335,7 +335,7 @@ class ModularPipelineBlocks(ConfigMixin, PushToHubMixin):
...
@@ -335,7 +335,7 @@ class ModularPipelineBlocks(ConfigMixin, PushToHubMixin):
)
)
expected_kwargs
,
optional_kwargs
=
block_cls
.
_get_signature_keys
(
block_cls
)
expected_kwargs
,
optional_kwargs
=
block_cls
.
_get_signature_keys
(
block_cls
)
block_kwargs
=
{
block_kwargs
=
{
name
:
kwargs
.
pop
(
name
)
for
name
in
kwargs
if
name
in
expected_kwargs
or
name
in
optional_kwargs
name
:
kwargs
.
get
(
name
)
for
name
in
kwargs
if
name
in
expected_kwargs
or
name
in
optional_kwargs
}
}
return
block_cls
(
**
block_kwargs
)
return
block_cls
(
**
block_kwargs
)
...
...
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