From 40b86b449774424893deac1d19139abc25c02882 Mon Sep 17 00:00:00 2001 From: matt3o Date: Thu, 15 Feb 2024 12:04:47 +0100 Subject: [PATCH] update multi-id workflow and add depth workflow --- InstantID.py | 1 + examples/InstantID_depth.json | 1287 ++++++++++++++++++ examples/InstantID_multi_id.json | 2118 ++++++++++++++++++------------ 3 files changed, 2583 insertions(+), 823 deletions(-) create mode 100644 examples/InstantID_depth.json diff --git a/InstantID.py b/InstantID.py index 7209aa8..93a7db9 100644 --- a/InstantID.py +++ b/InstantID.py @@ -51,6 +51,7 @@ def draw_kps(image_pil, kps, color_list=[(255,0,0), (0,255,0), (0,0,255), (255,2 out_img_pil = PIL.Image.fromarray(out_img.astype(np.uint8)) return out_img_pil +# All this mess to keep compatibility with IPAdapter, it will be helpful in case we want AnimateDiff to work with InstantID class CrossAttentionPatch: # forward for patching def __init__(self, weight, ipadapter, number, cond, uncond, weight_type="original", mask=None, sigma_start=0.0, sigma_end=1.0, unfold_batch=False): diff --git a/examples/InstantID_depth.json b/examples/InstantID_depth.json new file mode 100644 index 0000000..2d9da73 --- /dev/null +++ b/examples/InstantID_depth.json @@ -0,0 +1,1287 @@ +{ + "last_node_id": 69, + "last_link_id": 217, + "nodes": [ + { + "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": 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": [ + 211 + ], + "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": 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": 13, + "type": "LoadImage", + "pos": [ + 410, + 270 + ], + "size": { + "0": 210, + "1": 314 + }, + "flags": {}, + "order": 5, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 188 + ], + "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": 15, + "type": "PreviewImage", + "pos": [ + 2620, + 540 + ], + "size": { + "0": 584.0855712890625, + "1": 610.4592895507812 + }, + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 19 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 2620, + 440 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 22, + "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": 23, + "type": "ControlNetApplyAdvanced", + "pos": [ + 1410, + 380 + ], + "size": { + "0": 315, + "1": 166 + }, + "flags": {}, + "order": 19, + "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": [ + 202 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "negative", + "type": "CONDITIONING", + "links": [ + 201 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "ControlNetApplyAdvanced" + }, + "widgets_values": [ + 0.65, + 0, + 1 + ] + }, + { + "id": 63, + "type": "ControlNetLoader", + "pos": [ + 1799, + 639 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 6, + "mode": 0, + "outputs": [ + { + "name": "CONTROL_NET", + "type": "CONTROL_NET", + "links": [ + 200 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ControlNetLoader" + }, + "widgets_values": [ + "control-lora/control-lora-depth-rank256.safetensors" + ] + }, + { + "id": 58, + "type": "FaceKeypointsPreprocessor", + "pos": [ + 1060, + 640 + ], + "size": { + "0": 229.20001220703125, + "1": 46 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "faceanalysis", + "type": "FACEANALYSIS", + "link": 193 + }, + { + "name": "image", + "type": "IMAGE", + "link": 191 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 192, + 205 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "FaceKeypointsPreprocessor" + } + }, + { + "id": 60, + "type": "Zoe-DepthMapPreprocessor", + "pos": [ + 1417, + 776 + ], + "size": { + "0": 210, + "1": 58 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 197 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 198, + 199 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Zoe-DepthMapPreprocessor" + }, + "widgets_values": [ + 512 + ] + }, + { + "id": 64, + "type": "PreviewImage", + "pos": [ + 1420, + 892 + ], + "size": { + "0": 210, + "1": 246 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 205 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 40, + "type": "CLIPTextEncode", + "pos": [ + 560, + 830 + ], + "size": { + "0": 286.3603515625, + "1": 112.35245513916016 + }, + "flags": {}, + "order": 11, + "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, text, author, watermark" + ] + }, + { + "id": 61, + "type": "PreviewImage", + "pos": [ + 1713, + 808 + ], + "size": { + "0": 210, + "1": 246 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 198 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 42, + "type": "LoadImage", + "pos": [ + 1060, + 750 + ], + "size": { + "0": 220.82643127441406, + "1": 327.5079345703125 + }, + "flags": {}, + "order": 7, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 191, + 197, + 209 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "666561.jpg", + "image" + ] + }, + { + "id": 66, + "type": "IPAdapterModelLoader", + "pos": [ + 977, + -185 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 8, + "mode": 0, + "outputs": [ + { + "name": "IPADAPTER", + "type": "IPADAPTER", + "links": [ + 206 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "IPAdapterModelLoader" + }, + "widgets_values": [ + "ip-adapter-plus_sdxl_vit-h.safetensors" + ] + }, + { + "id": 67, + "type": "CLIPVisionLoader", + "pos": [ + 976, + -61 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 9, + "mode": 0, + "outputs": [ + { + "name": "CLIP_VISION", + "type": "CLIP_VISION", + "links": [ + 207 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CLIPVisionLoader" + }, + "widgets_values": [ + "IPAdapter_image_encoder_sd15.safetensors" + ] + }, + { + "id": 68, + "type": "PrepImageForClipVision", + "pos": [ + 1066, + 54 + ], + "size": { + "0": 243.60000610351562, + "1": 106 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 209 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 210 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PrepImageForClipVision" + }, + "widgets_values": [ + "LANCZOS", + "top", + 0.1 + ] + }, + { + "id": 39, + "type": "CLIPTextEncode", + "pos": [ + 560, + 650 + ], + "size": { + "0": 291.9967346191406, + "1": 128.62518310546875 + }, + "flags": {}, + "order": 10, + "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": [ + "scifi girl from Tron, futuristic, cyberpunk, neon lights\n\nhigh quality, cinematic, dramatic lighting, 4k" + ] + }, + { + "id": 57, + "type": "ApplyInstantID", + "pos": [ + 1040, + 260 + ], + "size": { + "0": 260, + "1": 226 + }, + "flags": {}, + "order": 18, + "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": 213 + }, + { + "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": [ + 217 + ], + "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": [ + 1, + 0, + 1 + ] + }, + { + "id": 65, + "type": "IPAdapterApply", + "pos": [ + 1356.7205803222635, + -20.95590625000102 + ], + "size": { + "0": 210, + "1": 258 + }, + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "ipadapter", + "type": "IPADAPTER", + "link": 206, + "slot_index": 0 + }, + { + "name": "clip_vision", + "type": "CLIP_VISION", + "link": 207, + "slot_index": 1 + }, + { + "name": "image", + "type": "IMAGE", + "link": 210 + }, + { + "name": "model", + "type": "MODEL", + "link": 211 + }, + { + "name": "attn_mask", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 213 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IPAdapterApply" + }, + "widgets_values": [ + 0.5, + 0, + "original", + 0, + 1, + false + ] + }, + { + "id": 62, + "type": "ControlNetApplyAdvanced", + "pos": [ + 1802, + 414 + ], + "size": { + "0": 315, + "1": 166 + }, + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "link": 202 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 201 + }, + { + "name": "control_net", + "type": "CONTROL_NET", + "link": 200, + "slot_index": 2 + }, + { + "name": "image", + "type": "IMAGE", + "link": 199 + } + ], + "outputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "links": [ + 203 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "negative", + "type": "CONDITIONING", + "links": [ + 204 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "ControlNetApplyAdvanced" + }, + "widgets_values": [ + 0.6, + 0, + 0.74 + ] + }, + { + "id": 3, + "type": "KSampler", + "pos": [ + 2189, + 339 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 217 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 203 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 204 + }, + { + "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": [ + 1631588086, + "fixed", + 7, + 2.5, + "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" + ], + [ + 122, + 4, + 1, + 39, + 0, + "CLIP" + ], + [ + 123, + 4, + 1, + 40, + 0, + "CLIP" + ], + [ + 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" + ], + [ + 191, + 42, + 0, + 58, + 1, + "IMAGE" + ], + [ + 192, + 58, + 0, + 23, + 3, + "IMAGE" + ], + [ + 193, + 38, + 0, + 58, + 0, + "FACEANALYSIS" + ], + [ + 197, + 42, + 0, + 60, + 0, + "IMAGE" + ], + [ + 198, + 60, + 0, + 61, + 0, + "IMAGE" + ], + [ + 199, + 60, + 0, + 62, + 3, + "IMAGE" + ], + [ + 200, + 63, + 0, + 62, + 2, + "CONTROL_NET" + ], + [ + 201, + 23, + 1, + 62, + 1, + "CONDITIONING" + ], + [ + 202, + 23, + 0, + 62, + 0, + "CONDITIONING" + ], + [ + 203, + 62, + 0, + 3, + 1, + "CONDITIONING" + ], + [ + 204, + 62, + 1, + 3, + 2, + "CONDITIONING" + ], + [ + 205, + 58, + 0, + 64, + 0, + "IMAGE" + ], + [ + 206, + 66, + 0, + 65, + 0, + "IPADAPTER" + ], + [ + 207, + 67, + 0, + 65, + 1, + "CLIP_VISION" + ], + [ + 209, + 42, + 0, + 68, + 0, + "IMAGE" + ], + [ + 210, + 68, + 0, + 65, + 2, + "IMAGE" + ], + [ + 211, + 4, + 0, + 65, + 3, + "MODEL" + ], + [ + 213, + 65, + 0, + 57, + 3, + "MODEL" + ], + [ + 217, + 57, + 0, + 3, + 0, + "MODEL" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/examples/InstantID_multi_id.json b/examples/InstantID_multi_id.json index c72a860..809de72 100644 --- a/examples/InstantID_multi_id.json +++ b/examples/InstantID_multi_id.json @@ -1,171 +1,55 @@ { - "last_node_id": 72, - "last_link_id": 228, + "last_node_id": 96, + "last_link_id": 328, "nodes": [ { - "id": 38, - "type": "InstantIDFaceAnalysis", + "id": 64, + "type": "EmptyImage", "pos": [ - 460, - 70 + -330, + 440 ], "size": { - "0": 227.09793090820312, - "1": 58 + "0": 210, + "1": 130 }, "flags": {}, "order": 0, "mode": 0, - "outputs": [ - { - "name": "FACEANALYSIS", - "type": "FACEANALYSIS", - "links": [ - 190, - 193, - 207 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "InstantIDFaceAnalysis" - }, - "widgets_values": [ - "CPU" - ] - }, - { - "id": 40, - "type": "CLIPTextEncode", - "pos": [ - 510, - 620 - ], - "size": { - "0": 286.3603515625, - "1": 112.35245513916016 - }, - "flags": {}, - "order": 13, - "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": 13, - "type": "LoadImage", - "pos": [ - 170, - 140 - ], - "size": { - "0": 210, - "1": 314 - }, - "flags": {}, - "order": 1, - "mode": 0, "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ - 188 + 201 ], "shape": 3, "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": null, - "shape": 3 } ], "properties": { - "Node name for S&R": "LoadImage" + "Node name for S&R": "EmptyImage" }, "widgets_values": [ - "face4.jpg", - "image" - ] - }, - { - "id": 42, - "type": "LoadImage", - "pos": [ - 732, - 1029 - ], - "size": { - "0": 220.82643127441406, - "1": 327.5079345703125 - }, - "flags": {}, - "order": 2, - "mode": 0, - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 202 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "LoadImage" - }, - "widgets_values": [ - "666561.jpg", - "image" + 1280, + 864, + 1, + 0 ] }, { "id": 66, "type": "ImageResize+", "pos": [ - 989, - 1018 + -340, + 660 ], "size": { "0": 210, "1": 194 }, "flags": {}, - "order": 10, + "order": 11, "mode": 0, "inputs": [ { @@ -202,7 +86,7 @@ }, "widgets_values": [ 0, - 768, + 864, "nearest", true, "always" @@ -212,15 +96,15 @@ "id": 58, "type": "FaceKeypointsPreprocessor", "pos": [ - 950, - 510 + 415, + 59 ], "size": { "0": 229.20001220703125, "1": 46 }, "flags": {}, - "order": 16, + "order": 18, "mode": 0, "inputs": [ { @@ -251,408 +135,71 @@ } }, { - "id": 15, - "type": "PreviewImage", + "id": 89, + "type": "ConditioningSetMask", "pos": [ - 3470, - 390 + -17, + -527 ], "size": { - "0": 735.31982421875, - "1": 557.6637573242188 - }, - "flags": {}, - "order": 23, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 19 - } - ], - "properties": { - "Node name for S&R": "PreviewImage" - } - }, - { - "id": 8, - "type": "VAEDecode", - "pos": [ - 3130, - 380 - ], - "size": { - "0": 210, - "1": 46 - }, - "flags": {}, - "order": 22, - "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": 3, - "type": "KSampler", - "pos": [ - 2730, - 300 - ], - "size": { - "0": 315, - "1": 262 - }, - "flags": {}, - "order": 21, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "MODEL", - "link": 222 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 220 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 219 - }, - { - "name": "latent_image", - "type": "LATENT", - "link": 198 - } - ], - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 7 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "KSampler" - }, - "widgets_values": [ - 1631588087, - "fixed", - 7, - 2.6, - "ddpm", - "normal", - 1 - ] - }, - { - "id": 70, - "type": "ControlNetApplyAdvanced", - "pos": [ - 2196, - 63 - ], - "size": { - "0": 315, - "1": 166 + "0": 211.60000610351562, + "1": 102 }, "flags": {}, "order": 20, "mode": 0, "inputs": [ { - "name": "positive", + "name": "conditioning", "type": "CONDITIONING", - "link": 215 + "link": 278 }, { - "name": "negative", - "type": "CONDITIONING", - "link": 216 - }, - { - "name": "control_net", - "type": "CONTROL_NET", - "link": 217 - }, - { - "name": "image", - "type": "IMAGE", - "link": 224 - } - ], - "outputs": [ - { - "name": "positive", - "type": "CONDITIONING", - "links": [ - 220 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "negative", - "type": "CONDITIONING", - "links": [ - 219 - ], - "shape": 3, - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "ControlNetApplyAdvanced" - }, - "widgets_values": [ - 0.6, - 0, - 1 - ] - }, - { - "id": 68, - "type": "ApplyInstantID", - "pos": [ - 1728, - -89 - ], - "size": { - "0": 260, - "1": 226 - }, - "flags": {}, - "order": 19, - "mode": 0, - "inputs": [ - { - "name": "instantid", - "type": "INSTANTID", - "link": 206 - }, - { - "name": "insightface", - "type": "FACEANALYSIS", - "link": 207 - }, - { - "name": "image_features", - "type": "IMAGE", - "link": 225 - }, - { - "name": "model", - "type": "MODEL", - "link": 221 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 213 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 214 - }, - { - "name": "attn_mask", + "name": "mask", "type": "MASK", - "link": 228 + "link": 280 } ], "outputs": [ { - "name": "MODEL", - "type": "MODEL", + "name": "CONDITIONING", + "type": "CONDITIONING", "links": [ - 222 + 285 ], "shape": 3, "slot_index": 0 - }, - { - "name": "POSITIVE", - "type": "CONDITIONING", - "links": [ - 215 - ], - "shape": 3, - "slot_index": 1 - }, - { - "name": "NEGATIVE", - "type": "CONDITIONING", - "links": [ - 216 - ], - "shape": 3, - "slot_index": 2 } ], "properties": { - "Node name for S&R": "ApplyInstantID" + "Node name for S&R": "ConditioningSetMask" }, "widgets_values": [ 1, - 0, - 1 - ] - }, - { - "id": 69, - "type": "ImageFlip+", - "pos": [ - 1787, - 198 - ], - "size": { - "0": 210, - "1": 58 - }, - "flags": {}, - "order": 18, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 212 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 224 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ImageFlip+" - }, - "widgets_values": [ - "x" - ] - }, - { - "id": 23, - "type": "ControlNetApplyAdvanced", - "pos": [ - 1356, - 94 - ], - "size": { - "0": 315, - "1": 166 - }, - "flags": {}, - "order": 17, - "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": [ - 213 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "negative", - "type": "CONDITIONING", - "links": [ - 214 - ], - "shape": 3, - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "ControlNetApplyAdvanced" - }, - "widgets_values": [ - 0.6, - 0, - 1 + "default" ] }, { "id": 11, "type": "InstantIDModelLoader", "pos": [ - 450, - -40 + -980, + -250 ], "size": { "0": 238.72393798828125, "1": 58 }, "flags": {}, - "order": 3, + "order": 1, "mode": 0, "outputs": [ { "name": "INSTANTID", "type": "INSTANTID", "links": [ - 189, - 206 + 286, + 307 ], "shape": 3, "slot_index": 0 @@ -666,54 +213,133 @@ ] }, { - "id": 57, - "type": "ApplyInstantID", + "id": 38, + "type": "InstantIDFaceAnalysis", "pos": [ - 922, - 116 + -970, + -140 ], "size": { - "0": 260, + "0": 227.09793090820312, + "1": 58 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "FACEANALYSIS", + "type": "FACEANALYSIS", + "links": [ + 193, + 287, + 308 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "InstantIDFaceAnalysis" + }, + "widgets_values": [ + "CPU" + ] + }, + { + "id": 90, + "type": "ConditioningSetMask", + "pos": [ + 821, + -664 + ], + "size": { + "0": 211.60000610351562, + "1": 102 + }, + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 281 + }, + { + "name": "mask", + "type": "MASK", + "link": 282 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 314 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ConditioningSetMask" + }, + "widgets_values": [ + 1, + "default" + ] + }, + { + "id": 91, + "type": "ApplyInstantID", + "pos": [ + 364, + -460 + ], + "size": { + "0": 315, "1": 226 }, "flags": {}, - "order": 15, + "order": 23, "mode": 0, "inputs": [ { "name": "instantid", "type": "INSTANTID", - "link": 189 + "link": 286 }, { "name": "insightface", "type": "FACEANALYSIS", - "link": 190 + "link": 287 }, { "name": "image_features", "type": "IMAGE", - "link": 188 + "link": 284 }, { "name": "model", "type": "MODEL", - "link": 182 + "link": 288 }, { "name": "positive", "type": "CONDITIONING", - "link": 186 + "link": 285 }, { "name": "negative", "type": "CONDITIONING", - "link": 187 + "link": 292 }, { "name": "attn_mask", "type": "MASK", - "link": 226 + "link": 300 } ], "outputs": [ @@ -721,7 +347,7 @@ "name": "MODEL", "type": "MODEL", "links": [ - 221 + 310 ], "shape": 3, "slot_index": 0 @@ -730,7 +356,7 @@ "name": "POSITIVE", "type": "CONDITIONING", "links": [ - 184 + 290 ], "shape": 3, "slot_index": 1 @@ -739,7 +365,7 @@ "name": "NEGATIVE", "type": "CONDITIONING", "links": [ - 185 + 289 ], "shape": 3, "slot_index": 2 @@ -749,64 +375,57 @@ "Node name for S&R": "ApplyInstantID" }, "widgets_values": [ - 1, + 0.8, 0, 1 ] }, { - "id": 63, - "type": "LoadImage", + "id": 16, + "type": "ControlNetLoader", "pos": [ - 37, - 1083 + -990, + -360 ], "size": { - "0": 485.74432373046875, - "1": 343.01593017578125 + "0": 250.07241821289062, + "1": 58 }, "flags": {}, - "order": 4, + "order": 3, "mode": 0, "outputs": [ { - "name": "IMAGE", - "type": "IMAGE", - "links": null, - "shape": 3 - }, - { - "name": "MASK", - "type": "MASK", + "name": "CONTROL_NET", + "type": "CONTROL_NET", "links": [ - 226, - 227 + 53, + 217 ], "shape": 3, - "slot_index": 1 + "slot_index": 0 } ], "properties": { - "Node name for S&R": "LoadImage" + "Node name for S&R": "ControlNetLoader" }, "widgets_values": [ - "clipspace/clipspace-mask-1101702.png [input]", - "image" + "instantid/diffusion_pytorch_model.safetensors" ] }, { "id": 65, "type": "ImageCompositeMasked", "pos": [ - 1312, - 808 + -20, + 450 ], "size": { "0": 210, "1": 146 }, "flags": {}, - "order": 14, + "order": 16, "mode": 0, "inputs": [ { @@ -846,210 +465,167 @@ ] }, { - "id": 64, - "type": "EmptyImage", + "id": 42, + "type": "LoadImage", "pos": [ - 1000, - 797 - ], - "size": [ - 210, - 130 + -651, + 676 ], + "size": { + "0": 220.82643127441406, + "1": 327.5079345703125 + }, "flags": {}, - "order": 5, + "order": 4, "mode": 0, "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ - 201 + 202 ], "shape": 3, "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 } ], "properties": { - "Node name for S&R": "EmptyImage" + "Node name for S&R": "LoadImage" }, "widgets_values": [ - 1280, - 768, - 1, - 0 + "666561.jpg", + "image" ] }, { - "id": 72, - "type": "MaskFlip+", + "id": 75, + "type": "SolidMask", "pos": [ - 1605, - 773 - ], - "size": [ - 210, - 58 + -1060, + 230 ], + "size": { + "0": 315, + "1": 106 + }, "flags": {}, - "order": 11, + "order": 5, "mode": 0, - "inputs": [ - { - "name": "mask", - "type": "MASK", - "link": 227 - } - ], "outputs": [ { "name": "MASK", "type": "MASK", "links": [ - 228 + 250 ], "shape": 3, "slot_index": 0 } ], "properties": { - "Node name for S&R": "MaskFlip+" + "Node name for S&R": "SolidMask" }, "widgets_values": [ - "x" + 0, + 1280, + 768 ] }, { - "id": 16, - "type": "ControlNetLoader", + "id": 13, + "type": "LoadImage", "pos": [ - 940, - 410 + 7, + -910 ], "size": { - "0": 250.07241821289062, - "1": 58 + "0": 210, + "1": 314 }, "flags": {}, "order": 6, "mode": 0, "outputs": [ { - "name": "CONTROL_NET", - "type": "CONTROL_NET", + "name": "IMAGE", + "type": "IMAGE", "links": [ - 53, - 217 + 284 ], "shape": 3, "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 } ], "properties": { - "Node name for S&R": "ControlNetLoader" + "Node name for S&R": "LoadImage" }, "widgets_values": [ - "instantid/diffusion_pytorch_model.safetensors" + "304556129-a300e95b-4ab3-43b3-bcec-04897d20d3ef.png", + "image" ] }, { - "id": 39, - "type": "CLIPTextEncode", + "id": 71, + "type": "LoadImage", "pos": [ - 510, - 440 + 826, + -1046 ], "size": { - "0": 291.9967346191406, - "1": 128.62518310546875 - }, - "flags": {}, - "order": 12, - "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": [ - "oil paint portrait two women (closed eyes day dreaming:1.15)" - ] - }, - { - "id": 4, - "type": "CheckpointLoaderSimple", - "pos": [ - -50, - 580 - ], - "size": { - "0": 315, - "1": 98 + "0": 210, + "1": 314 }, "flags": {}, "order": 7, "mode": 0, "outputs": [ { - "name": "MODEL", - "type": "MODEL", + "name": "IMAGE", + "type": "IMAGE", "links": [ - 182 + 309 ], + "shape": 3, "slot_index": 0 }, { - "name": "CLIP", - "type": "CLIP", - "links": [ - 122, - 123 - ], - "slot_index": 1 - }, - { - "name": "VAE", - "type": "VAE", - "links": [ - 8 - ], - "slot_index": 2 + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 } ], "properties": { - "Node name for S&R": "CheckpointLoaderSimple" + "Node name for S&R": "LoadImage" }, "widgets_values": [ - "sdxl/TurboVisionXL.safetensors" + "304556137-1c8b2d05-4326-4a87-84f3-dbba13ef0ab4.png", + "image" ] }, { "id": 5, "type": "EmptyLatentImage", "pos": [ - 2390, - 360 - ], - "size": [ - 210, - 106 + 2071, + -35 ], + "size": { + "0": 210, + "1": 106 + }, "flags": {}, "order": 8, "mode": 0, @@ -1068,47 +644,839 @@ }, "widgets_values": [ 1280, - 768, + 864, 1 ] }, { - "id": 71, - "type": "LoadImage", + "id": 23, + "type": "ControlNetApplyAdvanced", "pos": [ - 1380, - -320 + 796, + -237 + ], + "size": { + "0": 315, + "1": 166 + }, + "flags": {}, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "link": 290 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 289 + }, + { + "name": "control_net", + "type": "CONTROL_NET", + "link": 53 + }, + { + "name": "image", + "type": "IMAGE", + "link": 192 + } + ], + "outputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "links": [ + 263 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "negative", + "type": "CONDITIONING", + "links": [ + 319 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "ControlNetApplyAdvanced" + }, + "widgets_values": [ + 0.7000000000000001, + 0, + 1 + ] + }, + { + "id": 82, + "type": "ConditioningCombine", + "pos": [ + 2065, + -367 + ], + "size": { + "0": 228.39999389648438, + "1": 46 + }, + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [ + { + "name": "conditioning_1", + "type": "CONDITIONING", + "link": 262 + }, + { + "name": "conditioning_2", + "type": "CONDITIONING", + "link": 263 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 277 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ConditioningCombine" + } + }, + { + "id": 77, + "type": "MaskComposite", + "pos": [ + -550, + 230 ], "size": { "0": 210, - "1": 314 + "1": 126 + }, + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "destination", + "type": "MASK", + "link": 250 + }, + { + "name": "source", + "type": "MASK", + "link": 325 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 254, + 280, + 300 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "MaskComposite" + }, + "widgets_values": [ + 0, + 0, + "add" + ] + }, + { + "id": 94, + "type": "FeatherMask", + "pos": [ + -690, + 420 + ], + "size": [ + 210, + 130 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 324 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 325 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "FeatherMask" + }, + "widgets_values": [ + 0, + 0, + 120, + 0 + ] + }, + { + "id": 76, + "type": "SolidMask", + "pos": [ + -1050, + 380 + ], + "size": { + "0": 315, + "1": 106 }, "flags": {}, "order": 9, "mode": 0, + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 324 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "SolidMask" + }, + "widgets_values": [ + 1, + 760, + 768 + ] + }, + { + "id": 78, + "type": "InvertMask", + "pos": [ + -71, + 235 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 254 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 282, + 316 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "InvertMask" + } + }, + { + "id": 4, + "type": "CheckpointLoaderSimple", + "pos": [ + -1050, + -10 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 10, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 288 + ], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 122, + 123, + 258 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 8 + ], + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "sdxl/AlbedoBaseXL.safetensors" + ] + }, + { + "id": 69, + "type": "ImageFlip+", + "pos": [ + 1060, + 55 + ], + "size": { + "0": 210, + "1": 58 + }, + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 212 + } + ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ - 225 + 224 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageFlip+" + }, + "widgets_values": [ + "x" + ] + }, + { + "id": 93, + "type": "ApplyInstantID", + "pos": [ + 1145, + -489 + ], + "size": { + "0": 315, + "1": 226 + }, + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "instantid", + "type": "INSTANTID", + "link": 307 + }, + { + "name": "insightface", + "type": "FACEANALYSIS", + "link": 308 + }, + { + "name": "image_features", + "type": "IMAGE", + "link": 309 + }, + { + "name": "model", + "type": "MODEL", + "link": 310 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 314 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 321 + }, + { + "name": "attn_mask", + "type": "MASK", + "link": 316 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 327 ], "shape": 3, "slot_index": 0 }, { - "name": "MASK", - "type": "MASK", - "links": null, - "shape": 3 + "name": "POSITIVE", + "type": "CONDITIONING", + "links": [ + 312 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "NEGATIVE", + "type": "CONDITIONING", + "links": [ + 313 + ], + "shape": 3, + "slot_index": 2 } ], "properties": { - "Node name for S&R": "LoadImage" + "Node name for S&R": "ApplyInstantID" }, "widgets_values": [ - "farahani2.jpg", - "image" + 0.8, + 0, + 1 + ] + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 2818, + -217 + ], + "size": { + "0": 140, + "1": 46 + }, + "flags": {}, + "order": 31, + "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": 40, + "type": "CLIPTextEncode", + "pos": [ + -89, + -70 + ], + "size": { + "0": 286.3603515625, + "1": 112.35245513916016 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 123 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 292, + 321 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "blurry, photograph, anime, malformed, distorted, ill, low quality, naked, author, text, watermark, copyright, signature" + ] + }, + { + "id": 15, + "type": "PreviewImage", + "pos": [ + 3021, + -217 + ], + "size": [ + 1402.1533082982205, + 979.7475774903453 + ], + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 19 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 83, + "type": "ConditioningCombine", + "pos": [ + 2061, + -161 + ], + "size": { + "0": 228.39999389648438, + "1": 46 + }, + "flags": {}, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "conditioning_1", + "type": "CONDITIONING", + "link": 266 + }, + { + "name": "conditioning_2", + "type": "CONDITIONING", + "link": 319 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 323 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ConditioningCombine" + } + }, + { + "id": 70, + "type": "ControlNetApplyAdvanced", + "pos": [ + 1617, + -297 + ], + "size": { + "0": 315, + "1": 166 + }, + "flags": {}, + "order": 27, + "mode": 0, + "inputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "link": 312 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 313 + }, + { + "name": "control_net", + "type": "CONTROL_NET", + "link": 217 + }, + { + "name": "image", + "type": "IMAGE", + "link": 224 + } + ], + "outputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "links": [ + 262 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "negative", + "type": "CONDITIONING", + "links": [ + 266 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "ControlNetApplyAdvanced" + }, + "widgets_values": [ + 0.7000000000000001, + 0, + 1 + ] + }, + { + "id": 81, + "type": "CLIPTextEncode", + "pos": [ + 445, + -665 + ], + "size": { + "0": 291.9967346191406, + "1": 128.62518310546875 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 258 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 281 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "(oil paint:1.2) closeup portrait of an old man wearing glasses smiling, flat artistry background" + ] + }, + { + "id": 39, + "type": "CLIPTextEncode", + "pos": [ + -410, + -525 + ], + "size": { + "0": 291.9967346191406, + "1": 128.62518310546875 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 122 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 278 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "(oil paint:1.2) closeup portrait of a woman with curly blonde hair smiling, flat artistry background" + ] + }, + { + "id": 96, + "type": "RescaleCFG", + "pos": [ + 2453, + -372 + ], + "size": [ + 210, + 58 + ], + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 327 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 328 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "RescaleCFG" + }, + "widgets_values": [ + 0.7000000000000001 + ] + }, + { + "id": 3, + "type": "KSampler", + "pos": [ + 2437, + -221 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 328 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 277 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 323 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 198 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 7 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 1631588096, + "fixed", + 30, + 4.4, + "dpmpp_2m_sde", + "exponential", + 1 ] } ], @@ -1161,70 +1529,6 @@ 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, @@ -1281,22 +1585,6 @@ 1, "IMAGE" ], - [ - 206, - 11, - 0, - 68, - 0, - "INSTANTID" - ], - [ - 207, - 38, - 0, - 68, - 1, - "FACEANALYSIS" - ], [ 212, 58, @@ -1305,38 +1593,6 @@ 0, "IMAGE" ], - [ - 213, - 23, - 0, - 68, - 4, - "CONDITIONING" - ], - [ - 214, - 23, - 1, - 68, - 5, - "CONDITIONING" - ], - [ - 215, - 68, - 1, - 70, - 0, - "CONDITIONING" - ], - [ - 216, - 68, - 2, - 70, - 1, - "CONDITIONING" - ], [ 217, 16, @@ -1345,38 +1601,6 @@ 2, "CONTROL_NET" ], - [ - 219, - 70, - 1, - 3, - 2, - "CONDITIONING" - ], - [ - 220, - 70, - 0, - 3, - 1, - "CONDITIONING" - ], - [ - 221, - 57, - 0, - 68, - 3, - "MODEL" - ], - [ - 222, - 68, - 0, - 3, - 0, - "MODEL" - ], [ 224, 69, @@ -1386,36 +1610,284 @@ "IMAGE" ], [ - 225, - 71, + 250, + 75, 0, - 68, + 77, + 0, + "MASK" + ], + [ + 254, + 77, + 0, + 78, + 0, + "MASK" + ], + [ + 258, + 4, + 1, + 81, + 0, + "CLIP" + ], + [ + 262, + 70, + 0, + 82, + 0, + "CONDITIONING" + ], + [ + 263, + 23, + 0, + 82, + 1, + "CONDITIONING" + ], + [ + 266, + 70, + 1, + 83, + 0, + "CONDITIONING" + ], + [ + 277, + 82, + 0, + 3, + 1, + "CONDITIONING" + ], + [ + 278, + 39, + 0, + 89, + 0, + "CONDITIONING" + ], + [ + 280, + 77, + 0, + 89, + 1, + "MASK" + ], + [ + 281, + 81, + 0, + 90, + 0, + "CONDITIONING" + ], + [ + 282, + 78, + 0, + 90, + 1, + "MASK" + ], + [ + 284, + 13, + 0, + 91, 2, "IMAGE" ], [ - 226, - 63, + 285, + 89, + 0, + 91, + 4, + "CONDITIONING" + ], + [ + 286, + 11, + 0, + 91, + 0, + "INSTANTID" + ], + [ + 287, + 38, + 0, + 91, 1, - 57, + "FACEANALYSIS" + ], + [ + 288, + 4, + 0, + 91, + 3, + "MODEL" + ], + [ + 289, + 91, + 2, + 23, + 1, + "CONDITIONING" + ], + [ + 290, + 91, + 1, + 23, + 0, + "CONDITIONING" + ], + [ + 292, + 40, + 0, + 91, + 5, + "CONDITIONING" + ], + [ + 300, + 77, + 0, + 91, 6, "MASK" ], [ - 227, - 63, + 307, + 11, + 0, + 93, + 0, + "INSTANTID" + ], + [ + 308, + 38, + 0, + 93, 1, - 72, + "FACEANALYSIS" + ], + [ + 309, + 71, + 0, + 93, + 2, + "IMAGE" + ], + [ + 310, + 91, + 0, + 93, + 3, + "MODEL" + ], + [ + 312, + 93, + 1, + 70, + 0, + "CONDITIONING" + ], + [ + 313, + 93, + 2, + 70, + 1, + "CONDITIONING" + ], + [ + 314, + 90, + 0, + 93, + 4, + "CONDITIONING" + ], + [ + 316, + 78, + 0, + 93, + 6, + "MASK" + ], + [ + 319, + 23, + 1, + 83, + 1, + "CONDITIONING" + ], + [ + 321, + 40, + 0, + 93, + 5, + "CONDITIONING" + ], + [ + 323, + 83, + 0, + 3, + 2, + "CONDITIONING" + ], + [ + 324, + 76, + 0, + 94, 0, "MASK" ], [ - 228, - 72, + 325, + 94, 0, - 68, - 6, + 77, + 1, "MASK" + ], + [ + 327, + 93, + 0, + 96, + 0, + "MODEL" + ], + [ + 328, + 96, + 0, + 3, + 0, + "MODEL" ] ], "groups": [],