Spaces:
Building
on
A10G
Building
on
A10G
LayerDiffuse-gradio-unofficial
/
ComfyUI
/custom_nodes
/layerdiffuse
/examples
/layer_diffusion_fg_example.json
{ | |
"last_node_id": 29, | |
"last_link_id": 40, | |
"nodes": [ | |
{ | |
"id": 7, | |
"type": "CLIPTextEncode", | |
"pos": [ | |
413, | |
389 | |
], | |
"size": { | |
"0": 425.27801513671875, | |
"1": 180.6060791015625 | |
}, | |
"flags": {}, | |
"order": 4, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "clip", | |
"type": "CLIP", | |
"link": 5 | |
} | |
], | |
"outputs": [ | |
{ | |
"name": "CONDITIONING", | |
"type": "CONDITIONING", | |
"links": [ | |
6 | |
], | |
"slot_index": 0 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "CLIPTextEncode" | |
}, | |
"widgets_values": [ | |
"text, watermark" | |
] | |
}, | |
{ | |
"id": 6, | |
"type": "CLIPTextEncode", | |
"pos": [ | |
415, | |
186 | |
], | |
"size": { | |
"0": 422.84503173828125, | |
"1": 164.31304931640625 | |
}, | |
"flags": {}, | |
"order": 3, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "clip", | |
"type": "CLIP", | |
"link": 3 | |
} | |
], | |
"outputs": [ | |
{ | |
"name": "CONDITIONING", | |
"type": "CONDITIONING", | |
"links": [ | |
4 | |
], | |
"slot_index": 0 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "CLIPTextEncode" | |
}, | |
"widgets_values": [ | |
"beautiful scenery nature glass bottle landscape, , purple galaxy bottle," | |
] | |
}, | |
{ | |
"id": 4, | |
"type": "CheckpointLoaderSimple", | |
"pos": [ | |
5, | |
479 | |
], | |
"size": { | |
"0": 315, | |
"1": 98 | |
}, | |
"flags": {}, | |
"order": 0, | |
"mode": 0, | |
"outputs": [ | |
{ | |
"name": "MODEL", | |
"type": "MODEL", | |
"links": [ | |
18 | |
], | |
"slot_index": 0 | |
}, | |
{ | |
"name": "CLIP", | |
"type": "CLIP", | |
"links": [ | |
3, | |
5 | |
], | |
"slot_index": 1 | |
}, | |
{ | |
"name": "VAE", | |
"type": "VAE", | |
"links": [ | |
22 | |
], | |
"slot_index": 2 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "CheckpointLoaderSimple" | |
}, | |
"widgets_values": [ | |
"juggernautXL_v8Rundiffusion.safetensors" | |
] | |
}, | |
{ | |
"id": 14, | |
"type": "VAEDecode", | |
"pos": [ | |
1275, | |
198 | |
], | |
"size": { | |
"0": 210, | |
"1": 46 | |
}, | |
"flags": {}, | |
"order": 6, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "samples", | |
"type": "LATENT", | |
"link": 21 | |
}, | |
{ | |
"name": "vae", | |
"type": "VAE", | |
"link": 22, | |
"slot_index": 1 | |
} | |
], | |
"outputs": [ | |
{ | |
"name": "IMAGE", | |
"type": "IMAGE", | |
"links": [ | |
24, | |
29 | |
], | |
"shape": 3, | |
"slot_index": 0 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "VAEDecode" | |
} | |
}, | |
{ | |
"id": 20, | |
"type": "PreviewImage", | |
"pos": [ | |
1547, | |
472 | |
], | |
"size": { | |
"0": 289.6058349609375, | |
"1": 299.6588134765625 | |
}, | |
"flags": {}, | |
"order": 8, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "images", | |
"type": "IMAGE", | |
"link": 29 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "PreviewImage" | |
} | |
}, | |
{ | |
"id": 5, | |
"type": "EmptyLatentImage", | |
"pos": [ | |
475, | |
707 | |
], | |
"size": { | |
"0": 315, | |
"1": 106 | |
}, | |
"flags": {}, | |
"order": 1, | |
"mode": 0, | |
"outputs": [ | |
{ | |
"name": "LATENT", | |
"type": "LATENT", | |
"links": [ | |
2 | |
], | |
"slot_index": 0 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "EmptyLatentImage" | |
}, | |
"widgets_values": [ | |
1024, | |
1024, | |
1 | |
] | |
}, | |
{ | |
"id": 3, | |
"type": "KSampler", | |
"pos": [ | |
911, | |
198 | |
], | |
"size": { | |
"0": 315, | |
"1": 262 | |
}, | |
"flags": {}, | |
"order": 5, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "model", | |
"type": "MODEL", | |
"link": 19 | |
}, | |
{ | |
"name": "positive", | |
"type": "CONDITIONING", | |
"link": 4 | |
}, | |
{ | |
"name": "negative", | |
"type": "CONDITIONING", | |
"link": 6 | |
}, | |
{ | |
"name": "latent_image", | |
"type": "LATENT", | |
"link": 2 | |
} | |
], | |
"outputs": [ | |
{ | |
"name": "LATENT", | |
"type": "LATENT", | |
"links": [ | |
21, | |
23 | |
], | |
"slot_index": 0 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "KSampler" | |
}, | |
"widgets_values": [ | |
984560333937969, | |
"randomize", | |
20, | |
8, | |
"euler", | |
"normal", | |
1 | |
] | |
}, | |
{ | |
"id": 25, | |
"type": "PreviewImage", | |
"pos": [ | |
2244, | |
194 | |
], | |
"size": { | |
"0": 289.6058349609375, | |
"1": 299.6588134765625 | |
}, | |
"flags": {}, | |
"order": 12, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "images", | |
"type": "IMAGE", | |
"link": 33 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "PreviewImage" | |
} | |
}, | |
{ | |
"id": 24, | |
"type": "MaskToImage", | |
"pos": [ | |
1921, | |
192 | |
], | |
"size": { | |
"0": 210, | |
"1": 26 | |
}, | |
"flags": {}, | |
"order": 10, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "mask", | |
"type": "MASK", | |
"link": 32 | |
} | |
], | |
"outputs": [ | |
{ | |
"name": "IMAGE", | |
"type": "IMAGE", | |
"links": [ | |
33 | |
], | |
"shape": 3, | |
"slot_index": 0 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "MaskToImage" | |
} | |
}, | |
{ | |
"id": 23, | |
"type": "PreviewImage", | |
"pos": [ | |
1965, | |
479 | |
], | |
"size": { | |
"0": 289.6058349609375, | |
"1": 299.6588134765625 | |
}, | |
"flags": {}, | |
"order": 9, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "images", | |
"type": "IMAGE", | |
"link": 31 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "PreviewImage" | |
} | |
}, | |
{ | |
"id": 27, | |
"type": "PreviewImage", | |
"pos": [ | |
2243, | |
-164 | |
], | |
"size": { | |
"0": 289.6058349609375, | |
"1": 299.6588134765625 | |
}, | |
"flags": {}, | |
"order": 14, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "images", | |
"type": "IMAGE", | |
"link": 40 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "PreviewImage" | |
} | |
}, | |
{ | |
"id": 15, | |
"type": "LayeredDiffusionDecode", | |
"pos": [ | |
1586, | |
195 | |
], | |
"size": { | |
"0": 210, | |
"1": 102 | |
}, | |
"flags": {}, | |
"order": 7, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "samples", | |
"type": "LATENT", | |
"link": 23 | |
}, | |
{ | |
"name": "images", | |
"type": "IMAGE", | |
"link": 24 | |
} | |
], | |
"outputs": [ | |
{ | |
"name": "IMAGE", | |
"type": "IMAGE", | |
"links": [ | |
31, | |
37 | |
], | |
"shape": 3, | |
"slot_index": 0 | |
}, | |
{ | |
"name": "MASK", | |
"type": "MASK", | |
"links": [ | |
32, | |
38 | |
], | |
"shape": 3, | |
"slot_index": 1 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "LayeredDiffusionDecode" | |
}, | |
"widgets_values": [ | |
"SDXL", | |
16 | |
] | |
}, | |
{ | |
"id": 28, | |
"type": "JoinImageWithAlpha", | |
"pos": [ | |
1928, | |
-59 | |
], | |
"size": { | |
"0": 210, | |
"1": 46 | |
}, | |
"flags": {}, | |
"order": 13, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "image", | |
"type": "IMAGE", | |
"link": 37 | |
}, | |
{ | |
"name": "alpha", | |
"type": "MASK", | |
"link": 39 | |
} | |
], | |
"outputs": [ | |
{ | |
"name": "IMAGE", | |
"type": "IMAGE", | |
"links": [ | |
40 | |
], | |
"shape": 3, | |
"slot_index": 0 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "JoinImageWithAlpha" | |
} | |
}, | |
{ | |
"id": 29, | |
"type": "InvertMask", | |
"pos": [ | |
1931, | |
44 | |
], | |
"size": { | |
"0": 210, | |
"1": 26 | |
}, | |
"flags": {}, | |
"order": 11, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "mask", | |
"type": "MASK", | |
"link": 38 | |
} | |
], | |
"outputs": [ | |
{ | |
"name": "MASK", | |
"type": "MASK", | |
"links": [ | |
39 | |
], | |
"shape": 3, | |
"slot_index": 0 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "InvertMask" | |
} | |
}, | |
{ | |
"id": 13, | |
"type": "LayeredDiffusionApply", | |
"pos": [ | |
468, | |
-2 | |
], | |
"size": { | |
"0": 327.8314208984375, | |
"1": 106.42147827148438 | |
}, | |
"flags": {}, | |
"order": 2, | |
"mode": 0, | |
"inputs": [ | |
{ | |
"name": "model", | |
"type": "MODEL", | |
"link": 18 | |
} | |
], | |
"outputs": [ | |
{ | |
"name": "MODEL", | |
"type": "MODEL", | |
"links": [ | |
19 | |
], | |
"shape": 3, | |
"slot_index": 0 | |
} | |
], | |
"properties": { | |
"Node name for S&R": "LayeredDiffusionApply" | |
}, | |
"widgets_values": [ | |
"SDXL, Conv Injection", | |
1 | |
] | |
} | |
], | |
"links": [ | |
[ | |
2, | |
5, | |
0, | |
3, | |
3, | |
"LATENT" | |
], | |
[ | |
3, | |
4, | |
1, | |
6, | |
0, | |
"CLIP" | |
], | |
[ | |
4, | |
6, | |
0, | |
3, | |
1, | |
"CONDITIONING" | |
], | |
[ | |
5, | |
4, | |
1, | |
7, | |
0, | |
"CLIP" | |
], | |
[ | |
6, | |
7, | |
0, | |
3, | |
2, | |
"CONDITIONING" | |
], | |
[ | |
18, | |
4, | |
0, | |
13, | |
0, | |
"MODEL" | |
], | |
[ | |
19, | |
13, | |
0, | |
3, | |
0, | |
"MODEL" | |
], | |
[ | |
21, | |
3, | |
0, | |
14, | |
0, | |
"LATENT" | |
], | |
[ | |
22, | |
4, | |
2, | |
14, | |
1, | |
"VAE" | |
], | |
[ | |
23, | |
3, | |
0, | |
15, | |
0, | |
"LATENT" | |
], | |
[ | |
24, | |
14, | |
0, | |
15, | |
1, | |
"IMAGE" | |
], | |
[ | |
29, | |
14, | |
0, | |
20, | |
0, | |
"IMAGE" | |
], | |
[ | |
31, | |
15, | |
0, | |
23, | |
0, | |
"IMAGE" | |
], | |
[ | |
32, | |
15, | |
1, | |
24, | |
0, | |
"MASK" | |
], | |
[ | |
33, | |
24, | |
0, | |
25, | |
0, | |
"IMAGE" | |
], | |
[ | |
37, | |
15, | |
0, | |
28, | |
0, | |
"IMAGE" | |
], | |
[ | |
38, | |
15, | |
1, | |
29, | |
0, | |
"MASK" | |
], | |
[ | |
39, | |
29, | |
0, | |
28, | |
1, | |
"MASK" | |
], | |
[ | |
40, | |
28, | |
0, | |
27, | |
0, | |
"IMAGE" | |
] | |
], | |
"groups": [], | |
"config": {}, | |
"extra": {}, | |
"version": 0.4 | |
} |