ComfyUI/cfz/workflows/Comfyui-Zluda- Qwen-Image-Edit-Workflow.json
2025-09-02 17:59:09 +03:00

1134 lines
22 KiB
JSON

{
"id": "7cbcec68-7fa6-47bb-a38a-da689949a001",
"revision": 0,
"last_node_id": 239,
"last_link_id": 420,
"nodes": [
{
"id": 31,
"type": "KSampler",
"pos": [
-254.38722229003906,
215.63897705078125
],
"size": [
210,
262
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 400
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 374
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 375
},
{
"name": "latent_image",
"type": "LATENT",
"link": 409
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
322
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.38",
"Node name for S&R": "KSampler"
},
"widgets_values": [
909357180612308,
"randomize",
2,
1,
"res_2s",
"bong_tangent",
1
],
"color": "#2a363b",
"bgcolor": "#3f5159",
"shape": 1
},
{
"id": 136,
"type": "SaveImage",
"pos": [
-20.44978904724121,
122.09445190429688
],
"size": [
256.9048156738281,
484.9698486328125
],
"flags": {
"collapsed": false
},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 377
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.39",
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"qwen-edit\\qwenedit"
],
"shape": 1
},
{
"id": 190,
"type": "UNETLoader",
"pos": [
-1095.24560546875,
145.51499938964844
],
"size": [
287.05792236328125,
82
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
396
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.48",
"Node name for S&R": "UNETLoader",
"models": [
{
"name": "qwen_image_fp8_e4m3fn.safetensors",
"url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors",
"directory": "diffusion_models"
}
],
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"widget_ue_connectable": {}
},
"widgets_values": [
"qwenimage4step_00001_.safetensors",
"fp8_e5m2"
],
"color": "#332922",
"bgcolor": "#593930",
"shape": 1
},
{
"id": 193,
"type": "ModelSamplingAuraFlow",
"pos": [
-480.092041015625,
226.68487548828125
],
"size": [
210,
58
],
"flags": {
"collapsed": false
},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 348
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
398
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "ModelSamplingAuraFlow"
},
"widgets_values": [
3.5
],
"color": "#332922",
"bgcolor": "#593930",
"shape": 1
},
{
"id": 199,
"type": "VAEDecodeTiled",
"pos": [
-252.82998657226562,
528.8256225585938
],
"size": [
210,
151.1167755126953
],
"flags": {
"collapsed": false
},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 322
},
{
"name": "vae",
"type": "VAE",
"link": 342
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
376
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "VAEDecodeTiled"
},
"widgets_values": [
512,
64,
64,
8
],
"color": "#223",
"bgcolor": "#335",
"shape": 1
},
{
"id": 201,
"type": "LoadImage",
"pos": [
-1077.2164306640625,
721.9271240234375
],
"size": [
288.9044494628906,
326
],
"flags": {
"collapsed": false
},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
412,
419
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"534325031_18515861197008839_7428513282061612305_n.jpg",
"image"
],
"color": "#432",
"bgcolor": "#653",
"shape": 1
},
{
"id": 209,
"type": "CFZVAELoader",
"pos": [
-1095.289794921875,
394.710205078125
],
"size": [
284.8243713378906,
82
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
342,
404
]
}
],
"properties": {
"Node name for S&R": "CFZVAELoader"
},
"widgets_values": [
"qwen_image_vae.safetensors",
"fp16"
],
"color": "#223",
"bgcolor": "#335",
"shape": 1
},
{
"id": 211,
"type": "PathchSageAttentionKJ",
"pos": [
-484.4090576171875,
117.54524230957031
],
"size": [
210,
58
],
"flags": {
"collapsed": false
},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 397
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
348
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "876a6dd2929d88ec35c09c7cddc6c360f4b27013",
"Node name for S&R": "PathchSageAttentionKJ"
},
"widgets_values": [
"auto"
],
"color": "#332922",
"bgcolor": "#593930",
"shape": 1
},
{
"id": 218,
"type": "VRAM_Debug",
"pos": [
-186.1266632080078,
788.2235107421875
],
"size": [
291.1640625,
186
],
"flags": {
"collapsed": true
},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "any_input",
"shape": 7,
"type": "*",
"link": 402
},
{
"name": "image_pass",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "model_pass",
"shape": 7,
"type": "MODEL",
"link": null
}
],
"outputs": [
{
"name": "any_output",
"type": "*",
"links": [
374,
375
]
},
{
"name": "image_pass",
"type": "IMAGE",
"links": null
},
{
"name": "model_pass",
"type": "MODEL",
"links": null
},
{
"label": "16,526,988,288 freemem_before",
"name": "freemem_before",
"type": "INT",
"links": null
},
{
"label": "16,779,378,688 freemem_after",
"name": "freemem_after",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "876a6dd2929d88ec35c09c7cddc6c360f4b27013",
"Node name for S&R": "VRAM_Debug"
},
"widgets_values": [
true,
true,
true
],
"color": "#2a363b",
"bgcolor": "#3f5159",
"shape": 1
},
{
"id": 219,
"type": "VRAM_Debug",
"pos": [
-184.78164672851562,
732.9180297851562
],
"size": [
291.1640625,
186
],
"flags": {
"collapsed": true
},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "any_input",
"shape": 7,
"type": "*",
"link": null
},
{
"name": "image_pass",
"shape": 7,
"type": "IMAGE",
"link": 376
},
{
"name": "model_pass",
"shape": 7,
"type": "MODEL",
"link": null
}
],
"outputs": [
{
"name": "any_output",
"type": "*",
"links": []
},
{
"name": "image_pass",
"type": "IMAGE",
"links": [
377
]
},
{
"name": "model_pass",
"type": "MODEL",
"links": null
},
{
"label": "16,224,998,400 freemem_before",
"name": "freemem_before",
"type": "INT",
"links": null
},
{
"label": "16,779,378,688 freemem_after",
"name": "freemem_after",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "876a6dd2929d88ec35c09c7cddc6c360f4b27013",
"Node name for S&R": "VRAM_Debug"
},
"widgets_values": [
true,
true,
true
],
"color": "#2a363b",
"bgcolor": "#3f5159",
"shape": 1
},
{
"id": 220,
"type": "Note",
"pos": [
-1091.3302001953125,
540.2989501953125
],
"size": [
469.8566589355469,
88
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"* you can use \nhttps://github.com/lum3on/ComfyUI-ModelQuantizer \nto quantize fp16 / bf16 model to e5m2.(best for amd)"
],
"color": "#432",
"bgcolor": "#653",
"shape": 1
},
{
"id": 222,
"type": "PreviewImage",
"pos": [
-776.29345703125,
850.9697875976562
],
"size": [
222.2845916748047,
258
],
"flags": {
"collapsed": false
},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 419
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "PreviewImage"
},
"widgets_values": [],
"color": "#432",
"bgcolor": "#653",
"shape": 1
},
{
"id": 231,
"type": "TorchCompileModelQwenImage",
"pos": [
-781.9800415039062,
114.09339141845703
],
"size": [
282.74609375,
178
],
"flags": {
"collapsed": false
},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 396
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
397
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "876a6dd2929d88ec35c09c7cddc6c360f4b27013",
"Node name for S&R": "TorchCompileModelQwenImage"
},
"widgets_values": [
"inductor",
false,
"default",
false,
true,
128
],
"color": "#332922",
"bgcolor": "#593930",
"shape": 1
},
{
"id": 232,
"type": "CFGNorm",
"pos": [
-254.8594207763672,
105.15921783447266
],
"size": [
210,
58
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 398
}
],
"outputs": [
{
"name": "patched_model",
"type": "MODEL",
"links": [
400
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "CFGNorm",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"ue_properties": {
"version": "7.0.1",
"widget_ue_connectable": {
"strength": true
}
}
},
"widgets_values": [
1
],
"color": "#332922",
"bgcolor": "#593930",
"shape": 1
},
{
"id": 233,
"type": "CLIPTextEncode",
"pos": [
-784.2139282226562,
339.6834716796875
],
"size": [
500.5103454589844,
156.44552612304688
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 414
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
406
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"make the woman's hair blue"
],
"color": "#232",
"bgcolor": "#353",
"shape": 1
},
{
"id": 234,
"type": "ReferenceLatent",
"pos": [
-487.1500549316406,
542.9376220703125
],
"size": [
197.712890625,
46
],
"flags": {
"collapsed": false
},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 406
},
{
"name": "latent",
"shape": 7,
"type": "LATENT",
"link": 405
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
402
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "ReferenceLatent"
},
"widgets_values": [],
"color": "#332922",
"bgcolor": "#593930",
"shape": 1
},
{
"id": 235,
"type": "VAEEncodeTiled",
"pos": [
-497.2005310058594,
652.3844604492188
],
"size": [
210,
150
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 420
},
{
"name": "vae",
"type": "VAE",
"link": 404
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
405,
409
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "VAEEncodeTiled"
},
"widgets_values": [
512,
64,
64,
8
],
"color": "#223",
"bgcolor": "#335",
"shape": 1
},
{
"id": 236,
"type": "ImageScaleToTotalPixels",
"pos": [
-775.2783813476562,
720.5057373046875
],
"size": [
234.56919860839844,
82
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 412
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
420
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "ImageScaleToTotalPixels"
},
"widgets_values": [
"nearest-exact",
1
],
"color": "#432",
"bgcolor": "#653",
"shape": 1
},
{
"id": 237,
"type": "CLIPLoaderGGUF",
"pos": [
-1093.5625,
269.3258056640625
],
"size": [
284.8243713378906,
82
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
414
]
}
],
"properties": {
"cnr_id": "comfyui-gguf",
"ver": "1.1.3",
"Node name for S&R": "CLIPLoaderGGUF"
},
"widgets_values": [
"Qwen2.5-VL-7B-Instruct-abliterated.Q4_K_M.gguf",
"qwen_image"
],
"color": "#232",
"bgcolor": "#353",
"shape": 1
}
],
"links": [
[
322,
31,
0,
199,
0,
"LATENT"
],
[
342,
209,
0,
199,
1,
"VAE"
],
[
348,
211,
0,
193,
0,
"MODEL"
],
[
374,
218,
0,
31,
1,
"CONDITIONING"
],
[
375,
218,
0,
31,
2,
"CONDITIONING"
],
[
376,
199,
0,
219,
1,
"IMAGE"
],
[
377,
219,
1,
136,
0,
"IMAGE"
],
[
396,
190,
0,
231,
0,
"MODEL"
],
[
397,
231,
0,
211,
0,
"MODEL"
],
[
398,
193,
0,
232,
0,
"MODEL"
],
[
400,
232,
0,
31,
0,
"MODEL"
],
[
402,
234,
0,
218,
0,
"*"
],
[
404,
209,
0,
235,
1,
"VAE"
],
[
405,
235,
0,
234,
1,
"LATENT"
],
[
406,
233,
0,
234,
0,
"CONDITIONING"
],
[
409,
235,
0,
31,
3,
"LATENT"
],
[
412,
201,
0,
236,
0,
"IMAGE"
],
[
414,
237,
0,
233,
0,
"CLIP"
],
[
419,
201,
0,
222,
0,
"IMAGE"
],
[
420,
236,
0,
235,
0,
"IMAGE"
]
],
"groups": [
{
"id": 1,
"title": "models",
"bounding": [
-1105.8466796875,
70.53893280029297,
303.0500793457031,
418.38482666015625
],
"color": "#A88",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "input",
"bounding": [
-1086.8612060546875,
646.7985229492188,
557.67626953125,
476.45745849609375
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.895430243255317,
"offset": [
1326.969817544657,
-22.517282988604055
]
},
"frontendVersion": "1.26.5",
"groupNodes": {},
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}