Skip to content

Commit d89631f

Browse files
committed
update input formating, consider kwarggs_type inputs with no name, e/g *_controlnet_kwargs
1 parent 16b6583 commit d89631f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/diffusers/pipelines/modular_pipeline_utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,11 @@ def format_intermediates_short(intermediates_inputs, required_intermediates_inpu
322322
if inp.name in required_intermediates_inputs:
323323
input_parts.append(f"Required({inp.name})")
324324
else:
325-
input_parts.append(inp.name)
325+
if inp.name is None and inp.kwargs_type is not None:
326+
inp_name = "*_" + inp.kwargs_type
327+
else:
328+
inp_name = inp.name
329+
input_parts.append(inp_name)
326330

327331
# Handle modified variables (appear in both inputs and outputs)
328332
inputs_set = {inp.name for inp in intermediates_inputs}

0 commit comments

Comments
 (0)