Files
jiaxiangc-ComfyUI-ResAdapter/examples/resadapter_ipadapter_workflow.json

1247 lines
20 KiB
JSON

{
"last_node_id": 32,
"last_link_id": 56,
"nodes": [
{
"id": 8,
"type": "VAEDecode",
"pos": [
1029.5016555786124,
859.6486389160159
],
"size": {
"0": 140,
"1": 46
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7
},
{
"name": "vae",
"type": "VAE",
"link": 8
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
-10.498344421386886,
1009.6486389160159
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 3
},
{
"name": "text",
"type": "STRING",
"link": 30,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
4
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"A photo of a girl wearing a black dress, holding red roses in hand, upper body, behind is the Eiffel Tower"
]
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
-10.498344421386886,
1119.6486389160154
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5
},
{
"name": "text",
"type": "STRING",
"link": 31,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
6
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"monochrome, lowres, bad anatomy, worst quality, low quality"
]
},
{
"id": 18,
"type": "IPAdapterFaceID",
"pos": [
339.50165557861317,
859.6486389160159
],
"size": {
"0": 315,
"1": 322
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 25
},
{
"name": "ipadapter",
"type": "IPADAPTER",
"link": 26
},
{
"name": "image",
"type": "IMAGE",
"link": 27
},
{
"name": "image_negative",
"type": "IMAGE",
"link": null
},
{
"name": "attn_mask",
"type": "MASK",
"link": null
},
{
"name": "clip_vision",
"type": "CLIP_VISION",
"link": 29,
"slot_index": 5
},
{
"name": "insightface",
"type": "INSIGHTFACE",
"link": null
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
28
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "IPAdapterFaceID"
},
"widgets_values": [
1,
1,
"linear",
"concat",
0,
1,
"V only"
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
-10.498344421386886,
859.6486389160159
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
25
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
3,
5
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
8
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"v1-5-pruned-emaonly.safetensors"
]
},
{
"id": 29,
"type": "VAEDecode",
"pos": [
1195.6469219970697,
1849.2323541259768
],
"size": {
"0": 140,
"1": 46
},
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 37
},
{
"name": "vae",
"type": "VAE",
"link": 38
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
39
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1190,
860
],
"size": {
"0": 302.3518371582031,
"1": 312.9018859863281
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"properties": {},
"widgets_values": [
"IPAdapter"
]
},
{
"id": 16,
"type": "IPAdapterModelLoader",
"pos": [
260,
1520
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IPADAPTER",
"type": "IPADAPTER",
"links": [
26,
46
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "IPAdapterModelLoader"
},
"widgets_values": [
"ip-adapter-full-face_sd15.safetensors"
]
},
{
"id": 28,
"type": "CLIPTextEncode",
"pos": [
215.64692199707017,
1969.2323541259768
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 45
},
{
"name": "text",
"type": "STRING",
"link": 53,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
34
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"monochrome, lowres, bad anatomy, worst quality, low quality"
]
},
{
"id": 27,
"type": "CLIPTextEncode",
"pos": [
215.64692199707017,
1849.2323541259768
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 44
},
{
"name": "text",
"type": "STRING",
"link": 52,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
51
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"A photo of a girl wearing a black dress, holding red roses in hand, upper body, behind is the Eiffel Tower"
]
},
{
"id": 24,
"type": "Text box",
"pos": [
260,
1280
],
"size": {
"0": 398.2320556640625,
"1": 94.61453247070312
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
30,
52
],
"shape": 3,
"slot_index": 0
}
],
"title": "Positive prompt",
"properties": {
"Node name for S&R": "Text box"
},
"widgets_values": [
"A photo of a girl wearing a black dress, holding red roses in hand, upper body, behind is the Eiffel Tower"
]
},
{
"id": 23,
"type": "Text",
"pos": [
260,
1420
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
31,
53
],
"shape": 3,
"slot_index": 0
}
],
"title": "Negative prompt",
"properties": {
"Node name for S&R": "Text"
},
"widgets_values": [
"monochrome, lowres, bad anatomy, worst quality, low quality"
]
},
{
"id": 19,
"type": "CLIPVisionLoader",
"pos": [
260,
1630
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "CLIP_VISION",
"type": "CLIP_VISION",
"links": [
29,
54
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPVisionLoader"
},
"widgets_values": [
"ip-adapter-clip-sd15.safetensors"
]
},
{
"id": 12,
"type": "LoadImage",
"pos": [
670,
1429
],
"size": {
"0": 321.4133605957031,
"1": 314
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
27,
55
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"face1.png",
"image"
]
},
{
"id": 31,
"type": "IPAdapterFaceID",
"pos": [
505.6469219970705,
1849.2323541259768
],
"size": {
"0": 315,
"1": 322
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 42
},
{
"name": "ipadapter",
"type": "IPADAPTER",
"link": 46
},
{
"name": "image",
"type": "IMAGE",
"link": 55
},
{
"name": "image_negative",
"type": "IMAGE",
"link": null
},
{
"name": "attn_mask",
"type": "MASK",
"link": null
},
{
"name": "clip_vision",
"type": "CLIP_VISION",
"link": 54,
"slot_index": 5
},
{
"name": "insightface",
"type": "INSIGHTFACE",
"link": null
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
32
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "IPAdapterFaceID"
},
"widgets_values": [
1,
1,
"linear",
"concat",
0,
1,
"V only"
]
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
680,
1280
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
2,
56
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
768,
1024,
2
]
},
{
"id": 30,
"type": "SaveImage",
"pos": [
1355.6469219970697,
1849.2323541259768
],
"size": {
"0": 303.3929748535156,
"1": 314.2562561035156
},
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 39
}
],
"properties": {},
"widgets_values": [
"IPAdapter"
]
},
{
"id": 26,
"type": "CheckpointLoaderSimple",
"pos": [
-124.35307800292988,
1849.2323541259768
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 7,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
41
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
43
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
38
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"v1-5-pruned-emaonly.safetensors"
]
},
{
"id": 32,
"type": "ResAdapterLoader",
"pos": [
-124.35307800292988,
2019.2323541259768
],
"size": {
"0": 315,
"1": 126
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 41
},
{
"name": "clip",
"type": "CLIP",
"link": 43
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
42
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
44,
45
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "ResAdapterLoader"
},
"widgets_values": [
"resadapter_v2_sd1.5",
1,
1
]
},
{
"id": 25,
"type": "KSampler",
"pos": [
845.6469219970706,
1849.2323541259768
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 32
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 51
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 34
},
{
"name": "latent_image",
"type": "LATENT",
"link": 56
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
37
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
36,
"fixed",
25,
7.5,
"ddim",
"normal",
1
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
679.5016555786129,
859.6486389160159
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 28
},
{
"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": [
7
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
36,
"fixed",
25,
7.5,
"ddim",
"normal",
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"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
8,
4,
2,
8,
1,
"VAE"
],
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
25,
4,
0,
18,
0,
"MODEL"
],
[
26,
16,
0,
18,
1,
"IPADAPTER"
],
[
27,
12,
0,
18,
2,
"IMAGE"
],
[
28,
18,
0,
3,
0,
"MODEL"
],
[
29,
19,
0,
18,
5,
"CLIP_VISION"
],
[
30,
24,
0,
6,
1,
"STRING"
],
[
31,
23,
0,
7,
1,
"STRING"
],
[
32,
31,
0,
25,
0,
"MODEL"
],
[
34,
28,
0,
25,
2,
"CONDITIONING"
],
[
37,
25,
0,
29,
0,
"LATENT"
],
[
38,
26,
2,
29,
1,
"VAE"
],
[
39,
29,
0,
30,
0,
"IMAGE"
],
[
41,
26,
0,
32,
0,
"MODEL"
],
[
42,
32,
0,
31,
0,
"MODEL"
],
[
43,
26,
1,
32,
1,
"CLIP"
],
[
44,
32,
1,
27,
0,
"CLIP"
],
[
45,
32,
1,
28,
0,
"CLIP"
],
[
46,
16,
0,
31,
1,
"IPADAPTER"
],
[
51,
27,
0,
25,
1,
"CONDITIONING"
],
[
52,
24,
0,
27,
1,
"STRING"
],
[
53,
23,
0,
28,
1,
"STRING"
],
[
54,
19,
0,
31,
5,
"CLIP_VISION"
],
[
55,
12,
0,
31,
2,
"IMAGE"
],
[
56,
5,
0,
25,
3,
"LATENT"
]
],
"groups": [
{
"title": "Common node",
"bounding": [
250,
1205,
760,
552
],
"color": "#3f789e",
"font_size": 24
},
{
"title": "IPAdapter baseline",
"bounding": [
-30,
777,
1535,
409
],
"color": "#8A8",
"font_size": 24
},
{
"title": "IPAdapter resadapter",
"bounding": [
-144,
1774,
1815,
413
],
"color": "#a1309b",
"font_size": 24
}
],
"config": {},
"extra": {},
"version": 0.4
}