Normalize Qwen reference image inputs
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user