Files
fblissjr-ComfyUI-QwenImageW…/example_workflows/qwen_multi_exp.json
T
2025-09-25 17:52:37 -05:00

1233 lines
22 KiB
JSON

{
"id": "simplified-multi-image-workflow",
"revision": 0,
"last_node_id": 39,
"last_link_id": 64,
"nodes": [
{
"id": 12,
"type": "VAEDecode",
"pos": [
2000,
400
],
"size": [
210,
46
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 51
},
{
"name": "vae",
"type": "VAE",
"link": 43
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
14
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "VAEDecode",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": []
},
{
"id": 13,
"type": "SaveImage",
"pos": [
2250,
400
],
"size": [
315,
270
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 14
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "SaveImage",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"qwen_multi_2509"
]
},
{
"id": 20,
"type": "Note",
"pos": [
-450,
92
],
"size": [
350,
800
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"# Simplified Multi-Image Workflow\n\n## What's Changed\n- **Removed ImageScaleToTotalPixels nodes**\n- Images connect directly to ImageBatchMulti\n- QwenVLTextEncoder handles all resizing internally\n- Automatic 32-pixel alignment\n\n## Using ImageBatchMulti\n- From KJNodes pack\n- Set inputcount widget to 3 for 3 images\n- Connects image_1, image_2, image_3 inputs\n- Outputs single batched image\n\n## Quick Start\n1. Load 2-3 images\n2. Connect to ImageBatchMulti (KJNodes)\n3. Use 'Picture 1', 'Picture 2' in prompt\n4. Encoder handles everything else\n\n## Why This Works Better\n- Proper 32-pixel alignment (not arbitrary scaling)\n- Preserves aspect ratios correctly\n- Matches DiffSynth/Diffusers behavior\n- Simpler workflow\n\n## Denoise Guide\n- 0.3-0.5: Minor changes\n- 0.6-0.8: Moderate changes \n- 0.9-1.0: Major changes\n\n## Debug Mode\nEnable in QwenVLTextEncoder to see:\n- Picture X: formatting\n- Dimension calculations\n- Token processing"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 25,
"type": "LoraLoaderModelOnly",
"pos": [
942,
-209
],
"size": [
270,
82
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 45
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
31
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "LoraLoaderModelOnly",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"Qwen-Image-Edit-Lightning-8steps-V1.0.safetensors",
1
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 26,
"type": "ModelSamplingAuraFlow",
"pos": [
1075,
63
],
"size": [
270,
58
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 31
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
32
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "ModelSamplingAuraFlow",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
3
]
},
{
"id": 29,
"type": "QwenVLCLIPLoader",
"pos": [
418,
-319
],
"size": [
315,
58
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "clip",
"type": "CLIP",
"slot_index": 0,
"links": [
57
]
}
],
"properties": {
"Node name for S&R": "QwenVLCLIPLoader",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"qwen_2.5_vl_7b.safetensors"
]
},
{
"id": 30,
"type": "VAELoader",
"pos": [
418,
-219
],
"size": [
315,
58
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"slot_index": 0,
"links": [
43,
59
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "VAELoader",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"qwen_image_vae.safetensors"
]
},
{
"id": 27,
"type": "CFGNorm",
"pos": [
1071,
178
],
"size": [
270,
58
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 32
}
],
"outputs": [
{
"name": "patched_model",
"type": "MODEL",
"links": [
49
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "CFGNorm",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
1
]
},
{
"id": 4,
"type": "LoadImage",
"pos": [
-7,
93
],
"size": [
315,
314
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
34
]
},
{
"name": "MASK",
"type": "MASK",
"slot_index": 1,
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "LoadImage",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"1-man.png",
"image"
]
},
{
"id": 31,
"type": "UNETLoader",
"pos": [
424,
-120
],
"size": [
304,
122
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
45
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "UNETLoader",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"qwen_image_edit_2509_fp8_e4m3fn.safetensors",
"fp8_e4m3fn"
]
},
{
"id": 28,
"type": "ConditioningZeroOut",
"pos": [
1451,
283
],
"size": [
197.712890625,
26
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 61
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
47
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "ConditioningZeroOut",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 33,
"type": "KSampler",
"pos": [
1696.81787109375,
358.5426330566406
],
"size": [
270,
468.7710876464844
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 49
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 62
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 47
},
{
"name": "latent_image",
"type": "LATENT",
"link": 50
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
51
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.51",
"Node name for S&R": "KSampler",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
42,
"fixed",
5,
1,
"res_2s",
"beta57",
1
]
},
{
"id": 5,
"type": "LoadImage",
"pos": [
-7,
443
],
"size": [
315,
314
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
36
]
},
{
"name": "MASK",
"type": "MASK",
"slot_index": 1,
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "LoadImage",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"3-style_impressionist_flowers.png",
"image"
]
},
{
"id": 38,
"type": "QwenVLTextEncoder",
"pos": [
1200,
400
],
"size": [
400,
278
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 57
},
{
"name": "edit_image",
"shape": 7,
"type": "IMAGE",
"link": 58
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": 59
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 60
},
{
"name": "system_prompt",
"shape": 7,
"type": "STRING",
"widget": {
"name": "system_prompt"
},
"link": 63
}
],
"outputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"links": [
61,
62
]
}
],
"properties": {
"Node name for S&R": "QwenVLTextEncoder",
"ue_properties": {
"widget_ue_connectable": {
"text": true,
"system_prompt": true
},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"A beautiful landscape",
"image_edit",
"",
false,
"analyze",
"test"
]
},
{
"id": 6,
"type": "LoadImage",
"pos": [
-21.51349449157715,
807.1974487304688
],
"size": [
315,
314
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
53
]
},
{
"name": "MASK",
"type": "MASK",
"slot_index": 1,
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "LoadImage",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"6-painting.jpg",
"image"
]
},
{
"id": 39,
"type": "LoadImage",
"pos": [
-25.977420806884766,
1557.975341796875
],
"size": [
315,
314.00006103515625
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": []
},
{
"name": "MASK",
"type": "MASK",
"slot_index": 1,
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "LoadImage",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"ComfyUI_00774_.png",
"image"
]
},
{
"id": 7,
"type": "ImageBatchMulti",
"pos": [
750,
400
],
"size": [
315,
198
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 34
},
{
"name": "image_2",
"shape": 7,
"type": "IMAGE",
"link": 36
},
{
"name": "image_3",
"shape": 7,
"type": "IMAGE",
"link": 53
},
{
"name": "image_4",
"shape": 7,
"type": "IMAGE",
"link": 54
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"slot_index": 0,
"links": [
58
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "1.1.6",
"Node name for S&R": "ImageBatchMulti",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
4,
null
]
},
{
"id": 34,
"type": "PreviewAny",
"pos": [
1258.056640625,
1068.10302734375
],
"size": [
361.7649230957031,
108.44389343261719
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 56
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "PreviewAny",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": []
},
{
"id": 36,
"type": "LoadImage",
"pos": [
0.7484174966812134,
1147.446044921875
],
"size": [
315,
314.00006103515625
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
54
]
},
{
"name": "MASK",
"type": "MASK",
"slot_index": 1,
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.60",
"Node name for S&R": "LoadImage",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"4-pencilstyle.png",
"image"
]
},
{
"id": 10,
"type": "QwenVLEmptyLatent",
"pos": [
1328,
857
],
"size": [
315,
106
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
50
]
}
],
"properties": {
"Node name for S&R": "QwenVLEmptyLatent",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
1328,
1024,
1
]
},
{
"id": 37,
"type": "QwenTemplateBuilder",
"pos": [
492.6346435546875,
1105.580078125
],
"size": [
532.3330688476562,
413.6612243652344
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "prompt",
"type": "STRING",
"links": [
56,
60
]
},
{
"name": "system_prompt",
"type": "STRING",
"links": [
63
]
},
{
"name": "mode_info",
"type": "STRING",
"links": null
}
],
"properties": {
"Node name for S&R": "QwenTemplateBuilder",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"The old man from Picture 4 is holding up a caramel version of the house from Picture 4, with a painting of Picture 3 hanging in the background next to a vase of the flowers from Picture 2",
"default_edit",
"",
4
]
}
],
"links": [
[
14,
12,
0,
13,
0,
"IMAGE"
],
[
31,
25,
0,
26,
0,
"MODEL"
],
[
32,
26,
0,
27,
0,
"MODEL"
],
[
34,
4,
0,
7,
0,
"IMAGE"
],
[
36,
5,
0,
7,
1,
"IMAGE"
],
[
43,
30,
0,
12,
1,
"VAE"
],
[
45,
31,
0,
25,
0,
"MODEL"
],
[
47,
28,
0,
33,
2,
"CONDITIONING"
],
[
49,
27,
0,
33,
0,
"MODEL"
],
[
50,
10,
0,
33,
3,
"LATENT"
],
[
51,
33,
0,
12,
0,
"LATENT"
],
[
53,
6,
0,
7,
2,
"IMAGE"
],
[
54,
36,
0,
7,
3,
"IMAGE"
],
[
56,
37,
0,
34,
0,
"*"
],
[
57,
29,
0,
38,
0,
"CLIP"
],
[
58,
7,
0,
38,
1,
"IMAGE"
],
[
59,
30,
0,
38,
2,
"VAE"
],
[
60,
37,
0,
38,
3,
"STRING"
],
[
61,
38,
0,
28,
0,
"CONDITIONING"
],
[
62,
38,
0,
33,
1,
"CONDITIONING"
],
[
63,
37,
1,
38,
4,
"STRING"
]
],
"groups": [
{
"id": 1,
"title": "Instructions & Guide",
"bounding": [
-410,
20,
370,
850
],
"color": "#A88",
"font_size": 24,
"flags": {}
},
{
"id": 3,
"title": "Multi-Image Input (Direct)",
"bounding": [
-17,
23,
713,
1072
],
"color": "#8A8",
"font_size": 24,
"flags": {}
},
{
"id": 4,
"title": "Multi-Image Processing",
"bounding": [
740,
330,
430,
550
],
"color": "#A88",
"font_size": 24,
"flags": {}
},
{
"id": 5,
"title": "Generation",
"bounding": [
1190,
330,
1390,
450
],
"color": "#88A",
"font_size": 24,
"flags": {}
},
{
"id": 6,
"title": "Model Loading",
"bounding": [
408,
-389,
340,
380
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [
115.68510954562106,
-2.1211137532888245
]
},
"frontendVersion": "1.28.1",
"ue_links": [],
"links_added_by_ue": [],
"VHS_latentpreview": true,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}