We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3c0fd commit df8dd77Copy full SHA for df8dd77
src/diffusers/modular_pipelines/modular_pipeline.py
@@ -335,7 +335,7 @@ def from_pretrained(
335
)
336
expected_kwargs, optional_kwargs = block_cls._get_signature_keys(block_cls)
337
block_kwargs = {
338
- 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
339
}
340
341
return block_cls(**block_kwargs)
0 commit comments