ComfyUI/blueprints/Image to Layers(Qwen-Image Layered).json
Terry Jia 50076f3439
format blueprint (#13315)
Co-authored-by: guill <jacob.e.segal@gmail.com>
2026-04-06 23:33:55 -04:00

1416 lines
36 KiB
JSON

{
"id": "1a761372-7c82-4016-b9bf-fa285967e1e9",
"revision": 0,
"last_node_id": 83,
"last_link_id": 0,
"nodes": [
{
"id": 83,
"type": "f754a936-daaf-4b6e-9658-41fdc54d301d",
"pos": [
61.999827823554256,
153.3332507624185
],
"size": [
400,
550
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"localized_name": "image",
"name": "image",
"type": "IMAGE",
"link": null
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": null
},
{
"name": "steps",
"type": "INT",
"widget": {
"name": "steps"
},
"link": null
},
{
"name": "cfg",
"type": "FLOAT",
"widget": {
"name": "cfg"
},
"link": null
},
{
"name": "layers",
"type": "INT",
"widget": {
"name": "layers"
},
"link": null
}
],
"outputs": [
{
"localized_name": "IMAGE",
"name": "IMAGE",
"type": "IMAGE",
"links": []
}
],
"properties": {
"proxyWidgets": [
[
"-1",
"text"
],
[
"-1",
"steps"
],
[
"-1",
"cfg"
],
[
"-1",
"layers"
],
[
"3",
"seed"
],
[
"3",
"control_after_generate"
]
],
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"",
20,
2.5,
2
]
}
],
"links": [],
"groups": [],
"definitions": {
"subgraphs": [
{
"id": "f754a936-daaf-4b6e-9658-41fdc54d301d",
"version": 1,
"state": {
"lastGroupId": 3,
"lastNodeId": 83,
"lastLinkId": 159,
"lastRerouteId": 0
},
"revision": 0,
"config": {},
"name": "Image to Layers (Qwen-Image-Layered)",
"inputNode": {
"id": -10,
"bounding": [
-510,
523,
120,
140
]
},
"outputNode": {
"id": -20,
"bounding": [
1160,
523,
120,
60
]
},
"inputs": [
{
"id": "6c36b5bc-c9a5-4b07-8b52-6fe0df434cce",
"name": "image",
"type": "IMAGE",
"linkIds": [
148,
149
],
"localized_name": "image",
"pos": [
-410,
543
]
},
{
"id": "8497fe33-124d-4e3e-9ab6-fc4a56a98dde",
"name": "text",
"type": "STRING",
"linkIds": [
150
],
"pos": [
-410,
563
]
},
{
"id": "509ab2c1-e6da-47ba-8714-023100ab92bd",
"name": "steps",
"type": "INT",
"linkIds": [
153
],
"pos": [
-410,
583
]
},
{
"id": "dd81894e-5def-4c75-9b17-d8f89fe095d6",
"name": "cfg",
"type": "FLOAT",
"linkIds": [
154
],
"pos": [
-410,
603
]
},
{
"id": "66da7c8a-3369-4a3f-92f2-3073afc55e7d",
"name": "layers",
"type": "INT",
"linkIds": [
159
],
"pos": [
-410,
623
]
}
],
"outputs": [
{
"id": "7df75921-6729-4aad-bfc1-fcc536c2d298",
"name": "IMAGE",
"type": "IMAGE",
"linkIds": [
110
],
"localized_name": "IMAGE",
"pos": [
1180,
543
]
}
],
"widgets": [],
"nodes": [
{
"id": 38,
"type": "CLIPLoader",
"pos": [
-320,
310
],
"size": [
346.7470703125,
106
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"localized_name": "clip_name",
"name": "clip_name",
"type": "COMBO",
"widget": {
"name": "clip_name"
},
"link": null
},
{
"localized_name": "type",
"name": "type",
"type": "COMBO",
"widget": {
"name": "type"
},
"link": null
},
{
"localized_name": "device",
"name": "device",
"shape": 7,
"type": "COMBO",
"widget": {
"name": "device"
},
"link": null
}
],
"outputs": [
{
"localized_name": "CLIP",
"name": "CLIP",
"type": "CLIP",
"slot_index": 0,
"links": [
74,
75
]
}
],
"properties": {
"Node name for S&R": "CLIPLoader",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"models": [
{
"name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
"directory": "text_encoders"
}
],
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"qwen_2.5_vl_7b_fp8_scaled.safetensors",
"qwen_image",
"default"
]
},
{
"id": 39,
"type": "VAELoader",
"pos": [
-320,
460
],
"size": [
346.7470703125,
58
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"localized_name": "vae_name",
"name": "vae_name",
"type": "COMBO",
"widget": {
"name": "vae_name"
},
"link": null
}
],
"outputs": [
{
"localized_name": "VAE",
"name": "VAE",
"type": "VAE",
"slot_index": 0,
"links": [
76,
139
]
}
],
"properties": {
"Node name for S&R": "VAELoader",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"models": [
{
"name": "qwen_image_layered_vae.safetensors",
"url": "https://huggingface.co/Comfy-Org/Qwen-Image-Layered_ComfyUI/resolve/main/split_files/vae/qwen_image_layered_vae.safetensors",
"directory": "vae"
}
],
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"qwen_image_layered_vae.safetensors"
]
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
70,
420
],
"size": [
425.27801513671875,
180.6060791015625
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"localized_name": "clip",
"name": "clip",
"type": "CLIP",
"link": 75
},
{
"localized_name": "text",
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": null
}
],
"outputs": [
{
"localized_name": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
131
]
}
],
"title": "CLIP Text Encode (Negative Prompt)",
"properties": {
"Node name for S&R": "CLIPTextEncode",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
""
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 70,
"type": "ReferenceLatent",
"pos": [
330,
670
],
"size": [
204.1666717529297,
46
],
"flags": {
"collapsed": true
},
"order": 9,
"mode": 0,
"inputs": [
{
"localized_name": "conditioning",
"name": "conditioning",
"type": "CONDITIONING",
"link": 131
},
{
"localized_name": "latent",
"name": "latent",
"shape": 7,
"type": "LATENT",
"link": 134
}
],
"outputs": [
{
"localized_name": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
132
]
}
],
"properties": {
"Node name for S&R": "ReferenceLatent",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": []
},
{
"id": 69,
"type": "ReferenceLatent",
"pos": [
330,
710
],
"size": [
204.1666717529297,
46
],
"flags": {
"collapsed": true
},
"order": 8,
"mode": 0,
"inputs": [
{
"localized_name": "conditioning",
"name": "conditioning",
"type": "CONDITIONING",
"link": 129
},
{
"localized_name": "latent",
"name": "latent",
"shape": 7,
"type": "LATENT",
"link": 133
}
],
"outputs": [
{
"localized_name": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
130
]
}
],
"properties": {
"Node name for S&R": "ReferenceLatent",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": []
},
{
"id": 66,
"type": "ModelSamplingAuraFlow",
"pos": [
530,
150
],
"size": [
270,
58
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"localized_name": "model",
"name": "model",
"type": "MODEL",
"link": 126
},
{
"localized_name": "shift",
"name": "shift",
"type": "FLOAT",
"widget": {
"name": "shift"
},
"link": null
}
],
"outputs": [
{
"localized_name": "MODEL",
"name": "MODEL",
"type": "MODEL",
"links": [
125
]
}
],
"properties": {
"Node name for S&R": "ModelSamplingAuraFlow",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
1
]
},
{
"id": 76,
"type": "LatentCutToBatch",
"pos": [
830,
160
],
"size": [
270,
82
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"localized_name": "samples",
"name": "samples",
"type": "LATENT",
"link": 142
},
{
"localized_name": "dim",
"name": "dim",
"type": "COMBO",
"widget": {
"name": "dim"
},
"link": null
},
{
"localized_name": "slice_size",
"name": "slice_size",
"type": "INT",
"widget": {
"name": "slice_size"
},
"link": null
}
],
"outputs": [
{
"localized_name": "LATENT",
"name": "LATENT",
"type": "LATENT",
"links": [
143
]
}
],
"properties": {
"Node name for S&R": "LatentCutToBatch",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"t",
1
]
},
{
"id": 71,
"type": "VAEEncode",
"pos": [
100,
690
],
"size": [
140,
46
],
"flags": {
"collapsed": false
},
"order": 10,
"mode": 0,
"inputs": [
{
"localized_name": "pixels",
"name": "pixels",
"type": "IMAGE",
"link": 149
},
{
"localized_name": "vae",
"name": "vae",
"type": "VAE",
"link": 139
}
],
"outputs": [
{
"localized_name": "LATENT",
"name": "LATENT",
"type": "LATENT",
"links": [
133,
134
]
}
],
"properties": {
"Node name for S&R": "VAEEncode",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": []
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
850,
310
],
"size": [
210,
46
],
"flags": {
"collapsed": true
},
"order": 7,
"mode": 0,
"inputs": [
{
"localized_name": "samples",
"name": "samples",
"type": "LATENT",
"link": 143
},
{
"localized_name": "vae",
"name": "vae",
"type": "VAE",
"link": 76
}
],
"outputs": [
{
"localized_name": "IMAGE",
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
110
]
}
],
"properties": {
"Node name for S&R": "VAEDecode",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": []
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
70,
180
],
"size": [
422.84503173828125,
164.31304931640625
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"localized_name": "clip",
"name": "clip",
"type": "CLIP",
"link": 74
},
{
"localized_name": "text",
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 150
}
],
"outputs": [
{
"localized_name": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
129
]
}
],
"title": "CLIP Text Encode (Positive Prompt)",
"properties": {
"Node name for S&R": "CLIPTextEncode",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
""
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 3,
"type": "KSampler",
"pos": [
530,
280
],
"size": [
270,
400
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"localized_name": "model",
"name": "model",
"type": "MODEL",
"link": 125
},
{
"localized_name": "positive",
"name": "positive",
"type": "CONDITIONING",
"link": 130
},
{
"localized_name": "negative",
"name": "negative",
"type": "CONDITIONING",
"link": 132
},
{
"localized_name": "latent_image",
"name": "latent_image",
"type": "LATENT",
"link": 157
},
{
"localized_name": "seed",
"name": "seed",
"type": "INT",
"widget": {
"name": "seed"
},
"link": null
},
{
"localized_name": "steps",
"name": "steps",
"type": "INT",
"widget": {
"name": "steps"
},
"link": 153
},
{
"localized_name": "cfg",
"name": "cfg",
"type": "FLOAT",
"widget": {
"name": "cfg"
},
"link": 154
},
{
"localized_name": "sampler_name",
"name": "sampler_name",
"type": "COMBO",
"widget": {
"name": "sampler_name"
},
"link": null
},
{
"localized_name": "scheduler",
"name": "scheduler",
"type": "COMBO",
"widget": {
"name": "scheduler"
},
"link": null
},
{
"localized_name": "denoise",
"name": "denoise",
"type": "FLOAT",
"widget": {
"name": "denoise"
},
"link": null
}
],
"outputs": [
{
"localized_name": "LATENT",
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
142
]
}
],
"properties": {
"Node name for S&R": "KSampler",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
0,
"randomize",
20,
2.5,
"euler",
"simple",
1
]
},
{
"id": 78,
"type": "GetImageSize",
"pos": [
80,
790
],
"size": [
210,
136
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"localized_name": "image",
"name": "image",
"type": "IMAGE",
"link": 148
}
],
"outputs": [
{
"localized_name": "width",
"name": "width",
"type": "INT",
"links": [
155
]
},
{
"localized_name": "height",
"name": "height",
"type": "INT",
"links": [
156
]
},
{
"localized_name": "batch_size",
"name": "batch_size",
"type": "INT",
"links": null
}
],
"properties": {
"Node name for S&R": "GetImageSize",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": []
},
{
"id": 83,
"type": "EmptyQwenImageLayeredLatentImage",
"pos": [
320,
790
],
"size": [
330.9341796875,
130
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"localized_name": "width",
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 155
},
{
"localized_name": "height",
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 156
},
{
"localized_name": "layers",
"name": "layers",
"type": "INT",
"widget": {
"name": "layers"
},
"link": 159
},
{
"localized_name": "batch_size",
"name": "batch_size",
"type": "INT",
"widget": {
"name": "batch_size"
},
"link": null
}
],
"outputs": [
{
"localized_name": "LATENT",
"name": "LATENT",
"type": "LATENT",
"links": [
157
]
}
],
"properties": {
"Node name for S&R": "EmptyQwenImageLayeredLatentImage",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
640,
640,
2,
1
]
},
{
"id": 37,
"type": "UNETLoader",
"pos": [
-320,
180
],
"size": [
346.7470703125,
82
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"localized_name": "unet_name",
"name": "unet_name",
"type": "COMBO",
"widget": {
"name": "unet_name"
},
"link": null
},
{
"localized_name": "weight_dtype",
"name": "weight_dtype",
"type": "COMBO",
"widget": {
"name": "weight_dtype"
},
"link": null
}
],
"outputs": [
{
"localized_name": "MODEL",
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
126
]
}
],
"properties": {
"Node name for S&R": "UNETLoader",
"cnr_id": "comfy-core",
"ver": "0.5.1",
"models": [
{
"name": "qwen_image_layered_bf16.safetensors",
"url": "https://huggingface.co/Comfy-Org/Qwen-Image-Layered_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_layered_bf16.safetensors",
"directory": "diffusion_models"
}
],
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"qwen_image_layered_bf16.safetensors",
"default"
]
}
],
"groups": [
{
"id": 1,
"title": "Prompt(Optional)",
"bounding": [
60,
110,
450,
510
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "Load Models",
"bounding": [
-330,
110,
366.7470703125,
421.6
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"links": [
{
"id": 75,
"origin_id": 38,
"origin_slot": 0,
"target_id": 7,
"target_slot": 0,
"type": "CLIP"
},
{
"id": 131,
"origin_id": 7,
"origin_slot": 0,
"target_id": 70,
"target_slot": 0,
"type": "CONDITIONING"
},
{
"id": 134,
"origin_id": 71,
"origin_slot": 0,
"target_id": 70,
"target_slot": 1,
"type": "LATENT"
},
{
"id": 129,
"origin_id": 6,
"origin_slot": 0,
"target_id": 69,
"target_slot": 0,
"type": "CONDITIONING"
},
{
"id": 133,
"origin_id": 71,
"origin_slot": 0,
"target_id": 69,
"target_slot": 1,
"type": "LATENT"
},
{
"id": 126,
"origin_id": 37,
"origin_slot": 0,
"target_id": 66,
"target_slot": 0,
"type": "MODEL"
},
{
"id": 125,
"origin_id": 66,
"origin_slot": 0,
"target_id": 3,
"target_slot": 0,
"type": "MODEL"
},
{
"id": 130,
"origin_id": 69,
"origin_slot": 0,
"target_id": 3,
"target_slot": 1,
"type": "CONDITIONING"
},
{
"id": 132,
"origin_id": 70,
"origin_slot": 0,
"target_id": 3,
"target_slot": 2,
"type": "CONDITIONING"
},
{
"id": 142,
"origin_id": 3,
"origin_slot": 0,
"target_id": 76,
"target_slot": 0,
"type": "LATENT"
},
{
"id": 74,
"origin_id": 38,
"origin_slot": 0,
"target_id": 6,
"target_slot": 0,
"type": "CLIP"
},
{
"id": 139,
"origin_id": 39,
"origin_slot": 0,
"target_id": 71,
"target_slot": 1,
"type": "VAE"
},
{
"id": 143,
"origin_id": 76,
"origin_slot": 0,
"target_id": 8,
"target_slot": 0,
"type": "LATENT"
},
{
"id": 76,
"origin_id": 39,
"origin_slot": 0,
"target_id": 8,
"target_slot": 1,
"type": "VAE"
},
{
"id": 148,
"origin_id": -10,
"origin_slot": 0,
"target_id": 78,
"target_slot": 0,
"type": "IMAGE"
},
{
"id": 149,
"origin_id": -10,
"origin_slot": 0,
"target_id": 71,
"target_slot": 0,
"type": "IMAGE"
},
{
"id": 110,
"origin_id": 8,
"origin_slot": 0,
"target_id": -20,
"target_slot": 0,
"type": "IMAGE"
},
{
"id": 150,
"origin_id": -10,
"origin_slot": 1,
"target_id": 6,
"target_slot": 1,
"type": "STRING"
},
{
"id": 153,
"origin_id": -10,
"origin_slot": 2,
"target_id": 3,
"target_slot": 5,
"type": "INT"
},
{
"id": 154,
"origin_id": -10,
"origin_slot": 3,
"target_id": 3,
"target_slot": 6,
"type": "FLOAT"
},
{
"id": 155,
"origin_id": 78,
"origin_slot": 0,
"target_id": 83,
"target_slot": 0,
"type": "INT"
},
{
"id": 156,
"origin_id": 78,
"origin_slot": 1,
"target_id": 83,
"target_slot": 1,
"type": "INT"
},
{
"id": 157,
"origin_id": 83,
"origin_slot": 0,
"target_id": 3,
"target_slot": 3,
"type": "LATENT"
},
{
"id": 159,
"origin_id": -10,
"origin_slot": 4,
"target_id": 83,
"target_slot": 2,
"type": "INT"
}
],
"extra": {
"workflowRendererVersion": "LG"
},
"category": "Image generation and editing/Image to layers"
}
]
},
"config": {},
"extra": {
"ds": {
"scale": 1.14,
"offset": [
695.5933739308316,
6.855893974423647
]
},
"workflowRendererVersion": "LG"
},
"version": 0.4
}