Files
jiaxiangc-ComfyUI-ResAdapter/examples/resadapter_controlnet_workflow.json
2024-04-06 16:48:55 +08:00

1450 lines
23 KiB
JSON

{
"last_node_id": 45,
"last_link_id": 68,
"nodes": [
{
"id": 11,
"type": "LoadImage",
"pos": [
41.49189249461625,
1010.0564752908043
],
"size": {
"0": 305.7703857421875,
"1": 348.34417724609375
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
32
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"bird.png",
"image"
]
},
{
"id": 30,
"type": "Get image size",
"pos": [
396.4918924946163,
1126.056475290803
],
"size": {
"0": 210,
"1": 66
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 39
}
],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "INT",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "TUPLE",
"type": "TUPLE",
"links": [
40
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "Get image size"
}
},
{
"id": 31,
"type": "Tuple debug print",
"pos": [
398.4918924946163,
1246.056475290803
],
"size": {
"0": 210,
"1": 58.04475784301758
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "Values",
"type": "TUPLE",
"link": 40
}
],
"properties": {
"Node name for S&R": "Tuple debug print"
},
"widgets_values": [
"Scale size:"
]
},
{
"id": 35,
"type": "PreviewImage",
"pos": [
742.491892494616,
1129.056475290803
],
"size": {
"0": 210,
"1": 246
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 41
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
996.3329867919923,
473.28459179077134
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7
},
{
"name": "vae",
"type": "VAE",
"link": 22
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 19,
"type": "VAEEncode",
"pos": [
436.33298679199214,
473.28459179077134
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 33
},
{
"name": "vae",
"type": "VAE",
"link": 27
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
36
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1236.332986791992,
473.28459179077134
],
"size": {
"0": 275.07098388671875,
"1": 293.77374267578125
},
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 14,
"type": "CheckpointLoaderSimple",
"pos": [
-233.6670132080078,
473.28459179077134
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
19
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
45,
46
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
22,
27
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"v1-5-pruned-emaonly.safetensors"
]
},
{
"id": 38,
"type": "VAEDecode",
"pos": [
996.6653632849228,
1495.6251350257537
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 52
},
{
"name": "vae",
"type": "VAE",
"link": 53
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
54
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 39,
"type": "SaveImage",
"pos": [
1236.6653632849225,
1495.6251350257537
],
"size": {
"0": 275.07098388671875,
"1": 293.77374267578125
},
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 54
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 41,
"type": "CheckpointLoaderSimple",
"pos": [
-233.33463671507712,
1495.6251350257537
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
59
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
60
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
53,
56
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"v1-5-pruned-emaonly.safetensors"
]
},
{
"id": 44,
"type": "CLIPTextEncode",
"pos": [
425.9389464925509,
1702.9120134070993
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 63
},
{
"name": "text",
"type": "STRING",
"link": 68,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
50
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 34,
"type": "CLIPTextEncode",
"pos": [
432,
602
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 45
},
{
"name": "text",
"type": "STRING",
"link": 42,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
43
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 36,
"type": "CLIPTextEncode",
"pos": [
430,
700
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 46
},
{
"name": "text",
"type": "STRING",
"link": 44,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
47
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 12,
"type": "ControlNetLoader",
"pos": [
708.491892494616,
908.0564752908045
],
"size": {
"0": 422,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
13,
64
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ControlNetLoader"
},
"widgets_values": [
"control_v11p_sd15_canny.safetensors"
]
},
{
"id": 43,
"type": "CLIPTextEncode",
"pos": [
426,
1607
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 62
},
{
"name": "text",
"type": "STRING",
"link": 67,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
55
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 42,
"type": "VAEEncode",
"pos": [
437,
1496
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 66
},
{
"name": "vae",
"type": "VAE",
"link": 56
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
51
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 32,
"type": "Text",
"pos": [
34,
905
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
42,
67
],
"shape": 3,
"slot_index": 0
}
],
"title": "Positive prompt",
"properties": {
"Node name for S&R": "Text"
},
"widgets_values": [
"A bird"
]
},
{
"id": 33,
"type": "Text",
"pos": [
373.4918924946163,
903.0564752908045
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
44,
68
],
"shape": 3,
"slot_index": 0
}
],
"title": "Negative prompt",
"properties": {
"Node name for S&R": "Text"
},
"widgets_values": [
"lowres, bad anatomy, worst quality, low quality"
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
656.3329867919923,
473.28459179077134
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 19
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 18
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 47
},
{
"name": "latent_image",
"type": "LATENT",
"link": 36
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
7
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
110,
"fixed",
25,
7.5,
"uni_pc",
"normal",
0.8
]
},
{
"id": 37,
"type": "KSampler",
"pos": [
656.6653632849227,
1495.6251350257537
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 61
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 49
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 50
},
{
"name": "latent_image",
"type": "LATENT",
"link": 51
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
52
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
110,
"fixed",
25,
7.5,
"uni_pc",
"normal",
0.8
]
},
{
"id": 10,
"type": "ControlNetApply",
"pos": [
96,
473
],
"size": {
"0": 317.4000244140625,
"1": 98
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 43
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 13
},
{
"name": "image",
"type": "IMAGE",
"link": 24
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
18
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ControlNetApply"
},
"widgets_values": [
0.9
]
},
{
"id": 40,
"type": "ControlNetApply",
"pos": [
97,
1496
],
"size": {
"0": 317.4000244140625,
"1": 98
},
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 55
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 64
},
{
"name": "image",
"type": "IMAGE",
"link": 65
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
49
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ControlNetApply"
},
"widgets_values": [
0.9
]
},
{
"id": 45,
"type": "ResAdapterLoader",
"pos": [
104,
1642
],
"size": {
"0": 306.6376037597656,
"1": 126
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 59
},
{
"name": "clip",
"type": "CLIP",
"link": 60
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
61
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
62,
63
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "ResAdapterLoader"
},
"widgets_values": [
"resadapter_v1_sd1.5",
1,
1
]
},
{
"id": 23,
"type": "ImageScaleBy",
"pos": [
376,
1005
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 32
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
33,
38,
39,
66
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScaleBy"
},
"widgets_values": [
"lanczos",
1.5
]
},
{
"id": 15,
"type": "Canny",
"pos": [
722,
1004
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 38
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
24,
41,
65
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Canny"
},
"widgets_values": [
0.1,
0.3
]
}
],
"links": [
[
7,
3,
0,
8,
0,
"LATENT"
],
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
13,
12,
0,
10,
1,
"CONTROL_NET"
],
[
18,
10,
0,
3,
1,
"CONDITIONING"
],
[
19,
14,
0,
3,
0,
"MODEL"
],
[
22,
14,
2,
8,
1,
"VAE"
],
[
24,
15,
0,
10,
2,
"IMAGE"
],
[
27,
14,
2,
19,
1,
"VAE"
],
[
32,
11,
0,
23,
0,
"IMAGE"
],
[
33,
23,
0,
19,
0,
"IMAGE"
],
[
36,
19,
0,
3,
3,
"LATENT"
],
[
38,
23,
0,
15,
0,
"IMAGE"
],
[
39,
23,
0,
30,
0,
"IMAGE"
],
[
40,
30,
2,
31,
0,
"TUPLE"
],
[
41,
15,
0,
35,
0,
"IMAGE"
],
[
42,
32,
0,
34,
1,
"STRING"
],
[
43,
34,
0,
10,
0,
"CONDITIONING"
],
[
44,
33,
0,
36,
1,
"STRING"
],
[
45,
14,
1,
34,
0,
"CLIP"
],
[
46,
14,
1,
36,
0,
"CLIP"
],
[
47,
36,
0,
3,
2,
"CONDITIONING"
],
[
49,
40,
0,
37,
1,
"CONDITIONING"
],
[
50,
44,
0,
37,
2,
"CONDITIONING"
],
[
51,
42,
0,
37,
3,
"LATENT"
],
[
52,
37,
0,
38,
0,
"LATENT"
],
[
53,
41,
2,
38,
1,
"VAE"
],
[
54,
38,
0,
39,
0,
"IMAGE"
],
[
55,
43,
0,
40,
0,
"CONDITIONING"
],
[
56,
41,
2,
42,
1,
"VAE"
],
[
59,
41,
0,
45,
0,
"MODEL"
],
[
60,
41,
1,
45,
1,
"CLIP"
],
[
61,
45,
0,
37,
0,
"MODEL"
],
[
62,
45,
1,
43,
0,
"CLIP"
],
[
63,
45,
1,
44,
0,
"CLIP"
],
[
64,
12,
0,
40,
1,
"CONTROL_NET"
],
[
65,
15,
0,
40,
2,
"IMAGE"
],
[
66,
23,
0,
42,
0,
"IMAGE"
],
[
67,
32,
0,
43,
1,
"STRING"
],
[
68,
33,
0,
44,
1,
"STRING"
]
],
"groups": [
{
"title": "Common node",
"bounding": [
14,
829,
1129,
559
],
"color": "#3f789e",
"font_size": 24
},
{
"title": "ControlNet baseline",
"bounding": [
-253,
395,
1770,
419
],
"color": "#8A8",
"font_size": 24
},
{
"title": "ControlNet resadapter",
"bounding": [
-241,
1416,
1776,
421
],
"color": "#a1309b",
"font_size": 24
}
],
"config": {},
"extra": {},
"version": 0.4
}