Files
alexisrolland-ComfyUI-Blender/example_workflows/SDXL ControlNet.json
T

1011 lines
18 KiB
JSON

{
"id": "e78d6f4a-35c7-4a49-838d-500789244757",
"revision": 0,
"last_node_id": 18,
"last_link_id": 26,
"nodes": [
{
"id": 3,
"type": "BlenderInputGroup",
"pos": [
370,
1370
],
"size": [
270,
106
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "group",
"type": "GROUP",
"links": [
1,
2
]
}
],
"title": "Resolution",
"properties": {
"cnr_id": "comfyui-blender",
"ver": "bff2443c331d37c7ee05b6c1ff43cd21644e7175",
"Node name for S&R": "BlenderInputGroup"
},
"widgets_values": [
4,
true,
true
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 4,
"type": "BlenderInputInt",
"pos": [
680,
1300
],
"size": [
210,
226
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "group",
"shape": 7,
"type": "GROUP",
"link": 1
}
],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
20
]
}
],
"title": "Width",
"properties": {
"cnr_id": "comfyui-blender",
"ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6",
"Node name for S&R": "BlenderInputInt"
},
"widgets_values": [
1024,
1,
1024,
768,
1344,
8,
true,
false
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 5,
"type": "BlenderInputInt",
"pos": [
680,
1590
],
"size": [
210,
226
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "group",
"shape": 7,
"type": "GROUP",
"link": 2
}
],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
21
]
}
],
"title": "Height",
"properties": {
"cnr_id": "comfyui-blender",
"ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6",
"Node name for S&R": "BlenderInputInt"
},
"widgets_values": [
1024,
2,
1024,
768,
1344,
8,
false,
true
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
940,
1020
],
"size": [
210.29940795898438,
88
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 23
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 3
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
10
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.42",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
940,
1180
],
"size": [
210.29940795898438,
88
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 24
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
11
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.42",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1820,
1020
],
"size": [
140,
46
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 4
},
{
"name": "vae",
"type": "VAE",
"link": 25
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
5
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.42",
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 9,
"type": "BlenderOutputSaveImage",
"pos": [
2000,
1020
],
"size": [
210,
270
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 5
}
],
"outputs": [],
"title": "Save Image",
"properties": {
"cnr_id": "comfyui-blender",
"ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6",
"Node name for S&R": "BlenderOutputSaveImage"
},
"widgets_values": [
"blender"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 10,
"type": "KSampler",
"pos": [
1510,
1020
],
"size": [
270,
262
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 22
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 6
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 7
},
{
"name": "latent_image",
"type": "LATENT",
"link": 8
},
{
"name": "seed",
"type": "INT",
"widget": {
"name": "seed"
},
"link": 9
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
4
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.42",
"Node name for S&R": "KSampler"
},
"widgets_values": [
0,
"fixed",
20,
8,
"dpmpp_2m",
"karras",
1
]
},
{
"id": 12,
"type": "ControlNetApplyAdvanced",
"pos": [
1200,
1020
],
"size": [
270,
186
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 10
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 11
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 12
},
{
"name": "image",
"type": "IMAGE",
"link": 13
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": 26
},
{
"name": "strength",
"type": "FLOAT",
"widget": {
"name": "strength"
},
"link": 14
}
],
"outputs": [
{
"name": "positive",
"type": "CONDITIONING",
"links": [
6
]
},
{
"name": "negative",
"type": "CONDITIONING",
"links": [
7
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.42",
"Node name for S&R": "ControlNetApplyAdvanced"
},
"widgets_values": [
1,
0,
1
]
},
{
"id": 14,
"type": "ControlNetLoader",
"pos": [
940,
880
],
"size": [
210,
58
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
12
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.42",
"Node name for S&R": "ControlNetLoader"
},
"widgets_values": [
"xinsir\\controlnet-union-sdxl-1.0-promax.safetensors"
]
},
{
"id": 16,
"type": "BlenderInputFloat",
"pos": [
940,
1750
],
"size": [
210,
154
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "group",
"shape": 7,
"type": "GROUP",
"link": null
}
],
"outputs": [
{
"name": "FLOAT",
"type": "FLOAT",
"links": [
14
]
}
],
"title": "ControlNet Strength",
"properties": {
"cnr_id": "comfyui-blender",
"ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6",
"Node name for S&R": "BlenderInputFloat"
},
"widgets_values": [
1.0000000000000002,
7,
1.0000000000000002,
0,
1.0000000000000002
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 18,
"type": "BlenderInputLoadCheckpoint",
"pos": [
610,
1020
],
"size": [
292.1470642089844,
146
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "group",
"shape": 7,
"type": "GROUP",
"link": null
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
22
]
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
23,
24
]
},
{
"name": "VAE",
"type": "VAE",
"links": [
25,
26
]
}
],
"title": "Model",
"properties": {
"cnr_id": "comfyui-blender",
"ver": "bff2443c331d37c7ee05b6c1ff43cd21644e7175",
"Node name for S&R": "BlenderInputLoadCheckpoint"
},
"widgets_values": [
"visitor01\\raymnants-v3.0.safetensors",
2,
"visitor01\\raymnants-v3.0.safetensors"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 15,
"type": "BlenderInputLoadImage",
"pos": [
940,
1330
],
"size": [
210,
350
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "group",
"shape": 7,
"type": "GROUP",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
13
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"title": "ControlNet Image",
"properties": {
"cnr_id": "comfyui-blender",
"ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6",
"Node name for S&R": "BlenderInputLoadImage"
},
"widgets_values": [
"blender_depth_map0001.png",
6,
"image"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 11,
"type": "EmptyLatentImage",
"pos": [
1210,
1270
],
"size": [
260,
146
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 20
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 21
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
8
]
},
{
"name": "width",
"type": "INT",
"links": null
},
{
"name": "height",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.42",
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
]
},
{
"id": 13,
"type": "BlenderInputSeed",
"pos": [
1210,
1470
],
"size": [
260,
180
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "group",
"shape": 7,
"type": "GROUP",
"link": null
}
],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
9
]
}
],
"title": "Seed",
"properties": {
"cnr_id": "comfyui-blender",
"ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6",
"Node name for S&R": "BlenderInputSeed"
},
"widgets_values": [
0,
1,
0,
1,
2147483647,
1
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 1,
"type": "BlenderInputStringMultiline",
"pos": [
610,
720
],
"size": [
290,
230
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "group",
"shape": 7,
"type": "GROUP",
"link": null
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
3
]
}
],
"title": "Prompt",
"properties": {
"cnr_id": "comfyui-blender",
"ver": "41e36147b41b6ef2d321220c3815ca99a9681ad6",
"Node name for S&R": "BlenderInputStringMultiline"
},
"widgets_values": [
"Photograph of an ancient treasure chest on a black background. The chest is made of rich, vintage antique wood sculpted with floral patterns, with brass and iron fittings. The brass lock and hinges are tarnished with age, adding to its mysterious and timeless appeal. The lighting is dramatic, with soft shadows accentuating the texture of the wood and metal, creating a sense of depth and intrigue. Ultra HD, 4K, cinematic composition.",
3,
"",
false
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 17,
"type": "MarkdownNote",
"pos": [
220,
940
],
"size": [
340,
300
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"# ComfyUI-Blender\n\nThis is an example of workflow to showcase how to use the Blender input and output custom nodes. The custom nodes will be interpreted by the Blender add-on to display the corresponding properties in the add-on panel.\n\n(1) Add input or output nodes: right click > Add Node > blender > ...\n\n(2) Run the workflow to confirm it executes properly\n\n(3) Export the workflow: Top Left Menu > File > Export (API)\n\n(4) In the Blender add-on, clik on Import Workflow to import the workflow JSON file in API format\n\nMore info on: [https://github.com/alexisrolland/ComfyUI-Blender](https://github.com/alexisrolland/ComfyUI-Blender)"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
1,
3,
0,
4,
0,
"GROUP"
],
[
2,
3,
0,
5,
0,
"GROUP"
],
[
3,
1,
0,
6,
1,
"STRING"
],
[
4,
10,
0,
8,
0,
"LATENT"
],
[
5,
8,
0,
9,
0,
"IMAGE"
],
[
6,
12,
0,
10,
1,
"CONDITIONING"
],
[
7,
12,
1,
10,
2,
"CONDITIONING"
],
[
8,
11,
0,
10,
3,
"LATENT"
],
[
9,
13,
0,
10,
4,
"INT"
],
[
10,
6,
0,
12,
0,
"CONDITIONING"
],
[
11,
7,
0,
12,
1,
"CONDITIONING"
],
[
12,
14,
0,
12,
2,
"CONTROL_NET"
],
[
13,
15,
0,
12,
3,
"IMAGE"
],
[
14,
16,
0,
12,
5,
"FLOAT"
],
[
20,
4,
0,
11,
0,
"INT"
],
[
21,
5,
0,
11,
1,
"INT"
],
[
22,
18,
0,
10,
0,
"MODEL"
],
[
23,
18,
1,
6,
0,
"CLIP"
],
[
24,
18,
1,
7,
0,
"CLIP"
],
[
25,
18,
2,
8,
1,
"VAE"
],
[
26,
18,
2,
12,
4,
"VAE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.6830134553650705,
"offset": [
-120,
-620
]
},
"frontendVersion": "1.26.13",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}