mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
make a copy of initial state
This commit is contained in:
@@ -1972,6 +1972,8 @@ class ModularPipeline(ConfigMixin, PushToHubMixin):
|
||||
"""
|
||||
if state is None:
|
||||
state = PipelineState()
|
||||
else:
|
||||
state = deepcopy(state)
|
||||
|
||||
# Make a copy of the input kwargs
|
||||
passed_kwargs = kwargs.copy()
|
||||
|
||||
Reference in New Issue
Block a user