Files
fblissjr-ComfyUI-QwenImageW…/example_workflows/qwen_edit_single_image.json
T
2025-10-02 13:19:37 -05:00

1115 lines
20 KiB
JSON

{
"id": "simplified-multi-image-workflow",
"revision": 0,
"last_node_id": 35,
"last_link_id": 53,
"nodes": [
{
"id": 12,
"type": "VAEDecode",
"pos": [
2000,
400
],
"size": [
210,
46
],
"flags": {},
"order": 17,
"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": 18,
"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\nMajor 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": 9,
"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": 12,
"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": [
41
]
}
],
"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": [
42,
43
]
}
],
"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": 14,
"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": 15,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 40
}
],
"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": 34,
"type": "PreviewAny",
"pos": [
1258.056640625,
1068.10302734375
],
"size": [
210,
88
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 52
}
],
"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": 33,
"type": "KSampler",
"pos": [
1696.81787109375,
358.5426330566406
],
"size": [
270,
468.7710876464844
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 49
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 48
},
{
"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": 10,
"type": "QwenVLEmptyLatent",
"pos": [
1328,
857
],
"size": [
315,
106
],
"flags": {},
"order": 5,
"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": 5,
"type": "LoadImage",
"pos": [
-7,
443
],
"size": [
315,
314
],
"flags": {},
"order": 6,
"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": 6,
"type": "LoadImage",
"pos": [
-21.51349449157715,
807.1974487304688
],
"size": [
315,
314
],
"flags": {},
"order": 7,
"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": [
"Aaron%20Douglas.jpg",
"image"
]
},
{
"id": 8,
"type": "QwenTemplateBuilder",
"pos": [
744.5240478515625,
680.5704345703125
],
"size": [
400,
230
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "prompt",
"type": "STRING",
"slot_index": 0,
"links": [
8,
52
]
},
{
"name": "system_prompt",
"type": "STRING",
"slot_index": 1,
"links": null
},
{
"name": "mode_info",
"type": "STRING",
"slot_index": 2,
"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 1 is holding the flowers from Picture 2 with a painting of Picture 3 hanging in the background",
"multi_image_edit",
"",
3
]
},
{
"id": 7,
"type": "ImageBatchMulti",
"pos": [
750,
400
],
"size": [
315,
198
],
"flags": {},
"order": 10,
"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
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"slot_index": 0,
"links": [
7
]
}
],
"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": [
3,
null
]
},
{
"id": 9,
"type": "QwenVLTextEncoder",
"pos": [
1200,
400
],
"size": [
400,
300
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 41
},
{
"name": "edit_image",
"shape": 7,
"type": "IMAGE",
"link": 7
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": 42
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 8
}
],
"outputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
40,
48
]
}
],
"properties": {
"Node name for S&R": "QwenVLTextEncoder",
"ue_properties": {
"widget_ue_connectable": {
"text": true,
"template": true,
"debug_mode": true
},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"",
"image_edit",
"",
false,
"analyze",
"test"
]
}
],
"links": [
[
7,
7,
0,
9,
1,
"IMAGE"
],
[
8,
8,
0,
9,
3,
"STRING"
],
[
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"
],
[
40,
9,
0,
28,
0,
"CONDITIONING"
],
[
41,
29,
0,
9,
0,
"CLIP"
],
[
42,
30,
0,
9,
2,
"VAE"
],
[
43,
30,
0,
12,
1,
"VAE"
],
[
45,
31,
0,
25,
0,
"MODEL"
],
[
47,
28,
0,
33,
2,
"CONDITIONING"
],
[
48,
9,
0,
33,
1,
"CONDITIONING"
],
[
49,
27,
0,
33,
0,
"MODEL"
],
[
50,
10,
0,
33,
3,
"LATENT"
],
[
51,
33,
0,
12,
0,
"LATENT"
],
[
52,
8,
0,
34,
0,
"*"
],
[
53,
6,
0,
7,
2,
"IMAGE"
]
],
"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.1,
"offset": [
445.6791265050864,
-0.40403560746247313
]
},
"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
}