1
0
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:
yiyixuxu
2025-08-10 22:46:16 +02:00
parent a104f056ff
commit ba2afefb3d

View File

@@ -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()