Files
cubiq-ComfyUI_InstantID/examples/InstantID_default.json
T
2024-02-10 12:39:25 +01:00

794 lines
13 KiB
JSON

{
"last_node_id": 59,
"last_link_id": 197,
"nodes": [
{
"id": 8,
"type": "VAEDecode",
"pos": [
2200,
410
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7
},
{
"name": "vae",
"type": "VAE",
"link": 8
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
19
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
1410,
610
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
2
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1016,
1016,
1
]
},
{
"id": 23,
"type": "ControlNetApplyAdvanced",
"pos": [
1410,
380
],
"size": {
"0": 315,
"1": 166
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 184
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 185
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 53
},
{
"name": "image",
"type": "IMAGE",
"link": 192
}
],
"outputs": [
{
"name": "positive",
"type": "CONDITIONING",
"links": [
95
],
"shape": 3,
"slot_index": 0
},
{
"name": "negative",
"type": "CONDITIONING",
"links": [
102
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "ControlNetApplyAdvanced"
},
"widgets_values": [
0.65,
0,
1
]
},
{
"id": 16,
"type": "ControlNetLoader",
"pos": [
1050,
540
],
"size": {
"0": 250.07241821289062,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
53
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ControlNetLoader"
},
"widgets_values": [
"instantid/diffusion_pytorch_model.safetensors"
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
80,
670
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
182
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
122,
123
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
8
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"sdxl/TurboVisionXL.safetensors"
]
},
{
"id": 58,
"type": "FaceKeypointsPreprocessor",
"pos": [
1060,
640
],
"size": {
"0": 229.20001220703125,
"1": 46
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "faceanalysis",
"type": "FACEANALYSIS",
"link": 193
},
{
"name": "image",
"type": "IMAGE",
"link": 197
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
192
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "FaceKeypointsPreprocessor"
}
},
{
"id": 11,
"type": "InstantIDModelLoader",
"pos": [
690,
90
],
"size": {
"0": 238.72393798828125,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "INSTANTID",
"type": "INSTANTID",
"links": [
189
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "InstantIDModelLoader"
},
"widgets_values": [
"ip-adapter.bin"
]
},
{
"id": 38,
"type": "InstantIDFaceAnalysis",
"pos": [
700,
200
],
"size": {
"0": 227.09793090820312,
"1": 58
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "FACEANALYSIS",
"type": "FACEANALYSIS",
"links": [
190,
193
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "InstantIDFaceAnalysis"
},
"widgets_values": [
"CPU"
]
},
{
"id": 40,
"type": "CLIPTextEncode",
"pos": [
560,
830
],
"size": {
"0": 286.3603515625,
"1": 112.35245513916016
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 123
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
187
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"low quality, blurry, malformed, distorted"
]
},
{
"id": 15,
"type": "PreviewImage",
"pos": [
2200,
510
],
"size": {
"0": 584.0855712890625,
"1": 610.4592895507812
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 19
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 13,
"type": "LoadImage",
"pos": [
410,
270
],
"size": {
"0": 210,
"1": 290
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
188,
197
],
"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": 57,
"type": "ApplyInstantID",
"pos": [
1040,
260
],
"size": [
260,
226
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "instantid",
"type": "INSTANTID",
"link": 189
},
{
"name": "insightface",
"type": "FACEANALYSIS",
"link": 190
},
{
"name": "image_features",
"type": "IMAGE",
"link": 188
},
{
"name": "model",
"type": "MODEL",
"link": 182
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 186
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 187
},
{
"name": "attn_mask",
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
196
],
"shape": 3,
"slot_index": 0
},
{
"name": "POSITIVE",
"type": "CONDITIONING",
"links": [
184
],
"shape": 3,
"slot_index": 1
},
{
"name": "NEGATIVE",
"type": "CONDITIONING",
"links": [
185
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "ApplyInstantID"
},
"widgets_values": [
0.8,
0,
1
]
},
{
"id": 39,
"type": "CLIPTextEncode",
"pos": [
560,
650
],
"size": {
"0": 291.9967346191406,
"1": 128.62518310546875
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 122
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
186
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"watercolors portrait of a woman (happy laughing:1.15), masterpiece, artistry"
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
1810,
290
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 196
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 95
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 102
},
{
"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": [
1631588094,
"fixed",
7,
2.6,
"ddpm",
"normal",
1
]
}
],
"links": [
[
2,
5,
0,
3,
3,
"LATENT"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
8,
4,
2,
8,
1,
"VAE"
],
[
19,
8,
0,
15,
0,
"IMAGE"
],
[
53,
16,
0,
23,
2,
"CONTROL_NET"
],
[
95,
23,
0,
3,
1,
"CONDITIONING"
],
[
102,
23,
1,
3,
2,
"CONDITIONING"
],
[
122,
4,
1,
39,
0,
"CLIP"
],
[
123,
4,
1,
40,
0,
"CLIP"
],
[
182,
4,
0,
57,
3,
"MODEL"
],
[
184,
57,
1,
23,
0,
"CONDITIONING"
],
[
185,
57,
2,
23,
1,
"CONDITIONING"
],
[
186,
39,
0,
57,
4,
"CONDITIONING"
],
[
187,
40,
0,
57,
5,
"CONDITIONING"
],
[
188,
13,
0,
57,
2,
"IMAGE"
],
[
189,
11,
0,
57,
0,
"INSTANTID"
],
[
190,
38,
0,
57,
1,
"FACEANALYSIS"
],
[
192,
58,
0,
23,
3,
"IMAGE"
],
[
193,
38,
0,
58,
0,
"FACEANALYSIS"
],
[
196,
57,
0,
3,
0,
"MODEL"
],
[
197,
13,
0,
58,
1,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}