Normalize Qwen reference image inputs

This commit is contained in:
Mikei386
2026-09-21 10:57:26 +02:00
parent 7407611e3e
commit ff20307d15
2 changed files with 5 additions and 3 deletions
@@ -135,7 +135,9 @@ def make_workflow(prompt: str, seed: int, steps: int, width: int, height: int,
for index, name in enumerate(references, 1):
node = str(8 + index)
workflow[node] = {"class_type": "LoadImage", "inputs": {"image": name}}
encode_inputs[f"image_{index}"] = [node, 0]
# ComfyUI V3 dynamic inputs use the parent path as a prefix. The
# normalizer turns images.image_N back into the execute() dict.
encode_inputs[f"images.image_{index}"] = [node, 0]
else:
workflow["5"] = {"class_type": "EmptyLatentImage", "inputs": {
"width": width, "height": height, "batch_size": 1}}