ComfyUI/blueprints/Text to Layers(Qwen-Image-Layered).json
2026-04-12 17:18:09 +08:00

1107 lines
28 KiB
JSON

{
"id": "8519ce65-d89c-4fe9-b820-8d9318a3cc5d",
"revision": 0,
"last_node_id": 115,
"last_link_id": 163,
"nodes": [
{
"id": 115,
"type": "1ea4fa01-a81b-4420-a03c-f60019e69a92",
"pos": [
90,
1530
],
"size": [
480,
660
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"label": "prompt",
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": null
},
{
"name": "layers",
"type": "INT",
"widget": {
"name": "layers"
},
"link": null
},
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": null
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": null
}
],
"outputs": [
{
"localized_name": "IMAGE",
"name": "IMAGE",
"type": "IMAGE",
"links": []
}
],
"title": "Text to Layers (Qwen-Image-Layered)",
"properties": {
"proxyWidgets": [
[
"-1",
"text"
],
[
"-1",
"layers"
],
[
"-1",
"width"
],
[
"-1",
"height"
],
[
"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": [
"",
2,
640,
640
]
}
],
"links": [],
"groups": [],
"definitions": {
"subgraphs": [
{
"id": "1ea4fa01-a81b-4420-a03c-f60019e69a92",
"version": 1,
"state": {
"lastGroupId": 3,
"lastNodeId": 115,
"lastLinkId": 163,
"lastRerouteId": 0
},
"revision": 0,
"config": {},
"name": "Text to Layers(Qwen-Image-Layered)",
"inputNode": {
"id": -10,
"bounding": [
-610,
629.6,
120,
120
]
},
"outputNode": {
"id": -20,
"bounding": [
1394,
629.6,
120,
60
]
},
"inputs": [
{
"id": "8497fe33-124d-4e3e-9ab6-fc4a56a98dde",
"name": "text",
"type": "STRING",
"linkIds": [
150
],
"label": "prompt",
"pos": [
-510,
649.6
]
},
{
"id": "66da7c8a-3369-4a3f-92f2-3073afc55e7d",
"name": "layers",
"type": "INT",
"linkIds": [
159
],
"pos": [
-510,
669.6
]
},
{
"id": "fb8e14af-31a7-4bd7-9599-ab96cbd61e3d",
"name": "width",
"type": "INT",
"linkIds": [
162
],
"pos": [
-510,
689.6
]
},
{
"id": "98801300-49b3-40d7-b140-0d59828337de",
"name": "height",
"type": "INT",
"linkIds": [
163
],
"pos": [
-510,
709.6
]
}
],
"outputs": [
{
"id": "7df75921-6729-4aad-bfc1-fcc536c2d298",
"name": "IMAGE",
"type": "IMAGE",
"linkIds": [
110
],
"localized_name": "IMAGE",
"pos": [
1414,
649.6
]
}
],
"widgets": [],
"nodes": [
{
"id": 38,
"type": "CLIPLoader",
"pos": [
-382.0000263661734,
373.9999310423158
],
"size": [
416.09375,
149.328125
],
"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": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "CLIPLoader",
"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": [
-382.0000263661734,
553.9999716056594
],
"size": [
416.09375,
82.65625
],
"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
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "VAELoader",
"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": [
86.00000811266875,
505.99994726765317
],
"size": [
510.328125,
216.71875
],
"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": [
161
]
}
],
"title": "CLIP Text Encode (Negative Prompt)",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "CLIPTextEncode",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
""
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 66,
"type": "ModelSamplingAuraFlow",
"pos": [
637.9999837746625,
181.9999350986501
],
"size": [
324,
80
],
"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": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "ModelSamplingAuraFlow",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
1
]
},
{
"id": 76,
"type": "LatentCutToBatch",
"pos": [
998.0000649013498,
193.99999188733136
],
"size": [
324,
114.65625
],
"flags": {},
"order": 8,
"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": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "LatentCutToBatch",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"t",
1
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1021.9999756619936,
373.9999310423158
],
"size": [
225,
8
],
"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": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "VAEDecode",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": []
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
86.00000811266875,
218.00000405633443
],
"size": [
507.40625,
197.171875
],
"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": [
160
]
}
],
"title": "CLIP Text Encode (Positive Prompt)",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "CLIPTextEncode",
"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": [
637.9999837746625,
337.9999634929907
],
"size": [
324,
480
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"localized_name": "model",
"name": "model",
"type": "MODEL",
"link": 125
},
{
"localized_name": "positive",
"name": "positive",
"type": "CONDITIONING",
"link": 160
},
{
"localized_name": "negative",
"name": "negative",
"type": "CONDITIONING",
"link": 161
},
{
"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": null
},
{
"localized_name": "cfg",
"name": "cfg",
"type": "FLOAT",
"widget": {
"name": "cfg"
},
"link": null
},
{
"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": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "KSampler",
"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": 37,
"type": "UNETLoader",
"pos": [
-382.0000263661734,
218.00000405633443
],
"size": [
416.09375,
117.328125
],
"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": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "UNETLoader",
"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"
]
},
{
"id": 83,
"type": "EmptyQwenImageLayeredLatentImage",
"pos": [
86.00000811266875,
817.9999533521548
],
"size": [
397.109375,
176
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"localized_name": "width",
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 162
},
{
"localized_name": "height",
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 163
},
{
"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": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "EmptyQwenImageLayeredLatentImage",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
640,
640,
2,
1
]
}
],
"groups": [
{
"id": 1,
"title": "Prompt(Optional)",
"bounding": [
74,
134,
540,
612
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "Load Models",
"bounding": [
-394,
134,
440.096484375,
505.92
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"links": [
{
"id": 75,
"origin_id": 38,
"origin_slot": 0,
"target_id": 7,
"target_slot": 0,
"type": "CLIP"
},
{
"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": 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": 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": 110,
"origin_id": 8,
"origin_slot": 0,
"target_id": -20,
"target_slot": 0,
"type": "IMAGE"
},
{
"id": 150,
"origin_id": -10,
"origin_slot": 0,
"target_id": 6,
"target_slot": 1,
"type": "STRING"
},
{
"id": 157,
"origin_id": 83,
"origin_slot": 0,
"target_id": 3,
"target_slot": 3,
"type": "LATENT"
},
{
"id": 159,
"origin_id": -10,
"origin_slot": 1,
"target_id": 83,
"target_slot": 2,
"type": "INT"
},
{
"id": 160,
"origin_id": 6,
"origin_slot": 0,
"target_id": 3,
"target_slot": 1,
"type": "CONDITIONING"
},
{
"id": 161,
"origin_id": 7,
"origin_slot": 0,
"target_id": 3,
"target_slot": 2,
"type": "CONDITIONING"
},
{
"id": 162,
"origin_id": -10,
"origin_slot": 2,
"target_id": 83,
"target_slot": 0,
"type": "INT"
},
{
"id": 163,
"origin_id": -10,
"origin_slot": 3,
"target_id": 83,
"target_slot": 1,
"type": "INT"
}
],
"extra": {
"ds": {
"scale": 1.20375,
"offset": [
447.75700934579436,
-1130
]
},
"workflowRendererVersion": "Vue"
},
"category": "Image generation and editing/Text to image"
}
]
},
"config": {},
"extra": {
"ds": {
"scale": 1.20375,
"offset": [
613.2781671858774,
-1130.3115264797507
]
},
"workflowRendererVersion": "Vue"
},
"version": 0.4
}