Files
cubiq-ComfyUI_InstantID/instantID.json
T
2024-01-27 18:53:50 +01:00

674 lines
11 KiB
JSON

{
"last_node_id": 14,
"last_link_id": 25,
"nodes": [
{
"id": 8,
"type": "EmptyLatentImage",
"pos": [
716,
1012
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
11
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 9,
"type": "VAEDecode",
"pos": [
1544.937899902344,
359.6265532226564
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 12
},
{
"name": "vae",
"type": "VAE",
"link": 13
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
14
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 2,
"type": "InstantIDModelLoader",
"pos": [
333,
122
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "INSTANTID",
"type": "INSTANTID",
"links": [
18
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "InstantIDModelLoader"
},
"widgets_values": [
"ip-adapter.bin"
]
},
{
"id": 12,
"type": "InsightFaceLoaderIID",
"pos": [
321,
259
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "INSIGHTFACE",
"type": "INSIGHTFACE",
"links": [
17
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "InsightFaceLoaderIID"
},
"widgets_values": [
"CPU"
]
},
{
"id": 3,
"type": "CheckpointLoaderSimple",
"pos": [
175,
404
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
19
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
15,
16
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
13
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"sdxl/sd_xl_base_1.0_0.9vae.safetensors"
]
},
{
"id": 10,
"type": "PreviewImage",
"pos": [
1821.785899902344,
370.2745532226563
],
"size": [
710.068173339844,
756.3098067626954
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 14
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
628,
481
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 15
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
22
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"anime portrait of a beautiful girl"
]
},
{
"id": 4,
"type": "LoadImage",
"pos": [
129,
581
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
21
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"face4.jpg",
"image"
]
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
618,
743
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 16
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
10
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"blurry, lowres, malformed, horror"
]
},
{
"id": 5,
"type": "KSampler",
"pos": [
1129.6658999023439,
366.2815532226564
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 20
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 23,
"slot_index": 1
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 10
},
{
"name": "latent_image",
"type": "LATENT",
"link": 11,
"slot_index": 3
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
12
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
611076132277670,
"fixed",
20,
8,
"euler",
"normal",
1
]
},
{
"id": 11,
"type": "ApplyInstantID",
"pos": [
758.7900097656251,
238.68000427246096
],
"size": {
"0": 216.59999084472656,
"1": 86
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "instantid",
"type": "INSTANTID",
"link": 18
},
{
"name": "insightface",
"type": "INSIGHTFACE",
"link": 17
},
{
"name": "model",
"type": "MODEL",
"link": 19
},
{
"name": "image",
"type": "IMAGE",
"link": 21
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
20
],
"shape": 3,
"slot_index": 0
},
{
"name": "IMAGE_KPS",
"type": "IMAGE",
"links": [
24
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "ApplyInstantID"
}
},
{
"id": 14,
"type": "ControlNetLoader",
"pos": [
676,
9
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
25
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ControlNetLoader"
},
"widgets_values": [
"instantid/diffusion_pytorch_model.safetensors"
]
},
{
"id": 13,
"type": "ControlNetApply",
"pos": [
1085,
122
],
"size": {
"0": 317.4000244140625,
"1": 98
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 22
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 25,
"slot_index": 1
},
{
"name": "image",
"type": "IMAGE",
"link": 24
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
23
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ControlNetApply"
},
"widgets_values": [
0.3
]
}
],
"links": [
[
10,
7,
0,
5,
2,
"CONDITIONING"
],
[
11,
8,
0,
5,
3,
"LATENT"
],
[
12,
5,
0,
9,
0,
"LATENT"
],
[
13,
3,
2,
9,
1,
"VAE"
],
[
14,
9,
0,
10,
0,
"IMAGE"
],
[
15,
3,
1,
6,
0,
"CLIP"
],
[
16,
3,
1,
7,
0,
"CLIP"
],
[
17,
12,
0,
11,
1,
"INSIGHTFACE"
],
[
18,
2,
0,
11,
0,
"INSTANTID"
],
[
19,
3,
0,
11,
2,
"MODEL"
],
[
20,
11,
0,
5,
0,
"MODEL"
],
[
21,
4,
0,
11,
3,
"IMAGE"
],
[
22,
6,
0,
13,
0,
"CONDITIONING"
],
[
23,
13,
0,
5,
1,
"CONDITIONING"
],
[
24,
11,
1,
13,
2,
"IMAGE"
],
[
25,
14,
0,
13,
1,
"CONTROL_NET"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}