diff --git a/cascade_controlnet.py b/cascade_controlnet.py new file mode 100644 index 00000000000..bb16c31a6ae --- /dev/null +++ b/cascade_controlnet.py @@ -0,0 +1,64 @@ +import os +HOME = os.getcwd() +print(HOME) + + +%cd {HOME} +!git clone https://github.com/IDEA-Research/GroundingDINO.git +%cd {HOME}/GroundingDINO +!pip install -q -e . +!pip install -q roboflow + + +import os + +CONFIG_PATH = os.path.join(HOME, "GroundingDINO/groundingdino/config/GroundingDINO_SwinT_OGC.py") +print(CONFIG_PATH, "; exist:", os.path.isfile(CONFIG_PATH)) + + +%cd {HOME} +!mkdir {HOME}/weights +%cd {HOME}/weights + +!wget -q https://github.com/IDEA-Research/GroundingDINO/releases/download/v0.1.0-alpha/groundingdino_swint_ogc.pth + + +import os + +WEIGHTS_NAME = "groundingdino_swint_ogc.pth" +WEIGHTS_PATH = os.path.join(HOME, "weights", WEIGHTS_NAME) +print(WEIGHTS_PATH, "; exist:", os.path.isfile(WEIGHTS_PATH)) + + +%cd {HOME}/GroundingDINO + +from groundingdino.util.inference import load_model, load_image, predict, annotate + +model = load_model(CONFIG_PATH, WEIGHTS_PATH) + + + +import os +import supervision as sv + +IMAGE_NAME = "dog-3.jpeg" +IMAGE_PATH = os.path.join(HOME, "data", IMAGE_NAME) + +TEXT_PROMPT = "chair" +BOX_TRESHOLD = 0.35 +TEXT_TRESHOLD = 0.25 + +image_source, image = load_image(IMAGE_PATH) + +boxes, logits, phrases = predict( + model=model, + image=image, + caption=TEXT_PROMPT, + box_threshold=BOX_TRESHOLD, + text_threshold=TEXT_TRESHOLD +) + +annotated_frame = annotate(image_source=image_source, boxes=boxes, logits=logits, phrases=phrases) + +%matplotlib inline +sv.plot_image(annotated_frame, (16, 16)) \ No newline at end of file diff --git a/comfyUI_flows/FaceSwap.json b/comfyUI_flows/FaceSwap.json new file mode 100644 index 00000000000..66eaad1a0d3 --- /dev/null +++ b/comfyUI_flows/FaceSwap.json @@ -0,0 +1,210 @@ +{ + "last_node_id": 25, + "last_link_id": 38, + "nodes": [ + { + "id": 6, + "type": "LoadImage", + "pos": [ + 1360, + 1041 + ], + "size": { + "0": 220, + "1": 320 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 34 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "Mia_face (28).png", + "image" + ] + }, + { + "id": 24, + "type": "SaveImage", + "pos": [ + 1666, + 1090 + ], + "size": { + "0": 517.3851318359375, + "1": 779.9139404296875 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 37, + "slot_index": 0 + } + ], + "properties": {}, + "widgets_values": [ + "mia/mia" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 25, + "type": "LoadImage", + "pos": [ + 987, + 1361 + ], + "size": { + "0": 315, + "1": 314.00006103515625 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 38 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "5.jpg", + "image" + ] + }, + { + "id": 18, + "type": "ReActorFaceSwap", + "pos": [ + 1320, + 1418 + ], + "size": { + "0": 315, + "1": 338 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "source_image", + "type": "IMAGE", + "link": 34, + "slot_index": 0 + }, + { + "name": "input_image", + "type": "IMAGE", + "link": 38, + "slot_index": 1 + }, + { + "name": "face_model", + "type": "FACE_MODEL", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 37 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "FACE_MODEL", + "type": "FACE_MODEL", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ReActorFaceSwap" + }, + "widgets_values": [ + true, + "inswapper_128.onnx", + "retinaface_resnet50", + "codeformer.pth", + 1, + 1, + "female", + "female", + "0", + "0", + 1 + ] + } + ], + "links": [ + [ + 34, + 6, + 0, + 18, + 0, + "IMAGE" + ], + [ + 37, + 18, + 0, + 24, + 0, + "IMAGE" + ], + [ + 38, + 25, + 0, + 18, + 1, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/comfyUI_flows/IPAdapter_Canny.json b/comfyUI_flows/IPAdapter_Canny.json new file mode 100644 index 00000000000..d91bd2b9d08 --- /dev/null +++ b/comfyUI_flows/IPAdapter_Canny.json @@ -0,0 +1,832 @@ +{ + "last_node_id": 17, + "last_link_id": 19, + "nodes": [ + { + "id": 10, + "type": "EmptyLatentImage", + "pos": [ + 650, + 590 + ], + "size": { + "0": 210, + "1": 110 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 10 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 512, + 512, + 1 + ] + }, + { + "id": 8, + "type": "CLIPTextEncode", + "pos": [ + 650, + 420 + ], + "size": { + "0": 210, + "1": 120 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 6 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 9 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "blurry, horror" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 650, + 250 + ], + "size": { + "0": 210, + "1": 120 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 16 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "beautiful renaissance girl with a necklace, detailed" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 11, + "type": "VAEDecode", + "pos": [ + 1300, + 170 + ], + "size": { + "0": 140, + "1": 50 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 11 + }, + { + "name": "vae", + "type": "VAE", + "link": 12 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 13 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 2, + "type": "VAELoader", + "pos": [ + 940, + 480 + ], + "size": { + "0": 300, + "1": 60 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 12 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAELoader" + }, + "widgets_values": [ + "vae-ft-mse-840000-ema-pruned.safetensors" + ] + }, + { + "id": 12, + "type": "SaveImage", + "pos": [ + 1300, + 270 + ], + "size": { + "0": 400, + "1": 450 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 13 + } + ], + "properties": {}, + "widgets_values": [ + "IPAdapter" + ] + }, + { + "id": 6, + "type": "LoadImage", + "pos": [ + 40, + 60 + ], + "size": { + "0": 220, + "1": 320 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 3 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "venere.jpg", + "image" + ] + }, + { + "id": 14, + "type": "LoadImage", + "pos": [ + 50, + 860 + ], + "size": { + "0": 220, + "1": 320 + }, + "flags": {}, + "order": 3, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 14 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "portrait.jpg", + "image" + ] + }, + { + "id": 15, + "type": "ControlNetLoader", + "pos": [ + 190, + 750 + ], + "size": { + "0": 310, + "1": 60 + }, + "flags": {}, + "order": 4, + "mode": 0, + "outputs": [ + { + "name": "CONTROL_NET", + "type": "CONTROL_NET", + "links": [ + 15 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ControlNetLoader" + }, + "widgets_values": [ + "control_v11p_sd15_canny_fp16.safetensors" + ] + }, + { + "id": 17, + "type": "PreviewImage", + "pos": [ + 579.412728881836, + 903.3208389282227 + ], + "size": { + "0": 210, + "1": 246 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 19 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 13, + "type": "Canny", + "pos": [ + 290, + 860 + ], + "size": { + "0": 210, + "1": 82 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 14 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 18, + 19 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Canny" + }, + "widgets_values": [ + 0.1, + 0.5 + ] + }, + { + "id": 16, + "type": "ControlNetApply", + "pos": [ + 540, + 750 + ], + "size": { + "0": 317.4000244140625, + "1": 98 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 16 + }, + { + "name": "control_net", + "type": "CONTROL_NET", + "link": 15 + }, + { + "name": "image", + "type": "IMAGE", + "link": 18 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 17 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ControlNetApply" + }, + "widgets_values": [ + 0.8 + ] + }, + { + "id": 9, + "type": "KSampler", + "pos": [ + 930, + 170 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 7 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 17 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 9 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 10 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 11 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 27, + "fixed", + 30, + 6, + "ddim", + "ddim_uniform", + 1 + ] + }, + { + "id": 4, + "type": "CLIPVisionLoader", + "pos": [ + 290, + 170 + ], + "size": { + "0": 300, + "1": 60 + }, + "flags": {}, + "order": 5, + "mode": 0, + "outputs": [ + { + "name": "CLIP_VISION", + "type": "CLIP_VISION", + "links": [ + 2 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPVisionLoader" + }, + "widgets_values": [ + "IPAdapter_image_encoder_sd15.safetensors" + ] + }, + { + "id": 3, + "type": "IPAdapterModelLoader", + "pos": [ + 290, + 60 + ], + "size": { + "0": 300, + "1": 60 + }, + "flags": {}, + "order": 6, + "mode": 0, + "outputs": [ + { + "name": "IPADAPTER", + "type": "IPADAPTER", + "links": [ + 1 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IPAdapterModelLoader" + }, + "widgets_values": [ + "ip-adapter-plus_sd15.safetensors" + ] + }, + { + "id": 1, + "type": "CheckpointLoaderSimple", + "pos": [ + 290, + 280 + ], + "size": { + "0": 300, + "1": 100 + }, + "flags": {}, + "order": 7, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 4 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 5, + 6 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "sd15/realisticVisionV51_v51VAE.safetensors" + ] + }, + { + "id": 5, + "type": "IPAdapterApply", + "pos": [ + 656, + -51 + ], + "size": { + "0": 210, + "1": 258 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "ipadapter", + "type": "IPADAPTER", + "link": 1 + }, + { + "name": "clip_vision", + "type": "CLIP_VISION", + "link": 2 + }, + { + "name": "image", + "type": "IMAGE", + "link": 3 + }, + { + "name": "model", + "type": "MODEL", + "link": 4 + }, + { + "name": "attn_mask", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 7 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IPAdapterApply" + }, + "widgets_values": [ + 0.8, + 0, + "original", + 0, + 1, + false + ] + } + ], + "links": [ + [ + 1, + 3, + 0, + 5, + 0, + "IPADAPTER" + ], + [ + 2, + 4, + 0, + 5, + 1, + "CLIP_VISION" + ], + [ + 3, + 6, + 0, + 5, + 2, + "IMAGE" + ], + [ + 4, + 1, + 0, + 5, + 3, + "MODEL" + ], + [ + 5, + 1, + 1, + 7, + 0, + "CLIP" + ], + [ + 6, + 1, + 1, + 8, + 0, + "CLIP" + ], + [ + 7, + 5, + 0, + 9, + 0, + "MODEL" + ], + [ + 9, + 8, + 0, + 9, + 2, + "CONDITIONING" + ], + [ + 10, + 10, + 0, + 9, + 3, + "LATENT" + ], + [ + 11, + 9, + 0, + 11, + 0, + "LATENT" + ], + [ + 12, + 2, + 0, + 11, + 1, + "VAE" + ], + [ + 13, + 11, + 0, + 12, + 0, + "IMAGE" + ], + [ + 14, + 14, + 0, + 13, + 0, + "IMAGE" + ], + [ + 15, + 15, + 0, + 16, + 1, + "CONTROL_NET" + ], + [ + 16, + 7, + 0, + 16, + 0, + "CONDITIONING" + ], + [ + 17, + 16, + 0, + 9, + 1, + "CONDITIONING" + ], + [ + 18, + 13, + 0, + 16, + 2, + "IMAGE" + ], + [ + 19, + 13, + 0, + 17, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/comfyUI_flows/IPAdapter_inpaint.json b/comfyUI_flows/IPAdapter_inpaint.json new file mode 100644 index 00000000000..2737d2bea48 --- /dev/null +++ b/comfyUI_flows/IPAdapter_inpaint.json @@ -0,0 +1,688 @@ +{ + "last_node_id": 23, + "last_link_id": 37, + "nodes": [ + { + "id": 8, + "type": "CLIPTextEncode", + "pos": [ + 650, + 420 + ], + "size": { + "0": 210, + "1": 120 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 6 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 9 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "blurry, horror" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 11, + "type": "VAEDecode", + "pos": [ + 1300, + 170 + ], + "size": { + "0": 140, + "1": 50 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 11 + }, + { + "name": "vae", + "type": "VAE", + "link": 12 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 13 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 12, + "type": "SaveImage", + "pos": [ + 1300, + 270 + ], + "size": { + "0": 400, + "1": 450 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 13 + } + ], + "properties": {}, + "widgets_values": [ + "IPAdapter" + ] + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 650, + 250 + ], + "size": { + "0": 210, + "1": 120 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 25 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "closeup photo of a renaissance astronaut " + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 14, + "type": "LoadImage", + "pos": [ + 40, + 60 + ], + "size": { + "0": 220, + "1": 320 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 28 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "venere.jpg", + "image" + ] + }, + { + "id": 2, + "type": "VAELoader", + "pos": [ + 290, + 430 + ], + "size": { + "0": 300, + "1": 60 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 12, + 30 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAELoader" + }, + "widgets_values": [ + "vae-ft-mse-840000-ema-pruned.safetensors" + ] + }, + { + "id": 9, + "type": "KSampler", + "pos": [ + 930, + 170 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 7 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 25 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 9 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 32 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 11 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 34, + "fixed", + 35, + 6, + "ddim", + "ddim_uniform", + 1 + ] + }, + { + "id": 20, + "type": "VAEEncodeForInpaint", + "pos": [ + 650, + 590 + ], + "size": { + "0": 230, + "1": 100 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 29 + }, + { + "name": "vae", + "type": "VAE", + "link": 30 + }, + { + "name": "mask", + "type": "MASK", + "link": 37 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 32 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEEncodeForInpaint" + }, + "widgets_values": [ + 12 + ] + }, + { + "id": 4, + "type": "CLIPVisionLoader", + "pos": [ + 290, + 170 + ], + "size": { + "0": 300, + "1": 60 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "CLIP_VISION", + "type": "CLIP_VISION", + "links": [ + 2 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPVisionLoader" + }, + "widgets_values": [ + "IPAdapter_image_encoder_sd15.safetensors" + ] + }, + { + "id": 1, + "type": "CheckpointLoaderSimple", + "pos": [ + 290, + 280 + ], + "size": { + "0": 300, + "1": 100 + }, + "flags": {}, + "order": 3, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 4 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 5, + 6 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "sd15/absolutereality_v181INPAINTING.safetensors" + ] + }, + { + "id": 5, + "type": "IPAdapterApply", + "pos": [ + 654, + -60 + ], + "size": { + "0": 210, + "1": 258 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "ipadapter", + "type": "IPADAPTER", + "link": 1 + }, + { + "name": "clip_vision", + "type": "CLIP_VISION", + "link": 2 + }, + { + "name": "image", + "type": "IMAGE", + "link": 28 + }, + { + "name": "model", + "type": "MODEL", + "link": 4 + }, + { + "name": "attn_mask", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 7 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IPAdapterApply" + }, + "widgets_values": [ + 0.8, + 0, + "original", + 0, + 1, + false + ] + }, + { + "id": 3, + "type": "IPAdapterModelLoader", + "pos": [ + 290, + 60 + ], + "size": { + "0": 300, + "1": 60 + }, + "flags": {}, + "order": 4, + "mode": 0, + "outputs": [ + { + "name": "IPADAPTER", + "type": "IPADAPTER", + "links": [ + 1 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IPAdapterModelLoader" + }, + "widgets_values": [ + "ip-adapter-plus_sd15.safetensors" + ] + }, + { + "id": 19, + "type": "LoadImage", + "pos": [ + 370, + 600 + ], + "size": { + "0": 220, + "1": 320 + }, + "flags": {}, + "order": 5, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 29 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 37 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "clipspace/clipspace-mask-1375556.png [input]", + "image" + ] + } + ], + "links": [ + [ + 1, + 3, + 0, + 5, + 0, + "IPADAPTER" + ], + [ + 2, + 4, + 0, + 5, + 1, + "CLIP_VISION" + ], + [ + 4, + 1, + 0, + 5, + 3, + "MODEL" + ], + [ + 5, + 1, + 1, + 7, + 0, + "CLIP" + ], + [ + 6, + 1, + 1, + 8, + 0, + "CLIP" + ], + [ + 7, + 5, + 0, + 9, + 0, + "MODEL" + ], + [ + 9, + 8, + 0, + 9, + 2, + "CONDITIONING" + ], + [ + 11, + 9, + 0, + 11, + 0, + "LATENT" + ], + [ + 12, + 2, + 0, + 11, + 1, + "VAE" + ], + [ + 13, + 11, + 0, + 12, + 0, + "IMAGE" + ], + [ + 25, + 7, + 0, + 9, + 1, + "CONDITIONING" + ], + [ + 28, + 14, + 0, + 5, + 2, + "IMAGE" + ], + [ + 29, + 19, + 0, + 20, + 0, + "IMAGE" + ], + [ + 30, + 2, + 0, + 20, + 1, + "VAE" + ], + [ + 32, + 20, + 0, + 9, + 3, + "LATENT" + ], + [ + 37, + 19, + 1, + 20, + 2, + "MASK" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/comfyUI_flows/REPOSER_CHARACTER_GEN.json b/comfyUI_flows/REPOSER_CHARACTER_GEN.json new file mode 100644 index 00000000000..258916cd11d --- /dev/null +++ b/comfyUI_flows/REPOSER_CHARACTER_GEN.json @@ -0,0 +1,2868 @@ +{ + "last_node_id": 100, + "last_link_id": 267, + "nodes": [ + { + "id": 74, + "type": "Anything Everywhere", + "pos": [ + 420, + -140 + ], + "size": { + "0": 210, + "1": 30 + }, + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "VAE", + "type": "*", + "link": 211, + "color_on": "#FF6E6E" + } + ], + "title": "Anything Everywhere - VAE", + "properties": { + "Node name for S&R": "Anything Everywhere", + "group_restricted": false, + "color_restricted": false + }, + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 1, + "type": "CLIPTextEncode", + "pos": [ + 532.3756843589794, + -393.22004057821863 + ], + "size": { + "0": 250, + "1": 54 + }, + "flags": { + "collapsed": false + }, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": null + }, + { + "name": "text", + "type": "STRING", + "link": 61, + "widget": { + "name": "text" + }, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 161 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "SDXL -ve Prompt", + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "naked, nsfw. blurry, lowres, worst quality, bad art, jpeg artefacts, necklace. injury, blood, child, monochrome. minimalism. drab, bland, dull, boring. plastic, 3d render. cat. kitten." + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 67, + "type": "ControlNetApplyAdvanced", + "pos": [ + 870, + 530 + ], + "size": { + "0": 230, + "1": 170 + }, + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "link": 160 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 161 + }, + { + "name": "control_net", + "type": "CONTROL_NET", + "link": 144, + "slot_index": 2 + }, + { + "name": "image", + "type": "IMAGE", + "link": 143 + } + ], + "outputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "links": [ + 164 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "negative", + "type": "CONDITIONING", + "links": [ + 165 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "ControlNetApplyAdvanced" + }, + "widgets_values": [ + 1, + 0, + 1 + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 73, + "type": "Seed Everywhere", + "pos": [ + 1340, + 1180 + ], + "size": { + "0": 240, + "1": 82 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Seed Everywhere", + "group_restricted": false, + "color_restricted": false + }, + "widgets_values": [ + 787952265469233, + "randomize" + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 65, + "type": "Image Crop Face", + "pos": [ + 430, + 530 + ], + "size": { + "0": 210, + "1": 102 + }, + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 129 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 149, + 219 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CROP_DATA", + "type": "CROP_DATA", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Image Crop Face" + }, + "widgets_values": [ + 0.2, + "haarcascade_profileface.xml" + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 64, + "type": "DWPreprocessor", + "pos": [ + 650, + 700 + ], + "size": { + "0": 210, + "1": 198 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 143, + 145 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "POSE_KEYPOINT", + "type": "POSE_KEYPOINT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "DWPreprocessor" + }, + "widgets_values": [ + "enable", + "enable", + "enable", + 1024, + "yolox_l.onnx", + "dw-ll_ucoco_384.onnx" + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 90, + "type": "PrepImageForClipVision", + "pos": [ + -280, + 580 + ], + "size": { + "0": 243.60000610351562, + "1": 110 + }, + "flags": {}, + "order": 27, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 219 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 218 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PrepImageForClipVision" + }, + "widgets_values": [ + "LANCZOS", + "center", + 0 + ], + "color": "#424fdd", + "bgcolor": "#2e3bc9" + }, + { + "id": 19, + "type": "GetImageSize", + "pos": [ + 802.3756843589794, + -783.2200405782187 + ], + "size": { + "0": 140, + "1": 50 + }, + "flags": { + "collapsed": false + }, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 30 + } + ], + "outputs": [ + { + "name": "width", + "type": "INT", + "links": [ + 3 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "height", + "type": "INT", + "links": [ + 4 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "GetImageSize" + }, + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 2, + "type": "EmptyLatentImage", + "pos": [ + 962.3756843589794, + -783.2200405782187 + ], + "size": { + "0": 210, + "1": 80 + }, + "flags": { + "collapsed": false + }, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "link": 3, + "widget": { + "name": "width" + } + }, + { + "name": "height", + "type": "INT", + "link": 4, + "widget": { + "name": "height" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 240 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 18, + "type": "ImageScaleToTotalPixels", + "pos": [ + 532.3756843589794, + -783.2200405782187 + ], + "size": { + "0": 255.57679748535156, + "1": 82 + }, + "flags": { + "collapsed": false + }, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 146 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 30 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageScaleToTotalPixels" + }, + "widgets_values": [ + "nearest-exact", + 1 + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 84, + "type": "Zoe-DepthMapPreprocessor", + "pos": [ + 1110, + 530 + ], + "size": { + "0": 210, + "1": 60 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 207, + 208 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Zoe-DepthMapPreprocessor" + }, + "widgets_values": [ + 1024 + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 76, + "type": "Prompts Everywhere", + "pos": [ + 1570, + 530 + ], + "size": { + "0": 190, + "1": 50 + }, + "flags": {}, + "order": 34, + "mode": 0, + "inputs": [ + { + "name": "CONDITIONING", + "type": "*", + "link": 166, + "color_on": "#FFA931" + }, + { + "name": "CONDITIONING", + "type": "*", + "link": 167, + "color_on": "#FFA931" + } + ], + "properties": { + "Node name for S&R": "Prompts Everywhere", + "group_restricted": false, + "color_restricted": false + }, + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 88, + "type": "IPAdapterModelLoader", + "pos": [ + -460, + 450 + ], + "size": { + "0": 420, + "1": 60 + }, + "flags": {}, + "order": 3, + "mode": 0, + "outputs": [ + { + "name": "IPADAPTER", + "type": "IPADAPTER", + "links": [ + 212 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "IPAdapterModelLoader" + }, + "widgets_values": [ + "ip-adapter-plus-face_sdxl_vit-h.safetensors" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 80, + "type": "PreviewImage", + "pos": [ + 1350, + 760 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 208 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 72, + "type": "PreviewImage", + "pos": [ + 870, + 760 + ], + "size": { + "0": 230, + "1": 250 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 145 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 75, + "type": "PreviewImage", + "pos": [ + 430, + 690 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 149 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 46, + "type": "VAEDecode", + "pos": [ + 1930, + 940 + ], + "size": { + "0": 140, + "1": 50 + }, + "flags": { + "collapsed": false + }, + "order": 35, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 85 + }, + { + "name": "vae", + "type": "VAE", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 87 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + }, + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 78, + "type": "ControlNetApplyAdvanced", + "pos": [ + 1330, + 530 + ], + "size": { + "0": 230, + "1": 170 + }, + "flags": {}, + "order": 31, + "mode": 4, + "inputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "link": 164 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 165 + }, + { + "name": "control_net", + "type": "CONTROL_NET", + "link": 162 + }, + { + "name": "image", + "type": "IMAGE", + "link": 207 + } + ], + "outputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "links": [ + 166 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "negative", + "type": "CONDITIONING", + "links": [ + 167 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "ControlNetApplyAdvanced" + }, + "widgets_values": [ + 0.25, + 0, + 0.25 + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 91, + "type": "NNLatentUpscale", + "pos": [ + 2020, + 140 + ], + "size": { + "0": 210, + "1": 82 + }, + "flags": {}, + "order": 36, + "mode": 0, + "inputs": [ + { + "name": "latent", + "type": "LATENT", + "link": 221 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 222 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "NNLatentUpscale" + }, + "widgets_values": [ + "SDXL", + 1.5 + ], + "color": "#9129a5", + "bgcolor": "#7d1591" + }, + { + "id": 45, + "type": "KSamplerAdvanced", + "pos": [ + 1590, + 950 + ], + "size": { + "0": 280, + "1": 310 + }, + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": null + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": null + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": null + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 240 + }, + { + "name": "noise_seed", + "type": "INT", + "link": null, + "widget": { + "name": "noise_seed" + }, + "slot_index": 4 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 85, + 221 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "KSampler (IPA)", + "properties": { + "Node name for S&R": "KSamplerAdvanced" + }, + "widgets_values": [ + "disable", + 832063826114031, + "randomize", + 25, + 7.5, + "euler_ancestral", + "normal", + 0, + 10000, + "enable" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 82, + "type": "Anything Everywhere", + "pos": [ + 1202.3756843589795, + -653.2200405782187 + ], + "size": { + "0": 260.3999938964844, + "1": 30 + }, + "flags": {}, + "order": 37, + "mode": 0, + "inputs": [ + { + "name": "MODEL", + "type": "*", + "link": 210, + "color_on": "#B39DDB" + } + ], + "title": "Anything Everywhere - IPA Model", + "properties": { + "Node name for S&R": "Anything Everywhere", + "group_restricted": false, + "color_restricted": false + } + }, + { + "id": 66, + "type": "ImageScaleToTotalPixels", + "pos": [ + 1572.3756843589795, + -353.22004057821863 + ], + "size": { + "0": 210, + "1": 82 + }, + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 131 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 206 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "Scale Pose", + "properties": { + "Node name for S&R": "ImageScaleToTotalPixels" + }, + "widgets_values": [ + "nearest-exact", + 1 + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 85, + "type": "Anything Everywhere", + "pos": [ + 1802.3756843589795, + -353.22004057821863 + ], + "size": { + "0": 180, + "1": 30 + }, + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "IMAGE", + "type": "*", + "link": 206, + "color_on": "#64B5F6" + } + ], + "properties": { + "Node name for S&R": "Anything Everywhere", + "group_restricted": false, + "color_restricted": false + }, + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 89, + "type": "PrimitiveNode", + "pos": [ + 650, + 530 + ], + "size": { + "0": 210, + "1": 82 + }, + "flags": {}, + "order": 4, + "mode": 0, + "outputs": [ + { + "name": "FLOAT", + "type": "FLOAT", + "links": [ + 253 + ], + "widget": { + "name": "weight" + } + } + ], + "title": "IPA Weight", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + 0.75, + "fixed" + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 43, + "type": "CLIPSetLastLayer", + "pos": [ + 420, + -70 + ], + "size": { + "0": 210, + "1": 58 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 78 + } + ], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 254 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPSetLastLayer" + }, + "widgets_values": [ + -2 + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 92, + "type": "Anything Everywhere", + "pos": [ + 650, + -70 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "CLIP", + "type": "*", + "link": 254, + "color_on": "#FFD500" + } + ], + "properties": { + "Node name for S&R": "Anything Everywhere", + "group_restricted": false, + "color_restricted": false + } + }, + { + "id": 35, + "type": "CLIPTextEncodeSDXL", + "pos": [ + 532.3756843589794, + -653.2200405782187 + ], + "size": { + "0": 250.9872589111328, + "1": 218 + }, + "flags": { + "collapsed": false + }, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": null + }, + { + "name": "text_g", + "type": "STRING", + "link": 55, + "widget": { + "name": "text_g" + } + }, + { + "name": "text_l", + "type": "STRING", + "link": 60, + "widget": { + "name": "text_l" + }, + "slot_index": 2 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 160 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "SDXL Encode +ve Prompt", + "properties": { + "Node name for S&R": "CLIPTextEncodeSDXL" + }, + "widgets_values": [ + 1024, + 1024, + 0, + 0, + 1024, + 1024, + "CLIP_G", + "leads spread showing off vagina, lying on hotel bed" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 44, + "type": "FreeU_V2", + "pos": [ + 960, + -650 + ], + "size": { + "0": 210, + "1": 130 + }, + "flags": { + "collapsed": false + }, + "order": 33, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 217 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 103, + 210 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "FreeU_V2 (IPA)", + "properties": { + "Node name for S&R": "FreeU_V2" + }, + "widgets_values": [ + 1.39, + 1.22, + 1.05, + 0.25 + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 87, + "type": "IPAdapterApply", + "pos": [ + 10, + 440 + ], + "size": { + "0": 390, + "1": 254 + }, + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "ipadapter", + "type": "IPADAPTER", + "link": 212, + "slot_index": 0 + }, + { + "name": "clip_vision", + "type": "CLIP_VISION", + "link": 213 + }, + { + "name": "image", + "type": "IMAGE", + "link": 218 + }, + { + "name": "model", + "type": "MODEL", + "link": 216 + }, + { + "name": "attn_mask", + "type": "MASK", + "link": null + }, + { + "name": "weight", + "type": "FLOAT", + "link": 253, + "widget": { + "name": "weight" + }, + "slot_index": 5 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 217 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IPAdapterApply" + }, + "widgets_values": [ + 0.75, + 0.99, + "original", + 0, + 1, + false + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 10, + "type": "CLIPVisionLoader", + "pos": [ + 10, + 330 + ], + "size": { + "0": 392.2040100097656, + "1": 58 + }, + "flags": { + "collapsed": false, + "pinned": false + }, + "order": 5, + "mode": 0, + "outputs": [ + { + "name": "CLIP_VISION", + "type": "CLIP_VISION", + "links": [ + 213 + ], + "shape": 3 + } + ], + "title": "Load CLIP Vision (SD 1.5!)", + "properties": { + "Node name for S&R": "CLIPVisionLoader" + }, + "widgets_values": [ + "sd1.5/BEN_USE_THIS/model.safetensors" + ], + "color": "#323", + "bgcolor": "#535", + "shape": 4 + }, + { + "id": 8, + "type": "CheckpointLoaderSimple", + "pos": [ + 10, + 90 + ], + "size": { + "0": 394.2040100097656, + "1": 98 + }, + "flags": { + "pinned": false + }, + "order": 6, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 216 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 78 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 211, + 267 + ], + "shape": 3, + "slot_index": 2 + } + ], + "title": "Load SDXL Checkpoint", + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "RealVisXL_V3.0.safetensors" + ], + "color": "#323", + "bgcolor": "#535", + "shape": 4 + }, + { + "id": 71, + "type": "ControlNetLoader", + "pos": [ + 10, + 770 + ], + "size": { + "0": 390, + "1": 60 + }, + "flags": {}, + "order": 7, + "mode": 0, + "outputs": [ + { + "name": "CONTROL_NET", + "type": "CONTROL_NET", + "links": [ + 144 + ], + "shape": 3 + } + ], + "title": "Load SDXL Pose ControlNet", + "properties": { + "Node name for S&R": "ControlNetLoader" + }, + "widgets_values": [ + "sd1.5/thibaud_xl_openpose_256lora.safetensors" + ], + "color": "#323", + "bgcolor": "#535", + "shape": 4 + }, + { + "id": 77, + "type": "ControlNetLoader", + "pos": [ + 10, + 880 + ], + "size": { + "0": 390, + "1": 60 + }, + "flags": {}, + "order": 8, + "mode": 0, + "outputs": [ + { + "name": "CONTROL_NET", + "type": "CONTROL_NET", + "links": [ + 162 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "Load SDXL Depth ControlNet", + "properties": { + "Node name for S&R": "ControlNetLoader" + }, + "widgets_values": [ + "sd1.5/control-lora-depth-rank128.safetensors" + ], + "color": "#323", + "bgcolor": "#535", + "shape": 4 + }, + { + "id": 62, + "type": "LoadImage", + "pos": [ + 810, + 71 + ], + "size": { + "0": 382.38671875, + "1": 396.8207702636719 + }, + "flags": {}, + "order": 9, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 131, + 146 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": [], + "shape": 3, + "slot_index": 1 + } + ], + "title": "Load Pose Image", + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "0016-12_w400 (4).jpg", + "image" + ], + "color": "#233", + "bgcolor": "#355", + "shape": 4 + }, + { + "id": 97, + "type": "FaceRestoreCFWithModel", + "pos": [ + 3045, + 719 + ], + "size": { + "0": 315, + "1": 102 + }, + "flags": {}, + "order": 44, + "mode": 0, + "inputs": [ + { + "name": "facerestore_model", + "type": "FACERESTORE_MODEL", + "link": 259, + "slot_index": 0 + }, + { + "name": "image", + "type": "IMAGE", + "link": 260 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 261 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "FaceRestoreCFWithModel" + }, + "widgets_values": [ + "retinaface_resnet50", + 1 + ] + }, + { + "id": 5, + "type": "LoadImage", + "pos": [ + 418, + 70 + ], + "size": { + "0": 382.38671875, + "1": 396.8207702636719 + }, + "flags": {}, + "order": 10, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 129, + 262 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": [], + "shape": 3, + "slot_index": 1 + } + ], + "title": "Load Face Image", + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "Mia_face2 (16).png", + "image" + ], + "color": "#233", + "bgcolor": "#355", + "shape": 4 + }, + { + "id": 94, + "type": "ReActorFaceSwap", + "pos": [ + 2858, + 941 + ], + "size": { + "0": 315, + "1": 338 + }, + "flags": {}, + "order": 41, + "mode": 0, + "inputs": [ + { + "name": "source_image", + "type": "IMAGE", + "link": 262, + "slot_index": 0 + }, + { + "name": "input_image", + "type": "IMAGE", + "link": 265, + "slot_index": 1 + }, + { + "name": "face_model", + "type": "FACE_MODEL", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 258, + 260 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "FACE_MODEL", + "type": "FACE_MODEL", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ReActorFaceSwap" + }, + "widgets_values": [ + true, + "inswapper_128.onnx", + "retinaface_resnet50", + "codeformer.pth", + 0.1, + 0, + "female", + "female", + "0", + "0", + 1 + ] + }, + { + "id": 98, + "type": "FaceRestoreModelLoader", + "pos": [ + 2677, + 751 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 11, + "mode": 0, + "outputs": [ + { + "name": "FACERESTORE_MODEL", + "type": "FACERESTORE_MODEL", + "links": [ + 259 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "FaceRestoreModelLoader" + }, + "widgets_values": [ + "codeformer.pth" + ] + }, + { + "id": 39, + "type": "PrimitiveNode", + "pos": [ + 1210, + 350 + ], + "size": { + "0": 520, + "1": 120 + }, + "flags": {}, + "order": 12, + "mode": 0, + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 60 + ], + "widget": { + "name": "text_l" + } + } + ], + "title": "CLIP_L +ve Prompt", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + "leads spread showing off vagina, lying on hotel bed" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 99, + "type": "SaveImage", + "pos": [ + 3790, + 44 + ], + "size": { + "0": 330, + "1": 600 + }, + "flags": {}, + "order": 45, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 261 + } + ], + "properties": {}, + "widgets_values": [ + "%date:yyyy-MM-dd%/faceswapped" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 96, + "type": "PreviewImage", + "pos": [ + 3465, + 49 + ], + "size": { + "0": 315.7646484375, + "1": 599.7048950195312 + }, + "flags": {}, + "order": 43, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 258 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 100, + "type": "PreviewImage", + "pos": [ + 2849, + 43 + ], + "size": { + "0": 315.7646484375, + "1": 599.7048950195312 + }, + "flags": {}, + "order": 42, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 266, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 56, + "type": "VAEDecode", + "pos": [ + 2519, + 107 + ], + "size": { + "0": 140, + "1": 50 + }, + "flags": { + "collapsed": false + }, + "order": 40, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 116 + }, + { + "name": "vae", + "type": "VAE", + "link": 267, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 265, + 266 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + }, + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 55, + "type": "KSampler", + "pos": [ + 2295, + 186 + ], + "size": { + "0": 220, + "1": 234 + }, + "flags": {}, + "order": 39, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": null + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": null + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": null + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 222 + }, + { + "name": "seed", + "type": "INT", + "link": null, + "widget": { + "name": "seed" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 116 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 155099487343848, + "randomize", + 20, + 8, + "euler_ancestral", + "normal", + 0.54 + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 34, + "type": "SDXLPromptStyler", + "pos": [ + 1210, + 70 + ], + "size": { + "0": 520, + "1": 242 + }, + "flags": {}, + "order": 13, + "mode": 0, + "outputs": [ + { + "name": "text_positive", + "type": "STRING", + "links": [ + 55 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "text_negative", + "type": "STRING", + "links": [ + 61 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "SDXLPromptStyler" + }, + "widgets_values": [ + "leads spread showing off vagina, lying on hotel bed, (completely naked), perfect body, perfect legs, perfect vagina", + "deformed body, deformed legs, deformed vagina", + "base", + "No", + true, + true + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 47, + "type": "PreviewImage", + "pos": [ + 2389, + 878 + ], + "size": { + "0": 440, + "1": 310 + }, + "flags": {}, + "order": 38, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 87 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 3, + 19, + 0, + 2, + 0, + "INT" + ], + [ + 4, + 19, + 1, + 2, + 1, + "INT" + ], + [ + 30, + 18, + 0, + 19, + 0, + "IMAGE" + ], + [ + 55, + 34, + 0, + 35, + 1, + "STRING" + ], + [ + 60, + 39, + 0, + 35, + 2, + "STRING" + ], + [ + 61, + 34, + 1, + 1, + 1, + "STRING" + ], + [ + 78, + 8, + 1, + 43, + 0, + "CLIP" + ], + [ + 85, + 45, + 0, + 46, + 0, + "LATENT" + ], + [ + 87, + 46, + 0, + 47, + 0, + "IMAGE" + ], + [ + 103, + 44, + 0, + 50, + 0, + "MODEL" + ], + [ + 116, + 55, + 0, + 56, + 0, + "LATENT" + ], + [ + 129, + 5, + 0, + 65, + 0, + "IMAGE" + ], + [ + 131, + 62, + 0, + 66, + 0, + "IMAGE" + ], + [ + 143, + 64, + 0, + 67, + 3, + "IMAGE" + ], + [ + 144, + 71, + 0, + 67, + 2, + "CONTROL_NET" + ], + [ + 145, + 64, + 0, + 72, + 0, + "IMAGE" + ], + [ + 146, + 62, + 0, + 18, + 0, + "IMAGE" + ], + [ + 149, + 65, + 0, + 75, + 0, + "IMAGE" + ], + [ + 160, + 35, + 0, + 67, + 0, + "CONDITIONING" + ], + [ + 161, + 1, + 0, + 67, + 1, + "CONDITIONING" + ], + [ + 162, + 77, + 0, + 78, + 2, + "CONTROL_NET" + ], + [ + 164, + 67, + 0, + 78, + 0, + "CONDITIONING" + ], + [ + 165, + 67, + 1, + 78, + 1, + "CONDITIONING" + ], + [ + 166, + 78, + 0, + 76, + 0, + "*" + ], + [ + 167, + 78, + 1, + 76, + 1, + "*" + ], + [ + 175, + 7, + 0, + 46, + 1, + "VAE" + ], + [ + 176, + 7, + 0, + 3, + 1, + "VAE" + ], + [ + 177, + 7, + 0, + 56, + 1, + "VAE" + ], + [ + 178, + 78, + 0, + 55, + 1, + "CONDITIONING" + ], + [ + 179, + 78, + 1, + 55, + 2, + "CONDITIONING" + ], + [ + 180, + 78, + 0, + 45, + 1, + "CONDITIONING" + ], + [ + 181, + 78, + 1, + 45, + 2, + "CONDITIONING" + ], + [ + 182, + 73, + 0, + 45, + 4, + "INT" + ], + [ + 183, + 78, + 0, + 6, + 1, + "CONDITIONING" + ], + [ + 184, + 78, + 1, + 6, + 2, + "CONDITIONING" + ], + [ + 185, + 73, + 0, + 6, + 4, + "INT" + ], + [ + 192, + 7, + 0, + 56, + 1, + "VAE" + ], + [ + 193, + 78, + 0, + 6, + 1, + "CONDITIONING" + ], + [ + 194, + 78, + 1, + 6, + 2, + "CONDITIONING" + ], + [ + 195, + 73, + 0, + 6, + 4, + "INT" + ], + [ + 196, + 61, + 0, + 55, + 0, + "MODEL" + ], + [ + 197, + 78, + 0, + 55, + 1, + "CONDITIONING" + ], + [ + 198, + 78, + 1, + 55, + 2, + "CONDITIONING" + ], + [ + 199, + 61, + 0, + 45, + 0, + "MODEL" + ], + [ + 200, + 78, + 0, + 45, + 1, + "CONDITIONING" + ], + [ + 201, + 78, + 1, + 45, + 2, + "CONDITIONING" + ], + [ + 202, + 73, + 0, + 45, + 4, + "INT" + ], + [ + 203, + 7, + 0, + 46, + 1, + "VAE" + ], + [ + 204, + 7, + 0, + 3, + 1, + "VAE" + ], + [ + 206, + 66, + 0, + 85, + 0, + "*" + ], + [ + 207, + 84, + 0, + 78, + 3, + "IMAGE" + ], + [ + 208, + 84, + 0, + 80, + 0, + "IMAGE" + ], + [ + 210, + 44, + 0, + 82, + 0, + "*" + ], + [ + 211, + 8, + 2, + 74, + 0, + "*" + ], + [ + 212, + 88, + 0, + 87, + 0, + "IPADAPTER" + ], + [ + 213, + 10, + 0, + 87, + 1, + "CLIP_VISION" + ], + [ + 216, + 8, + 0, + 87, + 3, + "MODEL" + ], + [ + 217, + 87, + 0, + 44, + 0, + "MODEL" + ], + [ + 218, + 90, + 0, + 87, + 2, + "IMAGE" + ], + [ + 219, + 65, + 0, + 90, + 0, + "IMAGE" + ], + [ + 221, + 45, + 0, + 91, + 0, + "LATENT" + ], + [ + 222, + 91, + 0, + 55, + 3, + "LATENT" + ], + [ + 223, + 66, + 0, + 64, + 0, + "IMAGE" + ], + [ + 224, + 44, + 0, + 55, + 0, + "MODEL" + ], + [ + 225, + 78, + 0, + 55, + 1, + "CONDITIONING" + ], + [ + 226, + 78, + 1, + 55, + 2, + "CONDITIONING" + ], + [ + 227, + 73, + 0, + 55, + 4, + "INT" + ], + [ + 228, + 8, + 2, + 46, + 1, + "VAE" + ], + [ + 229, + 66, + 0, + 84, + 0, + "IMAGE" + ], + [ + 230, + 8, + 2, + 3, + 1, + "VAE" + ], + [ + 231, + 8, + 2, + 56, + 1, + "VAE" + ], + [ + 232, + 44, + 0, + 45, + 0, + "MODEL" + ], + [ + 233, + 78, + 0, + 45, + 1, + "CONDITIONING" + ], + [ + 234, + 78, + 1, + 45, + 2, + "CONDITIONING" + ], + [ + 235, + 73, + 0, + 45, + 4, + "INT" + ], + [ + 236, + 44, + 0, + 6, + 0, + "MODEL" + ], + [ + 237, + 78, + 0, + 6, + 1, + "CONDITIONING" + ], + [ + 238, + 78, + 1, + 6, + 2, + "CONDITIONING" + ], + [ + 239, + 73, + 0, + 6, + 4, + "INT" + ], + [ + 240, + 2, + 0, + 45, + 3, + "LATENT" + ], + [ + 241, + 66, + 0, + 64, + 0, + "IMAGE" + ], + [ + 242, + 44, + 0, + 55, + 0, + "MODEL" + ], + [ + 243, + 67, + 0, + 55, + 1, + "CONDITIONING" + ], + [ + 244, + 67, + 1, + 55, + 2, + "CONDITIONING" + ], + [ + 245, + 73, + 0, + 55, + 4, + "INT" + ], + [ + 246, + 66, + 0, + 84, + 0, + "IMAGE" + ], + [ + 247, + 8, + 2, + 56, + 1, + "VAE" + ], + [ + 248, + 44, + 0, + 45, + 0, + "MODEL" + ], + [ + 249, + 67, + 0, + 45, + 1, + "CONDITIONING" + ], + [ + 250, + 67, + 1, + 45, + 2, + "CONDITIONING" + ], + [ + 251, + 73, + 0, + 45, + 4, + "INT" + ], + [ + 252, + 8, + 2, + 46, + 1, + "VAE" + ], + [ + 253, + 89, + 0, + 87, + 5, + "FLOAT" + ], + [ + 254, + 43, + 0, + 92, + 0, + "*" + ], + [ + 258, + 94, + 0, + 96, + 0, + "IMAGE" + ], + [ + 259, + 98, + 0, + 97, + 0, + "FACERESTORE_MODEL" + ], + [ + 260, + 94, + 0, + 97, + 1, + "IMAGE" + ], + [ + 261, + 97, + 0, + 99, + 0, + "IMAGE" + ], + [ + 262, + 5, + 0, + 94, + 0, + "IMAGE" + ], + [ + 265, + 56, + 0, + 94, + 1, + "IMAGE" + ], + [ + 266, + 56, + 0, + 100, + 0, + "IMAGE" + ], + [ + 267, + 8, + 2, + 56, + 1, + "VAE" + ] + ], + "groups": [ + { + "title": "Stuff", + "bounding": [ + 520, + -861, + 1667, + 614 + ], + "color": "#444", + "font_size": 24 + }, + { + "title": "Main", + "bounding": [ + 4, + 3, + 1894, + 1288 + ], + "color": "#8A8", + "font_size": 24 + }, + { + "title": "Final Upscaled Render & Save", + "bounding": [ + 2005, + 3, + 1320, + 508 + ], + "color": "#3f789e", + "font_size": 24 + } + ], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/comfyUI_flows/Repose_w__FaceSwap.json b/comfyUI_flows/Repose_w__FaceSwap.json new file mode 100644 index 00000000000..f41334107d5 --- /dev/null +++ b/comfyUI_flows/Repose_w__FaceSwap.json @@ -0,0 +1,786 @@ +{ + "last_node_id": 24, + "last_link_id": 37, + "nodes": [ + { + "id": 11, + "type": "VAEDecode", + "pos": [ + 1300, + 170 + ], + "size": { + "0": 140, + "1": 50 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 11 + }, + { + "name": "vae", + "type": "VAE", + "link": 25 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 24, + 35 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 9, + "type": "KSampler", + "pos": [ + 930, + 170 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 7 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 8 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 9 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 10 + }, + { + "name": "seed", + "type": "INT", + "link": 26, + "widget": { + "name": "seed" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 11 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 0, + "fixed", + 25, + 6, + "dpmpp_2m_sde_gpu", + "karras", + 1 + ] + }, + { + "id": 10, + "type": "EmptyLatentImage", + "pos": [ + 650, + 590 + ], + "size": { + "0": 210, + "1": 110 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 10 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 5, + "type": "IPAdapterApply", + "pos": [ + 650, + 60 + ], + "size": { + "0": 210, + "1": 258 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "ipadapter", + "type": "IPADAPTER", + "link": 1 + }, + { + "name": "clip_vision", + "type": "CLIP_VISION", + "link": 2 + }, + { + "name": "image", + "type": "IMAGE", + "link": 27 + }, + { + "name": "model", + "type": "MODEL", + "link": 4 + }, + { + "name": "attn_mask", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 7 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IPAdapterApply" + }, + "widgets_values": [ + 0.8, + 0, + "original", + 0, + 1, + false + ] + }, + { + "id": 3, + "type": "IPAdapterModelLoader", + "pos": [ + 288, + 16 + ], + "size": { + "0": 300, + "1": 60 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "IPADAPTER", + "type": "IPADAPTER", + "links": [ + 1 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IPAdapterModelLoader" + }, + "widgets_values": [ + "ip-adapter-plus-face_sdxl_vit-h.safetensors" + ] + }, + { + "id": 21, + "type": "PreviewImage", + "pos": [ + 1703.1146340762623, + 1178.594882760143 + ], + "size": { + "0": 330, + "1": 600 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 30 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 6, + "type": "LoadImage", + "pos": [ + 40, + 59 + ], + "size": { + "0": 220, + "1": 320 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 27, + 34 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "Mia_face (28).png", + "image" + ] + }, + { + "id": 4, + "type": "CLIPVisionLoader", + "pos": [ + 290, + 170 + ], + "size": { + "0": 300, + "1": 60 + }, + "flags": {}, + "order": 3, + "mode": 0, + "outputs": [ + { + "name": "CLIP_VISION", + "type": "CLIP_VISION", + "links": [ + 2 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPVisionLoader" + }, + "widgets_values": [ + "sd1.5/BEN_USE_THIS/model.safetensors" + ] + }, + { + "id": 8, + "type": "CLIPTextEncode", + "pos": [ + 650, + 420 + ], + "size": { + "0": 210, + "1": 120 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 6 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 9 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "((deformed face)), ((disfigured eyes)), ((disfigured body)), ((disfigured hands)),\nglasses\n" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 15, + "type": "PreviewImage", + "pos": [ + 1369, + 380 + ], + "size": { + "0": 355.9101867675781, + "1": 420.1305236816406 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 24 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 1, + "type": "CheckpointLoaderSimple", + "pos": [ + 290, + 280 + ], + "size": { + "0": 300, + "1": 100 + }, + "flags": {}, + "order": 4, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 4 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 5, + 6 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 25 + ], + "shape": 3, + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "RealVisXL_V4.0.safetensors" + ] + }, + { + "id": 17, + "type": "Seed (rgthree)", + "pos": [ + 1002, + 511 + ], + "size": { + "0": 210, + "1": 130 + }, + "flags": {}, + "order": 5, + "mode": 0, + "outputs": [ + { + "name": "SEED", + "type": "INT", + "links": [ + 26 + ], + "shape": 3, + "slot_index": 0, + "dir": 4 + } + ], + "properties": { + "Node name for S&R": "Seed (rgthree)" + }, + "widgets_values": [ + 15, + null, + null, + null + ] + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 650, + 250 + ], + "size": { + "0": 210, + "1": 120 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 8 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "\"Sitting on the windowsill, she gazes out at the city lights, her bare breasts illuminated by the moonlight.\"" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 24, + "type": "SaveImage", + "pos": [ + 2454, + 1153 + ], + "size": { + "0": 330, + "1": 600 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 37, + "slot_index": 0 + } + ], + "properties": {}, + "widgets_values": [ + "mia/mia" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 18, + "type": "ReActorFaceSwap", + "pos": [ + 1289, + 1063 + ], + "size": { + "0": 315, + "1": 338 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "source_image", + "type": "IMAGE", + "link": 34, + "slot_index": 0 + }, + { + "name": "input_image", + "type": "IMAGE", + "link": 35, + "slot_index": 1 + }, + { + "name": "face_model", + "type": "FACE_MODEL", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 30, + 37 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "FACE_MODEL", + "type": "FACE_MODEL", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ReActorFaceSwap" + }, + "widgets_values": [ + true, + "inswapper_128.onnx", + "retinaface_resnet50", + "GFPGANv1.4.pth", + 1, + 1, + "female", + "female", + "0", + "0", + 1 + ] + } + ], + "links": [ + [ + 1, + 3, + 0, + 5, + 0, + "IPADAPTER" + ], + [ + 2, + 4, + 0, + 5, + 1, + "CLIP_VISION" + ], + [ + 4, + 1, + 0, + 5, + 3, + "MODEL" + ], + [ + 5, + 1, + 1, + 7, + 0, + "CLIP" + ], + [ + 6, + 1, + 1, + 8, + 0, + "CLIP" + ], + [ + 7, + 5, + 0, + 9, + 0, + "MODEL" + ], + [ + 8, + 7, + 0, + 9, + 1, + "CONDITIONING" + ], + [ + 9, + 8, + 0, + 9, + 2, + "CONDITIONING" + ], + [ + 10, + 10, + 0, + 9, + 3, + "LATENT" + ], + [ + 11, + 9, + 0, + 11, + 0, + "LATENT" + ], + [ + 24, + 11, + 0, + 15, + 0, + "IMAGE" + ], + [ + 25, + 1, + 2, + 11, + 1, + "VAE" + ], + [ + 26, + 17, + 0, + 9, + 4, + "INT" + ], + [ + 27, + 6, + 0, + 5, + 2, + "IMAGE" + ], + [ + 30, + 18, + 0, + 21, + 0, + "IMAGE" + ], + [ + 34, + 6, + 0, + 18, + 0, + "IMAGE" + ], + [ + 35, + 11, + 0, + 18, + 1, + "IMAGE" + ], + [ + 37, + 18, + 0, + 24, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/comfyUI_flows/Reposer_upscale_faceswap.json b/comfyUI_flows/Reposer_upscale_faceswap.json new file mode 100644 index 00000000000..ddbe5e2d417 --- /dev/null +++ b/comfyUI_flows/Reposer_upscale_faceswap.json @@ -0,0 +1,961 @@ +{ + "last_node_id": 28, + "last_link_id": 48, + "nodes": [ + { + "id": 10, + "type": "EmptyLatentImage", + "pos": [ + 650, + 590 + ], + "size": { + "0": 210, + "1": 110 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 10 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 5, + "type": "IPAdapterApply", + "pos": [ + 650, + 60 + ], + "size": { + "0": 210, + "1": 258 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "ipadapter", + "type": "IPADAPTER", + "link": 1 + }, + { + "name": "clip_vision", + "type": "CLIP_VISION", + "link": 2 + }, + { + "name": "image", + "type": "IMAGE", + "link": 27 + }, + { + "name": "model", + "type": "MODEL", + "link": 4 + }, + { + "name": "attn_mask", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 7 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IPAdapterApply" + }, + "widgets_values": [ + 0.8, + 0, + "original", + 0, + 1, + false + ] + }, + { + "id": 3, + "type": "IPAdapterModelLoader", + "pos": [ + 288, + 16 + ], + "size": { + "0": 300, + "1": 60 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "IPADAPTER", + "type": "IPADAPTER", + "links": [ + 1 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IPAdapterModelLoader" + }, + "widgets_values": [ + "ip-adapter-plus-face_sdxl_vit-h.safetensors" + ] + }, + { + "id": 21, + "type": "PreviewImage", + "pos": [ + 1703.1146340762623, + 1178.594882760143 + ], + "size": { + "0": 330, + "1": 600 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 30 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 6, + "type": "LoadImage", + "pos": [ + 40, + 59 + ], + "size": { + "0": 220, + "1": 320 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 27, + 34 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "Mia_face (28).png", + "image" + ] + }, + { + "id": 4, + "type": "CLIPVisionLoader", + "pos": [ + 290, + 170 + ], + "size": { + "0": 300, + "1": 60 + }, + "flags": {}, + "order": 3, + "mode": 0, + "outputs": [ + { + "name": "CLIP_VISION", + "type": "CLIP_VISION", + "links": [ + 2 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPVisionLoader" + }, + "widgets_values": [ + "sd1.5/BEN_USE_THIS/model.safetensors" + ] + }, + { + "id": 8, + "type": "CLIPTextEncode", + "pos": [ + 650, + 420 + ], + "size": { + "0": 210, + "1": 120 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 6 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 9, + 47 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "((deformed face)), ((disfigured eyes)), ((disfigured body)), ((disfigured hands)),\nglasses\n" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 650, + 250 + ], + "size": { + "0": 210, + "1": 120 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 8, + 46 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "\"Sitting on the windowsill, she gazes out at the city lights, her bare breasts illuminated by the moonlight.\"" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 24, + "type": "SaveImage", + "pos": [ + 2454, + 1153 + ], + "size": { + "0": 330, + "1": 600 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 37, + "slot_index": 0 + } + ], + "properties": {}, + "widgets_values": [ + "mia/mia" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 9, + "type": "KSampler", + "pos": [ + 930, + 170 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 7 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 8 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 9 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 10 + }, + { + "name": "seed", + "type": "INT", + "link": 26, + "widget": { + "name": "seed" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 42 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 0, + "fixed", + 25, + 6, + "dpmpp_2m_sde_gpu", + "karras", + 1 + ] + }, + { + "id": 27, + "type": "NNLatentUpscale", + "pos": [ + 1505, + 209 + ], + "size": { + "0": 210, + "1": 82 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "latent", + "type": "LATENT", + "link": 42 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 38 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "NNLatentUpscale" + }, + "widgets_values": [ + "SDXL", + 1.5 + ], + "color": "#9129a5", + "bgcolor": "#7d1591" + }, + { + "id": 26, + "type": "VAEDecode", + "pos": [ + 1331, + 384 + ], + "size": { + "0": 140, + "1": 50 + }, + "flags": { + "collapsed": false + }, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 39 + }, + { + "name": "vae", + "type": "VAE", + "link": 43, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 41, + 44 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + }, + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 28, + "type": "PreviewImage", + "pos": [ + 2070, + 403 + ], + "size": { + "0": 315.7646484375, + "1": 599.7048950195312 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 41, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 18, + "type": "ReActorFaceSwap", + "pos": [ + 1289, + 1063 + ], + "size": { + "0": 315, + "1": 338 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "source_image", + "type": "IMAGE", + "link": 34, + "slot_index": 0 + }, + { + "name": "input_image", + "type": "IMAGE", + "link": 44, + "slot_index": 1 + }, + { + "name": "face_model", + "type": "FACE_MODEL", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 30, + 37 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "FACE_MODEL", + "type": "FACE_MODEL", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ReActorFaceSwap" + }, + "widgets_values": [ + true, + "inswapper_128.onnx", + "retinaface_resnet50", + "GFPGANv1.4.pth", + 1, + 1, + "female", + "female", + "0", + "0", + 1 + ] + }, + { + "id": 1, + "type": "CheckpointLoaderSimple", + "pos": [ + 290, + 280 + ], + "size": { + "0": 300, + "1": 100 + }, + "flags": {}, + "order": 4, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 4, + 45 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 5, + 6 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 43 + ], + "shape": 3, + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "RealVisXL_V4.0.safetensors" + ] + }, + { + "id": 25, + "type": "KSampler", + "pos": [ + 1768, + 210 + ], + "size": { + "0": 220, + "1": 234 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 45 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 46, + "slot_index": 1 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 47, + "slot_index": 2 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 38 + }, + { + "name": "seed", + "type": "INT", + "link": 48, + "widget": { + "name": "seed" + }, + "slot_index": 4 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 39 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 129834215634327, + "randomize", + 20, + 8, + "euler_ancestral", + "normal", + 0.54 + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 17, + "type": "Seed (rgthree)", + "pos": [ + 1002, + 511 + ], + "size": { + "0": 210, + "1": 130 + }, + "flags": {}, + "order": 5, + "mode": 0, + "outputs": [ + { + "name": "SEED", + "type": "INT", + "links": [ + 26, + 48 + ], + "shape": 3, + "slot_index": 0, + "dir": 4 + } + ], + "properties": { + "Node name for S&R": "Seed (rgthree)" + }, + "widgets_values": [ + -1, + null, + null, + null + ] + } + ], + "links": [ + [ + 1, + 3, + 0, + 5, + 0, + "IPADAPTER" + ], + [ + 2, + 4, + 0, + 5, + 1, + "CLIP_VISION" + ], + [ + 4, + 1, + 0, + 5, + 3, + "MODEL" + ], + [ + 5, + 1, + 1, + 7, + 0, + "CLIP" + ], + [ + 6, + 1, + 1, + 8, + 0, + "CLIP" + ], + [ + 7, + 5, + 0, + 9, + 0, + "MODEL" + ], + [ + 8, + 7, + 0, + 9, + 1, + "CONDITIONING" + ], + [ + 9, + 8, + 0, + 9, + 2, + "CONDITIONING" + ], + [ + 10, + 10, + 0, + 9, + 3, + "LATENT" + ], + [ + 26, + 17, + 0, + 9, + 4, + "INT" + ], + [ + 27, + 6, + 0, + 5, + 2, + "IMAGE" + ], + [ + 30, + 18, + 0, + 21, + 0, + "IMAGE" + ], + [ + 34, + 6, + 0, + 18, + 0, + "IMAGE" + ], + [ + 37, + 18, + 0, + 24, + 0, + "IMAGE" + ], + [ + 38, + 27, + 0, + 25, + 3, + "LATENT" + ], + [ + 39, + 25, + 0, + 26, + 0, + "LATENT" + ], + [ + 41, + 26, + 0, + 28, + 0, + "IMAGE" + ], + [ + 42, + 9, + 0, + 27, + 0, + "LATENT" + ], + [ + 43, + 1, + 2, + 26, + 1, + "VAE" + ], + [ + 44, + 26, + 0, + 18, + 1, + "IMAGE" + ], + [ + 45, + 1, + 0, + 25, + 0, + "MODEL" + ], + [ + 46, + 7, + 0, + 25, + 1, + "CONDITIONING" + ], + [ + 47, + 8, + 0, + 25, + 2, + "CONDITIONING" + ], + [ + 48, + 17, + 0, + 25, + 4, + "INT" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/comfyUI_flows/batch_faceswap.json b/comfyUI_flows/batch_faceswap.json new file mode 100644 index 00000000000..448a3936b67 --- /dev/null +++ b/comfyUI_flows/batch_faceswap.json @@ -0,0 +1,351 @@ +{ + "last_node_id": 19, + "last_link_id": 24, + "nodes": [ + { + "id": 11, + "type": "FaceRestoreCFWithModel", + "pos": [ + 1164, + 162 + ], + "size": { + "0": 315, + "1": 102 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "facerestore_model", + "type": "FACERESTORE_MODEL", + "link": 18, + "slot_index": 0 + }, + { + "name": "image", + "type": "IMAGE", + "link": 16 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 24 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "FaceRestoreCFWithModel" + }, + "widgets_values": [ + "retinaface_resnet50", + 1 + ] + }, + { + "id": 4, + "type": "PreviewImage", + "pos": [ + 782, + 275 + ], + "size": { + "0": 330, + "1": 600 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 3 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 2, + "type": "LoadImage", + "pos": [ + 18, + 49 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 1 + ], + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "Mia_face (23).png", + "image" + ] + }, + { + "id": 1, + "type": "ReActorFaceSwap", + "pos": [ + 402, + 181 + ], + "size": { + "0": 315, + "1": 338 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "source_image", + "type": "IMAGE", + "link": 1, + "slot_index": 0 + }, + { + "name": "input_image", + "type": "IMAGE", + "link": 23, + "slot_index": 1 + }, + { + "name": "face_model", + "type": "FACE_MODEL", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 3, + 16 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "FACE_MODEL", + "type": "FACE_MODEL", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ReActorFaceSwap" + }, + "widgets_values": [ + false, + "inswapper_128.onnx", + "retinaface_resnet50", + "GFPGANv1.4.pth", + 1, + 1, + "no", + "no", + "0", + "0", + 1 + ] + }, + { + "id": 18, + "type": "Load Image Batch", + "pos": [ + 12, + 611 + ], + "size": { + "0": 315, + "1": 222 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 23 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "filename_text", + "type": "STRING", + "links": null, + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "Load Image Batch", + "ttNbgOverride": { + "color": "#223", + "bgcolor": "#335", + "groupcolor": "#88A" + } + }, + "widgets_values": [ + "incremental_image", + 0, + "Batch 001", + "/home/mclean/Pictures/characters/Mia/nsfw", + "*", + "false", + "true" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 19, + "type": "SaveImage", + "pos": [ + 1561, + 281 + ], + "size": { + "0": 735.552734375, + "1": 823.98193359375 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 24, + "slot_index": 0 + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 13, + "type": "FaceRestoreModelLoader", + "pos": [ + 785, + 37 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "FACERESTORE_MODEL", + "type": "FACERESTORE_MODEL", + "links": [ + 18 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "FaceRestoreModelLoader" + }, + "widgets_values": [ + "codeformer.pth" + ] + } + ], + "links": [ + [ + 1, + 2, + 0, + 1, + 0, + "IMAGE" + ], + [ + 3, + 1, + 0, + 4, + 0, + "IMAGE" + ], + [ + 16, + 1, + 0, + 11, + 1, + "IMAGE" + ], + [ + 18, + 13, + 0, + 11, + 0, + "FACERESTORE_MODEL" + ], + [ + 23, + 18, + 0, + 1, + 1, + "IMAGE" + ], + [ + 24, + 11, + 0, + 19, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/comfyUI_flows/esrgan_example.png b/comfyUI_flows/esrgan_example.png new file mode 100644 index 00000000000..148db979f80 Binary files /dev/null and b/comfyUI_flows/esrgan_example.png differ diff --git a/comfyUI_flows/gistfile1.json b/comfyUI_flows/gistfile1.json new file mode 100644 index 00000000000..231aa75ebae --- /dev/null +++ b/comfyUI_flows/gistfile1.json @@ -0,0 +1,1366 @@ +{ + "last_node_id": 80, + "last_link_id": 148, + "nodes": [ + { + "id": 69, + "type": "PreviewImage", + "pos": [ + -1677.5810528564452, + -504.65276855468744 + ], + "size": [ + 210, + 246 + ], + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 125 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 60, + "type": "VAEDecode", + "pos": [ + -2013, + -468 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 104 + }, + { + "name": "vae", + "type": "VAE", + "link": 105, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 125 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 49, + "type": "LoadImage", + "pos": [ + -3218, + -1012 + ], + "size": [ + 315, + 314.00000762939453 + ], + "flags": { + "collapsed": false + }, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 88 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "sunset-863455_1280 (13).jpg", + "image" + ] + }, + { + "id": 53, + "type": "CheckpointLoaderSimple", + "pos": [ + -3269, + -1149 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": { + "collapsed": true + }, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 91, + 100 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 92, + 94 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "dreamshaper_8.safetensors" + ] + }, + { + "id": 50, + "type": "VAEEncode", + "pos": [ + -2849, + -1008 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": { + "collapsed": true + }, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 88 + }, + { + "name": "vae", + "type": "VAE", + "link": 89 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 90 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEEncode" + } + }, + { + "id": 51, + "type": "VAELoader", + "pos": [ + -3240, + -1104 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": { + "collapsed": true + }, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 89, + 97, + 105, + 113, + 122, + 141, + 146 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAELoader" + }, + "widgets_values": [ + "vae-ft-mse-840000-ema-pruned.safetensors" + ] + }, + { + "id": 54, + "type": "CLIPTextEncode", + "pos": [ + -3045, + -1358 + ], + "size": { + "0": 400, + "1": 200 + }, + "flags": { + "collapsed": true + }, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 92 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 93, + 102, + 116, + 134 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "" + ] + }, + { + "id": 55, + "type": "CLIPTextEncode", + "pos": [ + -3041, + -1259 + ], + "size": { + "0": 400, + "1": 200 + }, + "flags": { + "collapsed": true + }, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 94, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 95, + 103, + 117, + 135 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "" + ] + }, + { + "id": 52, + "type": "BNK_Unsampler", + "pos": [ + -2529, + -1100 + ], + "size": { + "0": 315, + "1": 238 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 91 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 93 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 95 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 90 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 96, + 126 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "BNK_Unsampler" + }, + "widgets_values": [ + 30, + 0, + 1, + "dpmpp_2m", + "karras", + "disable" + ] + }, + { + "id": 56, + "type": "VAEDecode", + "pos": [ + -2535, + -792 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": { + "collapsed": true + }, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 96 + }, + { + "name": "vae", + "type": "VAE", + "link": 97, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 98 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 57, + "type": "PreviewImage", + "pos": [ + -2380, + -805 + ], + "size": [ + 252, + 247.64081357424163 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 98 + } + ], + "title": "Noise that recreates the image", + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 64, + "type": "PreviewImage", + "pos": [ + -311, + -930 + ], + "size": [ + 210, + 246 + ], + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 114 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 63, + "type": "VAEDecode", + "pos": [ + -718, + -843 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 119, + "slot_index": 0 + }, + { + "name": "vae", + "type": "VAE", + "link": 113, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 114 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 65, + "type": "KSamplerAdvanced", + "pos": [ + -1240, + -1177 + ], + "size": { + "0": 315, + "1": 546 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 115 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 116, + "slot_index": 1 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 117, + "slot_index": 2 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 130, + "slot_index": 3 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 119 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "Alteration of the image via Start-End", + "properties": { + "Node name for S&R": "KSamplerAdvanced" + }, + "widgets_values": [ + "enable", + 981784507977446, + "fixed", + 30, + 4, + "dpmpp_2m", + "karras", + 5, + 30, + "disable" + ] + }, + { + "id": 59, + "type": "Reroute", + "pos": [ + -1713, + -1229 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 100 + } + ], + "outputs": [ + { + "name": "", + "type": "MODEL", + "links": [ + 101, + 115, + 133 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 58, + "type": "KSamplerAdvanced", + "pos": [ + -2017, + -1132 + ], + "size": [ + 315, + 546 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 101 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 102, + "slot_index": 1 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 103, + "slot_index": 2 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 126 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 104, + 130, + 137 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "Recreation test", + "properties": { + "Node name for S&R": "KSamplerAdvanced" + }, + "widgets_values": [ + "disable", + 981784507977446, + "fixed", + 30, + 1, + "dpmpp_2m", + "karras", + 0, + 30, + "disable" + ] + }, + { + "id": 68, + "type": "VAEEncode", + "pos": [ + -2422, + -73 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 148 + }, + { + "name": "vae", + "type": "VAE", + "link": 122, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 138 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEEncode" + } + }, + { + "id": 76, + "type": "PreviewImage", + "pos": [ + -1783, + 104 + ], + "size": [ + 210, + 246 + ], + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 140 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 75, + "type": "VAEDecode", + "pos": [ + -2140, + 141 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 139 + }, + { + "name": "vae", + "type": "VAE", + "link": 141, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 140 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 74, + "type": "LatentBlend", + "pos": [ + -2077, + -66 + ], + "size": { + "0": 315, + "1": 78 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "samples1", + "type": "LATENT", + "link": 137 + }, + { + "name": "samples2", + "type": "LATENT", + "link": 138 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 139, + 144 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LatentBlend" + }, + "widgets_values": [ + 0.41000000000000003 + ] + }, + { + "id": 78, + "type": "VAEDecode", + "pos": [ + -828.6116075071257, + -468.4639102307685 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 145 + }, + { + "name": "vae", + "type": "VAE", + "link": 146, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 147 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 80, + "type": "JDC_RandNoise", + "pos": [ + -3076.0836814556515, + -148.49767214545727 + ], + "size": { + "0": 315, + "1": 322 + }, + "flags": {}, + "order": 3, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 148 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "JDC_RandNoise" + }, + "widgets_values": [ + 512, + 512, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 30386913369514, + "randomize" + ] + }, + { + "id": 79, + "type": "PreviewImage", + "pos": [ + -821, + -290 + ], + "size": [ + 210, + 246 + ], + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 147 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 72, + "type": "KSamplerAdvanced", + "pos": [ + -1249, + -491 + ], + "size": { + "0": 315, + "1": 546 + }, + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 133, + "slot_index": 0 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 134, + "slot_index": 1 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 135, + "slot_index": 2 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 144, + "slot_index": 3 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 145 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "Alteration of the image via Start-End + Noise", + "properties": { + "Node name for S&R": "KSamplerAdvanced" + }, + "widgets_values": [ + "enable", + 981784507977446, + "fixed", + 30, + 7, + "dpmpp_2m", + "karras", + 10, + 30, + "disable" + ] + } + ], + "links": [ + [ + 88, + 49, + 0, + 50, + 0, + "IMAGE" + ], + [ + 89, + 51, + 0, + 50, + 1, + "VAE" + ], + [ + 90, + 50, + 0, + 52, + 3, + "LATENT" + ], + [ + 91, + 53, + 0, + 52, + 0, + "MODEL" + ], + [ + 92, + 53, + 1, + 54, + 0, + "CLIP" + ], + [ + 93, + 54, + 0, + 52, + 1, + "CONDITIONING" + ], + [ + 94, + 53, + 1, + 55, + 0, + "CLIP" + ], + [ + 95, + 55, + 0, + 52, + 2, + "CONDITIONING" + ], + [ + 96, + 52, + 0, + 56, + 0, + "LATENT" + ], + [ + 97, + 51, + 0, + 56, + 1, + "VAE" + ], + [ + 98, + 56, + 0, + 57, + 0, + "IMAGE" + ], + [ + 100, + 53, + 0, + 59, + 0, + "*" + ], + [ + 101, + 59, + 0, + 58, + 0, + "MODEL" + ], + [ + 102, + 54, + 0, + 58, + 1, + "CONDITIONING" + ], + [ + 103, + 55, + 0, + 58, + 2, + "CONDITIONING" + ], + [ + 104, + 58, + 0, + 60, + 0, + "LATENT" + ], + [ + 105, + 51, + 0, + 60, + 1, + "VAE" + ], + [ + 113, + 51, + 0, + 63, + 1, + "VAE" + ], + [ + 114, + 63, + 0, + 64, + 0, + "IMAGE" + ], + [ + 115, + 59, + 0, + 65, + 0, + "MODEL" + ], + [ + 116, + 54, + 0, + 65, + 1, + "CONDITIONING" + ], + [ + 117, + 55, + 0, + 65, + 2, + "CONDITIONING" + ], + [ + 119, + 65, + 0, + 63, + 0, + "LATENT" + ], + [ + 122, + 51, + 0, + 68, + 1, + "VAE" + ], + [ + 125, + 60, + 0, + 69, + 0, + "IMAGE" + ], + [ + 126, + 52, + 0, + 58, + 3, + "LATENT" + ], + [ + 130, + 58, + 0, + 65, + 3, + "LATENT" + ], + [ + 133, + 59, + 0, + 72, + 0, + "MODEL" + ], + [ + 134, + 54, + 0, + 72, + 1, + "CONDITIONING" + ], + [ + 135, + 55, + 0, + 72, + 2, + "CONDITIONING" + ], + [ + 137, + 58, + 0, + 74, + 0, + "LATENT" + ], + [ + 138, + 68, + 0, + 74, + 1, + "LATENT" + ], + [ + 139, + 74, + 0, + 75, + 0, + "LATENT" + ], + [ + 140, + 75, + 0, + 76, + 0, + "IMAGE" + ], + [ + 141, + 51, + 0, + 75, + 1, + "VAE" + ], + [ + 144, + 74, + 0, + 72, + 3, + "LATENT" + ], + [ + 145, + 72, + 0, + 78, + 0, + "LATENT" + ], + [ + 146, + 51, + 0, + 78, + 1, + "VAE" + ], + [ + 147, + 78, + 0, + 79, + 0, + "IMAGE" + ], + [ + 148, + 80, + 0, + 68, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/comfyUI_flows/img2img_workflow.png b/comfyUI_flows/img2img_workflow.png new file mode 100644 index 00000000000..770f585e8cb Binary files /dev/null and b/comfyUI_flows/img2img_workflow.png differ diff --git a/comfyUI_flows/inpaint_example.png b/comfyUI_flows/inpaint_example.png new file mode 100644 index 00000000000..8116eff4533 Binary files /dev/null and b/comfyUI_flows/inpaint_example.png differ diff --git a/comfyUI_flows/inpainting controlnet workflow.json b/comfyUI_flows/inpainting controlnet workflow.json new file mode 100644 index 00000000000..f2e6d52e66e --- /dev/null +++ b/comfyUI_flows/inpainting controlnet workflow.json @@ -0,0 +1,2401 @@ +{ + "last_node_id": 149, + "last_link_id": 425, + "nodes": [ + { + "id": 44, + "type": "VAELoader", + "pos": [ + 3157, + -39 + ], + "size": [ + 346.82276516906677, + 58 + ], + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 208, + 291 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAELoader" + }, + "widgets_values": [ + "sdxl_vae.safetensors" + ] + }, + { + "id": 110, + "type": "PrimitiveNode", + "pos": [ + 2668, + -151 + ], + "size": [ + 317.77525953308077, + 132.77034094116163 + ], + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 301, + 302 + ], + "slot_index": 0, + "widget": { + "name": "text", + "config": [ + "STRING", + { + "multiline": true + } + ] + } + } + ], + "title": "Negative Prompt", + "properties": {}, + "widgets_values": [ + "terrible quality, bad anatomy" + ] + }, + { + "id": 18, + "type": "CheckpointLoaderSimple", + "pos": [ + 2669, + -446 + ], + "size": [ + 317.6700146157832, + 98 + ], + "flags": { + "collapsed": false + }, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 309, + 392 + ], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 297, + 298 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [], + "slot_index": 2 + } + ], + "title": "Load Refiner", + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "sd_xl_refiner_1.0.safetensors" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 107, + "type": "CLIPTextEncodeSDXLRefiner", + "pos": [ + 3161, + -362 + ], + "size": [ + 344.3999938964844, + 126 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 297 + }, + { + "name": "text", + "type": "STRING", + "link": 300, + "widget": { + "name": "text", + "config": [ + "STRING", + { + "multiline": true + } + ] + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 310, + 367 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "CLIPTextEncodeSDXLRefiner Positive Prompt", + "properties": { + "Node name for S&R": "CLIPTextEncodeSDXLRefiner" + }, + "widgets_values": [ + 6, + 1024, + 1024, + "a photograph of a black wrestler speaking on a microphone in an interview" + ] + }, + { + "id": 108, + "type": "CLIPTextEncodeSDXLRefiner", + "pos": [ + 3160, + -200 + ], + "size": [ + 344.3999938964844, + 126 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 298 + }, + { + "name": "text", + "type": "STRING", + "link": 302, + "widget": { + "name": "text", + "config": [ + "STRING", + { + "multiline": true + } + ] + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 311, + 368 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "CLIPTextEncodeSDXLRefiner Negative Prompt", + "properties": { + "Node name for S&R": "CLIPTextEncodeSDXLRefiner" + }, + "widgets_values": [ + 2.5, + 1024, + 1024, + "terrible quality, bad anatomy" + ] + }, + { + "id": 4, + "type": "CheckpointLoaderSimple", + "pos": [ + 2670, + -577 + ], + "size": [ + 314.88055359924283, + 98 + ], + "flags": {}, + "order": 3, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 369 + ], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 199, + 200 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [], + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "sd_xl_base_1.0.safetensors" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 71, + "type": "CLIPTextEncode", + "pos": [ + 3157, + -542 + ], + "size": [ + 345.9279609374994, + 54 + ], + "flags": { + "collapsed": false + }, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 199 + }, + { + "name": "text", + "type": "STRING", + "link": 299, + "widget": { + "name": "text", + "config": [ + "STRING", + { + "multiline": true + } + ] + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 372 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "CLIP Text Encode (Positive Prompt)", + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "a photograph of a black wrestler speaking on a microphone in an interview" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 72, + "type": "CLIPTextEncode", + "pos": [ + 3158, + -451 + ], + "size": [ + 344.9279609374994, + 54 + ], + "flags": { + "collapsed": false + }, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 200 + }, + { + "name": "text", + "type": "STRING", + "link": 301, + "widget": { + "name": "text", + "config": [ + "STRING", + { + "multiline": true + } + ] + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 373 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "CLIP Text Encode (Negative Prompt)", + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "terrible quality, bad anatomy" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 34, + "type": "PrimitiveNode", + "pos": [ + 2670, + 15 + ], + "size": [ + 313.9857985165404, + 82 + ], + "flags": {}, + "order": 4, + "mode": 0, + "outputs": [ + { + "name": "FLOAT", + "type": "FLOAT", + "links": [ + 244, + 315, + 375 + ], + "slot_index": 0, + "widget": { + "name": "cfg", + "config": [ + "FLOAT", + { + "default": 8, + "min": 0, + "max": 100 + } + ] + } + } + ], + "title": "CFG", + "properties": {}, + "widgets_values": [ + 8, + "fixed" + ] + }, + { + "id": 135, + "type": "InvertMask", + "pos": [ + 3885, + -944 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 379 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 386 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "InvertMask" + } + }, + { + "id": 24, + "type": "PrimitiveNode", + "pos": [ + 2672, + 130 + ], + "size": [ + 309.30163156616163, + 82 + ], + "flags": {}, + "order": 5, + "mode": 0, + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 295, + 314, + 374 + ], + "slot_index": 0, + "widget": { + "name": "seed", + "config": [ + "INT", + { + "default": 0, + "min": 0, + "max": 18446744073709552000 + } + ] + } + } + ], + "title": "Seed", + "properties": {}, + "widgets_values": [ + 102011777956508, + "randomize" + ] + }, + { + "id": 75, + "type": "SaveImage", + "pos": [ + 5129, + -875 + ], + "size": [ + 1201.4823778637674, + 1263.6046494976797 + ], + "flags": { + "collapsed": false + }, + "order": 41, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 209 + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 74, + "type": "VAEDecode", + "pos": [ + 4417, + -138 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 40, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 313 + }, + { + "name": "vae", + "type": "VAE", + "link": 208 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 209 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 73, + "type": "KSampler", + "pos": [ + 4087, + -817 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 36, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 392 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 367 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 368 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 293 + }, + { + "name": "seed", + "type": "INT", + "link": 295, + "widget": { + "name": "seed", + "config": [ + "INT", + { + "default": 0, + "min": 0, + "max": 18446744073709552000 + } + ] + } + }, + { + "name": "cfg", + "type": "FLOAT", + "link": 244, + "widget": { + "name": "cfg", + "config": [ + "FLOAT", + { + "default": 8, + "min": 0, + "max": 100 + } + ] + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 370 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "Checkpoint KSampler", + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 191990443854514, + "fixed", + 1, + 8, + "dpmpp_sde_gpu", + "simple", + 0.09999999999999987 + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 133, + "type": "Image Edge Detection Filter", + "pos": [ + 2761, + -1207 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 376 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 396 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Image Edge Detection Filter" + }, + "widgets_values": [ + "normal" + ] + }, + { + "id": 117, + "type": "PreviewImage", + "pos": [ + 4211, + -1185 + ], + "size": [ + 210, + 246 + ], + "flags": {}, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 404 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 109, + "type": "PrimitiveNode", + "pos": [ + 2668, + -314 + ], + "size": [ + 318.6700146157832, + 129.35095789154013 + ], + "flags": {}, + "order": 6, + "mode": 0, + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 299, + 300 + ], + "slot_index": 0, + "widget": { + "name": "text", + "config": [ + "STRING", + { + "multiline": true + } + ] + } + } + ], + "title": "Positive Prompt", + "properties": {}, + "widgets_values": [ + "a photograph of a black wrestler speaking on a microphone in an interview" + ] + }, + { + "id": 111, + "type": "KSamplerAdvanced", + "pos": [ + 4071, + -200 + ], + "size": [ + 315, + 334 + ], + "flags": {}, + "order": 39, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 309 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 310 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 311 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 371 + }, + { + "name": "cfg", + "type": "FLOAT", + "link": 315, + "widget": { + "name": "cfg", + "config": [ + "FLOAT", + { + "default": 8, + "min": 0, + "max": 100 + } + ] + } + }, + { + "name": "noise_seed", + "type": "INT", + "link": 314, + "widget": { + "name": "noise_seed", + "config": [ + "INT", + { + "default": 0, + "min": 0, + "max": 18446744073709552000 + } + ] + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 313 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "Refiner KSampler (Advanced)", + "properties": { + "Node name for S&R": "KSamplerAdvanced" + }, + "widgets_values": [ + "enable", + 127844373761223, + "randomize", + 20, + 8, + "dpmpp_sde_gpu", + "simple", + 13, + 20, + "enable" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 134, + "type": "ImageToMask", + "pos": [ + 3758, + -1074 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 31, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 416 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 379 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageToMask" + }, + "widgets_values": [ + "green" + ] + }, + { + "id": 146, + "type": "PreviewImage", + "pos": [ + 5082, + -1257 + ], + "size": { + "0": 210, + "1": 246 + }, + "flags": {}, + "order": 37, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 414 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 145, + "type": "MaskToImage", + "pos": [ + 4673, + -1212 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 35, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 413 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 414 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "MaskToImage" + } + }, + { + "id": 148, + "type": "Image Blend by Mask", + "pos": [ + 3487, + -1472 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 27, + "mode": 0, + "inputs": [ + { + "name": "image_a", + "type": "IMAGE", + "link": 417 + }, + { + "name": "image_b", + "type": "IMAGE", + "link": 418 + }, + { + "name": "mask", + "type": "IMAGE", + "link": 420 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 419 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Image Blend by Mask" + }, + "widgets_values": [ + 1 + ] + }, + { + "id": 131, + "type": "LoadImage", + "pos": [ + 4463, + -1004 + ], + "size": { + "0": 493.5102844238281, + "1": 603.866943359375 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": [], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "nord (2).jpg", + "image" + ] + }, + { + "id": 140, + "type": "PreviewImage", + "pos": [ + 4418, + 250 + ], + "size": { + "0": 210, + "1": 246 + }, + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 393 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 143, + "type": "Image Levels Adjustment", + "pos": [ + 4005, + 255 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 410, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 411 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Image Levels Adjustment" + }, + "widgets_values": [ + 59.555560302734364, + 97.83332366943361, + 117.83332958221439 + ] + }, + { + "id": 124, + "type": "MaskToImage", + "pos": [ + 4100, + 440 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 356 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 383, + 393, + 420 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "MaskToImage" + } + }, + { + "id": 120, + "type": "InvertMask", + "pos": [ + 3360, + 290 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 326 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 332 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "InvertMask" + } + }, + { + "id": 116, + "type": "MaskToImage", + "pos": [ + 3610, + 300 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 332 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 333 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "MaskToImage" + } + }, + { + "id": 122, + "type": "MaskToImage", + "pos": [ + 3210, + 460 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 337 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 339, + 384 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "MaskToImage" + } + }, + { + "id": 105, + "type": "VAEEncode", + "pos": [ + 3510, + 150 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 290 + }, + { + "name": "vae", + "type": "VAE", + "link": 291 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 292 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEEncode" + } + }, + { + "id": 83, + "type": "SetLatentNoiseMask", + "pos": [ + 3770, + 30 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 34, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 292 + }, + { + "name": "mask", + "type": "MASK", + "link": 387 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 293 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "SetLatentNoiseMask" + } + }, + { + "id": 138, + "type": "Mask Gaussian Region", + "pos": [ + 3624, + -828 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 33, + "mode": 0, + "inputs": [ + { + "name": "masks", + "type": "MASK", + "link": 386 + } + ], + "outputs": [ + { + "name": "MASKS", + "type": "MASK", + "links": [ + 387, + 413 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Mask Gaussian Region" + }, + "widgets_values": [ + 10.000006103515624 + ] + }, + { + "id": 128, + "type": "Mask Gaussian Region", + "pos": [ + 3980, + 560 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "masks", + "type": "MASK", + "link": 425 + } + ], + "outputs": [ + { + "name": "MASKS", + "type": "MASK", + "links": [ + 356 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Mask Gaussian Region" + }, + "widgets_values": [ + 9.999993896484378 + ] + }, + { + "id": 123, + "type": "ImageToMask", + "pos": [ + 3270, + 628 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 411, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 394 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageToMask" + }, + "widgets_values": [ + "green" + ] + }, + { + "id": 87, + "type": "LoadImage", + "pos": [ + 2670, + 255 + ], + "size": [ + 493.51028156616167, + 603.8669172058094 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 290, + 340, + 376 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 326, + 337 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "clipspace/clipspace-mask-18197270.700000048.png [input]", + "image" + ] + }, + { + "id": 139, + "type": "Image Levels Adjustment", + "pos": [ + 3148, + -1320 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 396, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 397, + 417 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Image Levels Adjustment" + }, + "widgets_values": [ + 0, + 27.444441604614248, + 106.16666564941404 + ] + }, + { + "id": 147, + "type": "Image Levels Adjustment", + "pos": [ + 3343, + -988 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 415, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 416 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Image Levels Adjustment" + }, + "widgets_values": [ + 0, + 48.61111602783203, + 121.49999389648438 + ] + }, + { + "id": 142, + "type": "Image Levels Adjustment", + "pos": [ + 3964, + -1368 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 419, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 404, + 415 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Image Levels Adjustment" + }, + "widgets_values": [ + 52.8888931274414, + 111.55554809570314, + 174.0555480957031 + ] + }, + { + "id": 130, + "type": "KSampler", + "pos": [ + 4070, + -510 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 38, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 369 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 372 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 373 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 370 + }, + { + "name": "seed", + "type": "INT", + "link": 374, + "widget": { + "name": "seed", + "config": [ + "INT", + { + "default": 0, + "min": 0, + "max": 18446744073709552000 + } + ] + } + }, + { + "name": "cfg", + "type": "FLOAT", + "link": 375, + "widget": { + "name": "cfg", + "config": [ + "FLOAT", + { + "default": 8, + "min": 0, + "max": 100 + } + ] + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 371 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "Checkpoint KSampler", + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 191990443854514, + "fixed", + 12, + 8, + "dpmpp_sde_gpu", + "simple", + 0.6 + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 141, + "type": "InvertMask", + "pos": [ + 3710, + 570 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 394 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 425 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "InvertMask" + } + }, + { + "id": 121, + "type": "Image Blend by Mask", + "pos": [ + 3530, + 410 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "image_a", + "type": "IMAGE", + "link": 333 + }, + { + "name": "image_b", + "type": "IMAGE", + "link": 340 + }, + { + "name": "mask", + "type": "IMAGE", + "link": 339 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 410 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Image Blend by Mask" + }, + "widgets_values": [ + 0.42777770996093756 + ] + }, + { + "id": 136, + "type": "Image Blend by Mask", + "pos": [ + 3303, + -1147 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "image_a", + "type": "IMAGE", + "link": 397 + }, + { + "name": "image_b", + "type": "IMAGE", + "link": 383 + }, + { + "name": "mask", + "type": "IMAGE", + "link": 384 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 418 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Image Blend by Mask" + }, + "widgets_values": [ + 0.20000000000000007 + ] + } + ], + "links": [ + [ + 199, + 4, + 1, + 71, + 0, + "CLIP" + ], + [ + 200, + 4, + 1, + 72, + 0, + "CLIP" + ], + [ + 208, + 44, + 0, + 74, + 1, + "VAE" + ], + [ + 209, + 74, + 0, + 75, + 0, + "IMAGE" + ], + [ + 244, + 34, + 0, + 73, + 5, + "FLOAT" + ], + [ + 290, + 87, + 0, + 105, + 0, + "IMAGE" + ], + [ + 291, + 44, + 0, + 105, + 1, + "VAE" + ], + [ + 292, + 105, + 0, + 83, + 0, + "LATENT" + ], + [ + 293, + 83, + 0, + 73, + 3, + "LATENT" + ], + [ + 295, + 24, + 0, + 73, + 4, + "INT" + ], + [ + 297, + 18, + 1, + 107, + 0, + "CLIP" + ], + [ + 298, + 18, + 1, + 108, + 0, + "CLIP" + ], + [ + 299, + 109, + 0, + 71, + 1, + "STRING" + ], + [ + 300, + 109, + 0, + 107, + 1, + "STRING" + ], + [ + 301, + 110, + 0, + 72, + 1, + "STRING" + ], + [ + 302, + 110, + 0, + 108, + 1, + "STRING" + ], + [ + 309, + 18, + 0, + 111, + 0, + "MODEL" + ], + [ + 310, + 107, + 0, + 111, + 1, + "CONDITIONING" + ], + [ + 311, + 108, + 0, + 111, + 2, + "CONDITIONING" + ], + [ + 313, + 111, + 0, + 74, + 0, + "LATENT" + ], + [ + 314, + 24, + 0, + 111, + 5, + "INT" + ], + [ + 315, + 34, + 0, + 111, + 4, + "FLOAT" + ], + [ + 326, + 87, + 1, + 120, + 0, + "MASK" + ], + [ + 332, + 120, + 0, + 116, + 0, + "MASK" + ], + [ + 333, + 116, + 0, + 121, + 0, + "IMAGE" + ], + [ + 337, + 87, + 1, + 122, + 0, + "MASK" + ], + [ + 339, + 122, + 0, + 121, + 2, + "IMAGE" + ], + [ + 340, + 87, + 0, + 121, + 1, + "IMAGE" + ], + [ + 356, + 128, + 0, + 124, + 0, + "MASK" + ], + [ + 367, + 107, + 0, + 73, + 1, + "CONDITIONING" + ], + [ + 368, + 108, + 0, + 73, + 2, + "CONDITIONING" + ], + [ + 369, + 4, + 0, + 130, + 0, + "MODEL" + ], + [ + 370, + 73, + 0, + 130, + 3, + "LATENT" + ], + [ + 371, + 130, + 0, + 111, + 3, + "LATENT" + ], + [ + 372, + 71, + 0, + 130, + 1, + "CONDITIONING" + ], + [ + 373, + 72, + 0, + 130, + 2, + "CONDITIONING" + ], + [ + 374, + 24, + 0, + 130, + 4, + "INT" + ], + [ + 375, + 34, + 0, + 130, + 5, + "FLOAT" + ], + [ + 376, + 87, + 0, + 133, + 0, + "IMAGE" + ], + [ + 379, + 134, + 0, + 135, + 0, + "MASK" + ], + [ + 383, + 124, + 0, + 136, + 1, + "IMAGE" + ], + [ + 384, + 122, + 0, + 136, + 2, + "IMAGE" + ], + [ + 386, + 135, + 0, + 138, + 0, + "MASK" + ], + [ + 387, + 138, + 0, + 83, + 1, + "MASK" + ], + [ + 392, + 18, + 0, + 73, + 0, + "MODEL" + ], + [ + 393, + 124, + 0, + 140, + 0, + "IMAGE" + ], + [ + 394, + 123, + 0, + 141, + 0, + "MASK" + ], + [ + 396, + 133, + 0, + 139, + 0, + "IMAGE" + ], + [ + 397, + 139, + 0, + 136, + 0, + "IMAGE" + ], + [ + 404, + 142, + 0, + 117, + 0, + "IMAGE" + ], + [ + 410, + 121, + 0, + 143, + 0, + "IMAGE" + ], + [ + 411, + 143, + 0, + 123, + 0, + "IMAGE" + ], + [ + 413, + 138, + 0, + 145, + 0, + "MASK" + ], + [ + 414, + 145, + 0, + 146, + 0, + "IMAGE" + ], + [ + 415, + 142, + 0, + 147, + 0, + "IMAGE" + ], + [ + 416, + 147, + 0, + 134, + 0, + "IMAGE" + ], + [ + 417, + 139, + 0, + 148, + 0, + "IMAGE" + ], + [ + 418, + 136, + 0, + 148, + 1, + "IMAGE" + ], + [ + 419, + 148, + 0, + 142, + 0, + "IMAGE" + ], + [ + 420, + 124, + 0, + 148, + 2, + "IMAGE" + ], + [ + 425, + 141, + 0, + 128, + 0, + "MASK" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/comfyUI_flows/inpainting.png b/comfyUI_flows/inpainting.png new file mode 100644 index 00000000000..c21e3d2ea0f Binary files /dev/null and b/comfyUI_flows/inpainting.png differ diff --git a/comfyUI_flows/stable-cascade-basic-workflow-pjk1r-v.json b/comfyUI_flows/stable-cascade-basic-workflow-pjk1r-v.json new file mode 100644 index 00000000000..21b99be264c --- /dev/null +++ b/comfyUI_flows/stable-cascade-basic-workflow-pjk1r-v.json @@ -0,0 +1 @@ +{"config":{},"extra":{"0246.VERSION":[0,0,4]},"groups":[],"last_link_id":109,"last_node_id":40,"links":[[9,8,0,9,0,"IMAGE"],[68,29,0,8,1,"VAE"],[76,30,0,3,0,"MODEL"],[82,34,0,3,3,"LATENT"],[83,34,1,33,3,"LATENT"],[84,32,0,33,0,"MODEL"],[86,36,0,33,1,"CONDITIONING"],[88,3,0,36,1,"LATENT"],[93,37,0,6,0,"CLIP"],[94,37,0,7,0,"CLIP"],[98,33,0,8,0,"LATENT"],[104,40,0,33,2,"CONDITIONING"],[105,40,0,36,0,"CONDITIONING"],[107,6,0,3,1,"CONDITIONING"],[108,7,0,3,2,"CONDITIONING"],[109,6,0,40,0,"CONDITIONING"]],"nodes":[{"flags":{},"id":7,"inputs":[{"link":94,"name":"clip","type":"CLIP"}],"mode":0,"order":6,"outputs":[{"links":[108],"name":"CONDITIONING","slot_index":0,"type":"CONDITIONING"}],"pos":[96,480],"properties":{"Node name for S&R":"CLIPTextEncode"},"size":{"0":425.27801513671875,"1":180.6060791015625},"type":"CLIPTextEncode","widgets_values":[""]},{"flags":{},"id":34,"mode":0,"order":0,"outputs":[{"links":[82],"name":"stage_c","shape":3,"slot_index":0,"type":"LATENT"},{"links":[83],"name":"stage_b","shape":3,"slot_index":1,"type":"LATENT"}],"pos":[205,705],"properties":{"Node name for S&R":"StableCascade_EmptyLatentImage"},"size":{"0":315,"1":150},"type":"StableCascade_EmptyLatentImage","widgets_values":[1024,1024,42,1]},{"flags":{},"id":36,"inputs":[{"link":105,"name":"conditioning","type":"CONDITIONING"},{"link":88,"name":"stage_c","type":"LATENT"}],"mode":0,"order":9,"outputs":[{"links":[86],"name":"CONDITIONING","shape":3,"slot_index":0,"type":"CONDITIONING"}],"pos":[963,281],"properties":{"Node name for S&R":"StableCascade_StageB_Conditioning"},"size":{"0":277.20001220703125,"1":46},"type":"StableCascade_StageB_Conditioning"},{"flags":{},"id":40,"inputs":[{"link":109,"name":"conditioning","type":"CONDITIONING"}],"mode":0,"order":7,"outputs":[{"links":[104,105],"name":"CONDITIONING","shape":3,"slot_index":0,"type":"CONDITIONING"}],"pos":[719,236],"properties":{"Node name for S&R":"ConditioningZeroOut"},"size":{"0":211.60000610351562,"1":26},"type":"ConditioningZeroOut"},{"flags":{},"id":8,"inputs":[{"link":98,"name":"samples","type":"LATENT"},{"link":68,"name":"vae","slot_index":1,"type":"VAE"}],"mode":0,"order":11,"outputs":[{"links":[9],"name":"IMAGE","slot_index":0,"type":"IMAGE"}],"pos":[1621,267],"properties":{"Node name for S&R":"VAEDecode"},"size":{"0":210,"1":46},"type":"VAEDecode"},{"flags":{},"id":6,"inputs":[{"link":93,"name":"clip","type":"CLIP"}],"mode":0,"order":5,"outputs":[{"links":[107,109],"name":"CONDITIONING","slot_index":0,"type":"CONDITIONING"}],"pos":[96,288],"properties":{"Node name for S&R":"CLIPTextEncode"},"size":{"0":422.84503173828125,"1":164.31304931640625},"type":"CLIPTextEncode","widgets_values":["beautiful scenery nature glass bottle landscape, , purple galaxy bottle,"]},{"flags":{},"id":3,"inputs":[{"link":76,"name":"model","slot_index":0,"type":"MODEL"},{"link":107,"name":"positive","type":"CONDITIONING"},{"link":108,"name":"negative","type":"CONDITIONING"},{"link":82,"name":"latent_image","type":"LATENT"}],"mode":0,"order":8,"outputs":[{"links":[88],"name":"LATENT","slot_index":0,"type":"LATENT"}],"pos":[616,315],"properties":{"Node name for S&R":"KSampler"},"size":{"0":315,"1":262},"type":"KSampler","widgets_values":[762626426130783,"randomize",20,4,"euler_ancestral","simple",1]},{"flags":{},"id":33,"inputs":[{"link":84,"name":"model","slot_index":0,"type":"MODEL"},{"link":86,"name":"positive","type":"CONDITIONING"},{"link":104,"name":"negative","type":"CONDITIONING"},{"link":83,"name":"latent_image","type":"LATENT"}],"mode":0,"order":10,"outputs":[{"links":[98],"name":"LATENT","slot_index":0,"type":"LATENT"}],"pos":[1278,265],"properties":{"Node name for S&R":"KSampler"},"size":{"0":315,"1":262},"type":"KSampler","widgets_values":[150623345818947,"randomize",10,1.1,"euler_ancestral","simple",1]},{"flags":{},"id":37,"mode":0,"order":1,"outputs":[{"links":[93,94],"name":"CLIP","shape":3,"slot_index":0,"type":"CLIP"}],"pos":[-240,384],"properties":{"Node name for S&R":"CLIPLoader"},"size":{"0":315,"1":82},"type":"CLIPLoader","widgets_values":["stabilityai/stable-cascade/text_encoder/model.safetensors","stable_cascade"]},{"flags":{},"id":30,"mode":0,"order":2,"outputs":[{"links":[76],"name":"MODEL","shape":3,"slot_index":0,"type":"MODEL"}],"pos":[-240,288],"properties":{"Node name for S&R":"UNETLoader"},"size":{"0":315,"1":58},"type":"UNETLoader","widgets_values":["stabilityai/stable-cascade/stage_c_bf16.safetensors"]},{"flags":{},"id":32,"mode":0,"order":3,"outputs":[{"links":[84],"name":"MODEL","shape":3,"slot_index":0,"type":"MODEL"}],"pos":[-240,192],"properties":{"Node name for S&R":"UNETLoader"},"size":{"0":315,"1":58},"type":"UNETLoader","widgets_values":["stabilityai/stable-cascade/stage_b_bf16.safetensors"]},{"flags":{},"id":29,"mode":0,"order":4,"outputs":[{"links":[68],"name":"VAE","shape":3,"type":"VAE"}],"pos":[1272,569],"properties":{"Node name for S&R":"VAELoader"},"size":{"0":315,"1":58},"type":"VAELoader","widgets_values":["stabilityai/stable-cascade/stage_a.safetensors"]},{"flags":{},"id":9,"inputs":[{"link":9,"name":"images","type":"IMAGE"}],"mode":0,"order":12,"pos":[1864,269],"properties":{},"size":{"0":935.7432250976562,"1":1006.83154296875},"type":"SaveImage","widgets_values":["ComfyUI"]}],"version":0.4,"viewport":{"scale":0.6830134553650711,"x":313.4517822265625,"y":572.4548950195312}} \ No newline at end of file diff --git a/comfyUI_flows/workflow-tutorial-resources-automated-inpainting-with-dino-N7kXqHdmo2rPDy4WixMM-grock-openart.ai.json b/comfyUI_flows/workflow-tutorial-resources-automated-inpainting-with-dino-N7kXqHdmo2rPDy4WixMM-grock-openart.ai.json new file mode 100644 index 00000000000..b91b3386a8c --- /dev/null +++ b/comfyUI_flows/workflow-tutorial-resources-automated-inpainting-with-dino-N7kXqHdmo2rPDy4WixMM-grock-openart.ai.json @@ -0,0 +1 @@ +{"last_node_id":61,"last_link_id":69,"nodes":[{"id":15,"type":"IPAdapterModelLoader","pos":[-646.4561308288581,-58.87165786743253],"size":{"0":315,"1":58},"flags":{"collapsed":true},"order":0,"mode":4,"outputs":[{"name":"IPADAPTER","type":"IPADAPTER","links":[8],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"IPAdapterModelLoader"},"widgets_values":["ip-adapter_sdxl.bin"]},{"id":14,"type":"CLIPVisionLoader","pos":[-646.0400767517098,-15.807953796386712],"size":{"0":315,"1":58},"flags":{"collapsed":true},"order":1,"mode":4,"outputs":[{"name":"CLIP_VISION","type":"CLIP_VISION","links":[7],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"CLIPVisionLoader"},"widgets_values":["open_clip_pytorch_model.bin"]},{"id":13,"type":"UltralyticsDetectorProvider","pos":[-647.9999961853027,-186.00004196166992],"size":{"0":315,"1":78},"flags":{"collapsed":true},"order":2,"mode":4,"outputs":[{"name":"BBOX_DETECTOR","type":"BBOX_DETECTOR","links":[6],"shape":3,"slot_index":0},{"name":"SEGM_DETECTOR","type":"SEGM_DETECTOR","links":null,"shape":3}],"properties":{"Node name for S&R":"UltralyticsDetectorProvider"},"widgets_values":["bbox/face_yolov8m.pt"]},{"id":16,"type":"Anything Everywhere","pos":[-640,280],"size":{"0":210,"1":26},"flags":{"collapsed":true},"order":25,"mode":0,"inputs":[{"name":"LATENT","type":"*","link":11,"color_on":"#FF9CF9"}],"properties":{"group_restricted":false,"color_restricted":false,"Node name for S&R":"Anything Everywhere"}},{"id":20,"type":"Anything Everywhere3","pos":[-650,330],"size":{"0":210,"1":66},"flags":{"collapsed":true},"order":30,"mode":0,"inputs":[{"name":"BBOX_DETECTOR","type":"*","link":14,"color_on":""},{"name":"SEGM_DETECTOR","type":"*","link":15,"color_on":""},{"name":"anything","type":"*","link":null}],"properties":{"group_restricted":false,"color_restricted":false,"Node name for S&R":"Anything Everywhere3"}},{"id":7,"type":"Anything Everywhere3","pos":[-650,370],"size":{"0":210,"1":66},"flags":{"collapsed":true},"order":24,"mode":0,"inputs":[{"name":"BBOX_DETECTOR","type":"*","link":6,"color_on":""},{"name":"CLIP_VISION","type":"*","link":7,"color_on":"#A8DADC"},{"name":"IPADAPTER","type":"*","link":8,"color_on":""}],"properties":{"group_restricted":false,"color_restricted":false,"Node name for S&R":"Anything Everywhere3"}},{"id":22,"type":"VAELoader","pos":[-620,420],"size":{"0":315,"1":58},"flags":{"collapsed":true},"order":3,"mode":0,"outputs":[{"name":"VAE","type":"VAE","links":[3],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"VAELoader"},"widgets_values":["sdxl_vae.safetensors"]},{"id":10,"type":"CLIPTextEncode","pos":[-123,89],"size":{"0":210,"1":54},"flags":{"collapsed":true},"order":28,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":null},{"name":"text","type":"STRING","link":9,"widget":{"name":"text"}}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[4],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":[""],"color":"#232","bgcolor":"#353"},{"id":11,"type":"CLIPTextEncode","pos":[-365,90],"size":{"0":210,"1":54},"flags":{"collapsed":true},"order":29,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":null},{"name":"text","type":"STRING","link":10,"widget":{"name":"text"}}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[5],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":[""],"color":"#322","bgcolor":"#533"},{"id":6,"type":"Prompts Everywhere","pos":[-240,129],"size":{"0":254.40000915527344,"1":46},"flags":{"collapsed":true},"order":36,"mode":0,"inputs":[{"name":"CONDITIONING","type":"*","link":4,"color_on":"#FFA931"},{"name":"CONDITIONING","type":"*","link":5,"color_on":"#FFA931"}],"properties":{"group_restricted":false,"color_restricted":false,"Node name for S&R":"Prompts Everywhere"}},{"id":8,"type":"EmptyLatentImage","pos":[-399,183],"size":{"0":315,"1":106},"flags":{"collapsed":true},"order":4,"mode":0,"outputs":[{"name":"LATENT","type":"LATENT","links":[11],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"EmptyLatentImage"},"widgets_values":[1024,1024,1]},{"id":9,"type":"CheckpointLoaderSimple","pos":[-386,-479],"size":{"0":491.2857666015625,"1":98},"flags":{"collapsed":false},"order":5,"mode":0,"outputs":[{"name":"MODEL","type":"MODEL","links":[1],"shape":3,"slot_index":0},{"name":"CLIP","type":"CLIP","links":[2],"shape":3,"slot_index":1},{"name":"VAE","type":"VAE","links":[],"shape":3,"slot_index":2}],"properties":{"Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["MOHAWK_v20.safetensors"]},{"id":28,"type":"LoraLoader","pos":[-150.2261162474256,1001.8023991136134],"size":{"0":315,"1":126},"flags":{},"order":6,"mode":4,"inputs":[{"name":"model","type":"MODEL","link":null},{"name":"clip","type":"CLIP","link":null}],"outputs":[{"name":"MODEL","type":"MODEL","links":[34],"shape":3,"slot_index":0},{"name":"CLIP","type":"CLIP","links":[],"shape":3}],"properties":{"Node name for S&R":"LoraLoader"},"widgets_values":["lcm.safetensors",1,1]},{"id":34,"type":"SaveImage","pos":[-140.22611624742552,711.802399113614],"size":{"0":317.6802062988281,"1":270},"flags":{},"order":38,"mode":4,"inputs":[{"name":"images","type":"IMAGE","link":32}],"properties":{},"widgets_values":["fashionmodel\\fm"]},{"id":24,"type":"Bookmark (rgthree)","pos":{"0":-681,"1":-526,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":210,"1":62},"flags":{"collapsed":true},"order":7,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["1",0.8]},{"id":30,"type":"LoraLoader|pysssss","pos":[-150.2261162474256,1171.8023991136133],"size":{"0":349.5762634277344,"1":150},"flags":{},"order":27,"mode":4,"inputs":[{"name":"model","type":"MODEL","link":34},{"name":"clip","type":"CLIP","link":null}],"outputs":[{"name":"MODEL","type":"MODEL","links":[35],"shape":3},{"name":"CLIP","type":"CLIP","links":[],"shape":3}],"properties":{"Node name for S&R":"LoraLoader|pysssss"},"widgets_values":[{"content":"details\\DetailedEyes_V3.safetensors","image":null},1,1,"[none]"]},{"id":27,"type":"CR Latent Batch Size","pos":[-510.2261162474265,621.8023991136139],"size":{"0":315,"1":58},"flags":{},"order":8,"mode":4,"inputs":[{"name":"latent","type":"LATENT","link":null}],"outputs":[{"name":"LATENT","type":"LATENT","links":[18],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"CR Latent Batch Size"},"widgets_values":[2],"color":"#323","bgcolor":"#535"},{"id":38,"type":"CLIPTextEncode","pos":[2287.927043016014,67.58242843306549],"size":{"0":210,"1":54},"flags":{"collapsed":true},"order":31,"mode":4,"inputs":[{"name":"clip","type":"CLIP","link":null},{"name":"text","type":"STRING","link":38,"widget":{"name":"text"}}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[40],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":[""],"color":"#232","bgcolor":"#353"},{"id":39,"type":"CLIPTextEncode","pos":[2513.9270430160054,67.58242843306549],"size":{"0":210,"1":54},"flags":{"collapsed":true},"order":32,"mode":4,"inputs":[{"name":"clip","type":"CLIP","link":null},{"name":"text","type":"STRING","link":39,"widget":{"name":"text"}}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[41],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":[""],"color":"#322","bgcolor":"#533"},{"id":5,"type":"Anything Everywhere3","pos":[-640,240],"size":{"0":210,"1":66},"flags":{"collapsed":true},"order":26,"mode":0,"inputs":[{"name":"MODEL","type":"*","link":1,"slot_index":0,"color_on":"#B39DDB"},{"name":"CLIP","type":"*","link":2,"color_on":"#FFD500"},{"name":"VAE","type":"*","link":3,"color_on":"#FF6E6E"}],"properties":{"group_restricted":false,"color_restricted":false,"Node name for S&R":"Anything Everywhere3"}},{"id":12,"type":"MilehighStyler","pos":[-388.1199060058591,-295.1766267395018],"size":{"0":491.1199035644531,"1":341.7480773925781},"flags":{},"order":9,"mode":0,"outputs":[{"name":"text_positive","type":"STRING","links":[9],"shape":3,"slot_index":0},{"name":"text_negative","type":"STRING","links":[10],"shape":3,"slot_index":1}],"properties":{"Node name for S&R":"MilehighStyler"},"widgets_values":["smiling blond woman (white blouse, jeans), standing by kitchen counter, modern kitchen background bokeh, chrome appliances","","no style",false],"color":"#323","bgcolor":"#535"},{"id":26,"type":"KSampler (Efficient)","pos":[-559.9998168945308,742.2221959431967],"size":{"0":386.6821594238281,"1":717.0343017578125},"flags":{},"order":35,"mode":4,"inputs":[{"name":"model","type":"MODEL","link":35},{"name":"positive","type":"CONDITIONING","link":null},{"name":"negative","type":"CONDITIONING","link":null},{"name":"latent_image","type":"LATENT","link":18},{"name":"optional_vae","type":"VAE","link":null},{"name":"script","type":"SCRIPT","link":null}],"outputs":[{"name":"MODEL","type":"MODEL","links":null,"shape":3},{"name":"CONDITIONING+","type":"CONDITIONING","links":null,"shape":3},{"name":"CONDITIONING-","type":"CONDITIONING","links":null,"shape":3},{"name":"LATENT","type":"LATENT","links":null,"shape":3},{"name":"VAE","type":"VAE","links":null,"shape":3},{"name":"IMAGE","type":"IMAGE","links":[32],"shape":3,"slot_index":5}],"properties":{"Node name for S&R":"KSampler (Efficient)"},"widgets_values":[1071356453185126,null,15,2,"lcm","karras",1,"auto","true"],"color":"#332233","bgcolor":"#553355","shape":1},{"id":19,"type":"UltralyticsDetectorProvider","pos":[-646,128],"size":{"0":315,"1":78},"flags":{"collapsed":true},"order":10,"mode":4,"outputs":[{"name":"BBOX_DETECTOR","type":"BBOX_DETECTOR","links":[14],"shape":3,"slot_index":0},{"name":"SEGM_DETECTOR","type":"SEGM_DETECTOR","links":[15],"shape":3,"slot_index":1}],"properties":{"Node name for S&R":"UltralyticsDetectorProvider"},"widgets_values":["segm/yolov8m-seg.pt"]},{"id":49,"type":"CLIPSeg Model Loader","pos":[1035.3235451542193,-587.0332708110543],"size":{"0":315,"1":58},"flags":{},"order":11,"mode":4,"outputs":[{"name":"clipseg_model","type":"CLIPSEG_MODEL","links":[],"shape":3}],"properties":{"Node name for S&R":"CLIPSeg Model Loader"},"widgets_values":["CIDAS/clipseg-rd64-refined"]},{"id":55,"type":"SAMLoader","pos":[1044.3235451542191,-345.03327081105476],"size":{"0":315,"1":82},"flags":{},"order":12,"mode":4,"outputs":[{"name":"SAM_MODEL","type":"SAM_MODEL","links":[61],"shape":3}],"properties":{"Node name for S&R":"SAMLoader"},"widgets_values":["sam_vit_b_01ec64.pth","Prefer GPU"]},{"id":54,"type":"GroundingDinoSAMSegment (segment anything)","pos":[1474.3235451542184,-761.033270811055],"size":{"0":330,"1":122},"flags":{},"order":33,"mode":4,"inputs":[{"name":"sam_model","type":"SAM_MODEL","link":61,"slot_index":0},{"name":"grounding_dino_model","type":"GROUNDING_DINO_MODEL","link":60},{"name":"image","type":"IMAGE","link":62}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[],"shape":3,"slot_index":0},{"name":"MASK","type":"MASK","links":[64],"shape":3,"slot_index":1}],"properties":{"Node name for S&R":"GroundingDinoSAMSegment (segment anything)"},"widgets_values":["shirt",0.3]},{"id":37,"type":"VAEEncodeForInpaint","pos":[1487.3235451542184,-576.0332708110544],"size":{"0":315,"1":98},"flags":{},"order":37,"mode":4,"inputs":[{"name":"pixels","type":"IMAGE","link":66},{"name":"vae","type":"VAE","link":null},{"name":"mask","type":"MASK","link":64}],"outputs":[{"name":"LATENT","type":"LATENT","links":[45],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"VAEEncodeForInpaint"},"widgets_values":[12]},{"id":43,"type":"InjectNoiseToLatent","pos":[1487.3235451542184,-418.03327081105454],"size":{"0":315,"1":146},"flags":{},"order":39,"mode":4,"inputs":[{"name":"latents","type":"LATENT","link":45},{"name":"noise","type":"LATENT","link":null},{"name":"mask","type":"MASK","link":null}],"outputs":[{"name":"LATENT","type":"LATENT","links":[42],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"InjectNoiseToLatent"},"widgets_values":[0.4,false,false]},{"id":53,"type":"GroundingDinoModelLoader (segment anything)","pos":[1044.3235451542191,-453.03327081105493],"size":{"0":315,"1":58},"flags":{},"order":13,"mode":4,"outputs":[{"name":"GROUNDING_DINO_MODEL","type":"GROUNDING_DINO_MODEL","links":[60],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"GroundingDinoModelLoader (segment anything)"},"widgets_values":["GroundingDINO_SwinT_OGC (694MB)"]},{"id":40,"type":"KSampler (Efficient)","pos":[2275.3235451542173,-686.0332708110546],"size":{"0":432.1924743652344,"1":710.3739624023438},"flags":{},"order":40,"mode":4,"inputs":[{"name":"model","type":"MODEL","link":null},{"name":"positive","type":"CONDITIONING","link":40},{"name":"negative","type":"CONDITIONING","link":41},{"name":"latent_image","type":"LATENT","link":42},{"name":"optional_vae","type":"VAE","link":null},{"name":"script","type":"SCRIPT","link":null}],"outputs":[{"name":"MODEL","type":"MODEL","links":null,"shape":3},{"name":"CONDITIONING+","type":"CONDITIONING","links":null,"shape":3},{"name":"CONDITIONING-","type":"CONDITIONING","links":null,"shape":3},{"name":"LATENT","type":"LATENT","links":[],"shape":3,"slot_index":3},{"name":"VAE","type":"VAE","links":null,"shape":3},{"name":"IMAGE","type":"IMAGE","links":[46],"shape":3,"slot_index":5}],"properties":{"Node name for S&R":"KSampler (Efficient)"},"widgets_values":[305699580992931,null,20,4.5,"dpmpp_3m_sde_gpu","exponential",0.8200000000000001,"auto","true"],"color":"#443322","bgcolor":"#665533","shape":1},{"id":44,"type":"SaveImage","pos":[2267.3235451542173,-791.033270811055],"size":[302.48959400207514,58],"flags":{},"order":41,"mode":4,"inputs":[{"name":"images","type":"IMAGE","link":46}],"properties":{},"widgets_values":["fashion_process\\fm"]},{"id":36,"type":"MilehighStyler","pos":[1834.0660400390602,-597],"size":{"0":410.08905029296875,"1":329.5429992675781},"flags":{},"order":14,"mode":4,"outputs":[{"name":"text_positive","type":"STRING","links":[38],"shape":3,"slot_index":0},{"name":"text_negative","type":"STRING","links":[39],"shape":3,"slot_index":1}],"properties":{"Node name for S&R":"MilehighStyler"},"widgets_values":["professional light pink blouse, highly detailed","nsfw, patterns","no style",false]},{"id":35,"type":"LoadImageListFromDir //Inspire","pos":[1045.0660400390618,-788],"size":{"0":315,"1":126},"flags":{},"order":15,"mode":4,"outputs":[{"name":"IMAGE","type":"IMAGE","links":[62,66],"shape":6,"slot_index":0},{"name":"MASK","type":"MASK","links":null,"shape":6,"slot_index":1}],"properties":{"Node name for S&R":"LoadImageListFromDir //Inspire"},"widgets_values":["C:\\StableDiffusion\\ComfyUI\\output\\fashionmodel",0,0]},{"id":23,"type":"Fast Groups Bypasser (rgthree)","pos":{"0":-673,"1":-472,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":252,"1":178},"flags":{},"order":16,"mode":0,"inputs":[],"outputs":[{"name":"OPT_CONNECTION","type":"*","links":null}],"properties":{"matchColors":"","matchTitle":"","showNav":true,"sort":"position","customSortAlphabet":"","toggleRestriction":"default"}},{"id":45,"type":"Bookmark (rgthree)","pos":{"0":-600,"1":521,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":210,"1":62},"flags":{"collapsed":true},"order":17,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["2",0.9]},{"id":46,"type":"Bookmark (rgthree)","pos":{"0":1028,"1":-897,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":210,"1":62},"flags":{"collapsed":true},"order":18,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["3",0.75]},{"id":56,"type":"Note","pos":[137,-499],"size":[294.0000915527344,62.00000190734863],"flags":{},"order":19,"mode":0,"properties":{"text":""},"widgets_values":["BATCH MASK / INPAINTING"],"color":"#432","bgcolor":"#653"},{"id":58,"type":"Bookmark (rgthree)","pos":{"0":3757,"1":-910,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":210,"1":62},"flags":{"collapsed":true},"order":20,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["4",1]},{"id":59,"type":"LoadImage","pos":[3809,-685],"size":[350.8000183105469,334.79998779296875],"flags":{"collapsed":true},"order":21,"mode":0,"outputs":[{"name":"IMAGE","type":"IMAGE","links":[68],"shape":3,"slot_index":0},{"name":"MASK","type":"MASK","links":null,"shape":3}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["fm_00001_.png","image"]},{"id":60,"type":"LoadImage","pos":[3810,-842],"size":[315,314],"flags":{"collapsed":true},"order":22,"mode":0,"outputs":[{"name":"IMAGE","type":"IMAGE","links":[69],"shape":3,"slot_index":0},{"name":"MASK","type":"MASK","links":null,"shape":3}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["fm_00003_.png","image"]},{"id":57,"type":"Image Comparer (rgthree)","pos":{"0":4040,"1":-829,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":[655.4000244140625,607],"flags":{},"order":34,"mode":0,"inputs":[{"name":"image_a","type":"IMAGE","link":69,"dir":3},{"name":"image_b","type":"IMAGE","link":68,"dir":3}],"outputs":[],"properties":{"comparer_mode":"Slide"},"widgets_values":[["/view?filename=rgthree.compare._temp_pltka_00001_.png&type=temp&subfolder=&rand=0.4991189808308032","/view?filename=rgthree.compare._temp_pltka_00002_.png&type=temp&subfolder=&rand=0.14320577254107558"]]},{"id":61,"type":"Note","pos":[3790,-621],"size":{"0":210,"1":58},"flags":{},"order":23,"mode":0,"properties":{"text":""},"widgets_values":["IMAGE COMPARISON"],"color":"#432","bgcolor":"#653"}],"links":[[1,9,0,5,0,"*"],[2,9,1,5,1,"*"],[3,22,0,5,2,"*"],[4,10,0,6,0,"*"],[5,11,0,6,1,"*"],[6,13,0,7,0,"*"],[7,14,0,7,1,"*"],[8,15,0,7,2,"*"],[9,12,0,10,1,"STRING"],[10,12,1,11,1,"STRING"],[11,8,0,16,0,"*"],[14,19,0,20,0,"*"],[15,19,1,20,1,"*"],[18,27,0,26,3,"LATENT"],[32,26,5,34,0,"IMAGE"],[34,28,0,30,0,"MODEL"],[35,30,0,26,0,"MODEL"],[38,36,0,38,1,"STRING"],[39,36,1,39,1,"STRING"],[40,38,0,40,1,"CONDITIONING"],[41,39,0,40,2,"CONDITIONING"],[42,43,0,40,3,"LATENT"],[45,37,0,43,0,"LATENT"],[46,40,5,44,0,"IMAGE"],[60,53,0,54,1,"GROUNDING_DINO_MODEL"],[61,55,0,54,0,"SAM_MODEL"],[62,35,0,54,2,"IMAGE"],[64,54,1,37,2,"MASK"],[66,35,0,37,0,"IMAGE"],[68,59,0,57,1,"IMAGE"],[69,60,0,57,0,"IMAGE"]],"groups":[{"title":"Face Detail","bounding":[-665,-261,241,86],"color":"#3f789e","font_size":24,"locked":false},{"title":"IP Adapter","bounding":[-659,-138,235,135],"color":"#3f789e","font_size":24,"locked":false},{"title":"Segmenter","bounding":[-662,43,245,106],"color":"#3f789e","font_size":24,"locked":false},{"title":"Global Prompt","bounding":[-398,-368,509,503],"color":"#3f789e","font_size":24,"locked":false},{"title":"Initial Renders","bounding":[-605,533,819,953],"color":"#3f789e","font_size":24,"locked":false},{"title":"Batch Shirt Replace","bounding":[1029,-880,1716,965],"color":"#3f789e","font_size":24,"locked":false}],"config":{},"extra":{},"version":0.4} \ No newline at end of file diff --git a/comfyUI_flows/workflow_background_replacement_sdxl_turbo.json b/comfyUI_flows/workflow_background_replacement_sdxl_turbo.json new file mode 100644 index 00000000000..f78e825254a --- /dev/null +++ b/comfyUI_flows/workflow_background_replacement_sdxl_turbo.json @@ -0,0 +1,907 @@ +{ + "last_node_id": 37, + "last_link_id": 74, + "nodes": [ + { + "id": 28, + "type": "LoadImage", + "pos": [ + 20, + 50 + ], + "size": [ + 320, + 310 + ], + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 61, + 71 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "sdxlturbo_example_workflow (1).png", + "image" + ] + }, + { + "id": 31, + "type": "ControlNetApply", + "pos": [ + 828.9744873046875, + 210 + ], + "size": { + "0": 317.4000244140625, + "1": 98 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 59 + }, + { + "name": "control_net", + "type": "CONTROL_NET", + "link": 57 + }, + { + "name": "image", + "type": "IMAGE", + "link": 74 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 60 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ControlNetApply" + }, + "widgets_values": [ + 0.65 + ] + }, + { + "id": 30, + "type": "DiffControlNetLoader", + "pos": [ + 383.69647216796875, + 450 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 56 + } + ], + "outputs": [ + { + "name": "CONTROL_NET", + "type": "CONTROL_NET", + "links": [ + 57 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "DiffControlNetLoader" + }, + "widgets_values": [ + "control-lora-depth-rank128.safetensors" + ] + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 383.69647216796875, + 772.3130493164062 + ], + "size": { + "0": 425.27801513671875, + "1": 180.6060791015625 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 39 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 20 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "cartoon, drawing, anime, semi-realistic, illustration, painting, art, text, greyscale, (black and white), lens flare, watermark, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, floating, levitating" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": [ + 383.69647216796875, + 558 + ], + "size": { + "0": 422.84503173828125, + "1": 164.31304931640625 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 38, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 59 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "on a mossy rock, Loch Ken, Scotland" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 13, + "type": "SamplerCustom", + "pos": [ + 1168.9744873046875, + 50 + ], + "size": { + "0": 355.20001220703125, + "1": 230 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 41, + "slot_index": 0 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 60, + "slot_index": 1 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 20 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 18, + "slot_index": 3 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 49, + "slot_index": 4 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 64, + "slot_index": 5 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 28 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "denoised_output", + "type": "LATENT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "SamplerCustom" + }, + "widgets_values": [ + true, + 595645708105486, + "randomize", + 1 + ] + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 1544.1744995117188, + 50 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 28 + }, + { + "name": "vae", + "type": "VAE", + "link": 40, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 65 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 32, + "type": "Get image size", + "pos": [ + 383.69647216796875, + 50 + ], + "size": { + "0": 210, + "1": 66 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 61 + } + ], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 62 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "INT", + "type": "INT", + "links": [ + 63 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "TUPLE", + "type": "TUPLE", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Get image size" + } + }, + { + "id": 14, + "type": "KSamplerSelect", + "pos": [ + 20, + 410 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "SAMPLER", + "type": "SAMPLER", + "links": [ + 18 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "KSamplerSelect" + }, + "widgets_values": [ + "euler_ancestral" + ] + }, + { + "id": 20, + "type": "CheckpointLoaderSimple", + "pos": [ + 20, + 518 + ], + "size": { + "0": 343.69647216796875, + "1": 98 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 41, + 45, + 56 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 38, + 39 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 40 + ], + "shape": 3, + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "sd_xl_turbo_1.0_fp16.safetensors" + ] + }, + { + "id": 22, + "type": "SDTurboScheduler", + "pos": [ + 383.69647216796875, + 342 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 45, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 49 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "SDTurboScheduler" + }, + "widgets_values": [ + 1 + ] + }, + { + "id": 33, + "type": "EmptyLatentImage", + "pos": [ + 828.9744873046875, + 50 + ], + "size": { + "0": 320, + "1": 110 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "link": 62, + "widget": { + "name": "width" + } + }, + { + "name": "height", + "type": "INT", + "link": 63, + "widget": { + "name": "height" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 64 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 512, + 512, + 4 + ] + }, + { + "id": 37, + "type": "BackgroundReplacement", + "pos": [ + 383.69647216796875, + 166 + ], + "size": { + "0": 315, + "1": 126 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 71 + } + ], + "outputs": [ + { + "name": "depth_image", + "type": "IMAGE", + "links": [ + 74 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "cropped_image", + "type": "IMAGE", + "links": [ + 73 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "BackgroundReplacement" + }, + "widgets_values": [ + 128, + 1, + 5 + ] + }, + { + "id": 35, + "type": "PreviewImage", + "pos": [ + 1960, + -30 + ], + "size": { + "0": 600, + "1": 630 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 67 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 27, + "type": "SaveImage", + "pos": [ + 1990, + 730 + ], + "size": { + "0": 466.7873840332031, + "1": 516.8289794921875 + }, + "flags": {}, + "order": 15, + "mode": 2, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 70 + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 34, + "type": "ImageComposite", + "pos": [ + 1140, + 370 + ], + "size": { + "0": 418.1999816894531, + "1": 46 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "background_image", + "type": "IMAGE", + "link": 65 + }, + { + "name": "overlay_image", + "type": "IMAGE", + "link": 73 + } + ], + "outputs": [ + { + "name": "composited_image", + "type": "IMAGE", + "links": [ + 67, + 70 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageComposite" + } + } + ], + "links": [ + [ + 18, + 14, + 0, + 13, + 3, + "SAMPLER" + ], + [ + 20, + 7, + 0, + 13, + 2, + "CONDITIONING" + ], + [ + 28, + 13, + 0, + 8, + 0, + "LATENT" + ], + [ + 38, + 20, + 1, + 6, + 0, + "CLIP" + ], + [ + 39, + 20, + 1, + 7, + 0, + "CLIP" + ], + [ + 40, + 20, + 2, + 8, + 1, + "VAE" + ], + [ + 41, + 20, + 0, + 13, + 0, + "MODEL" + ], + [ + 45, + 20, + 0, + 22, + 0, + "MODEL" + ], + [ + 49, + 22, + 0, + 13, + 4, + "SIGMAS" + ], + [ + 56, + 20, + 0, + 30, + 0, + "MODEL" + ], + [ + 57, + 30, + 0, + 31, + 1, + "CONTROL_NET" + ], + [ + 59, + 6, + 0, + 31, + 0, + "CONDITIONING" + ], + [ + 60, + 31, + 0, + 13, + 1, + "CONDITIONING" + ], + [ + 61, + 28, + 0, + 32, + 0, + "IMAGE" + ], + [ + 62, + 32, + 0, + 33, + 0, + "INT" + ], + [ + 63, + 32, + 1, + 33, + 1, + "INT" + ], + [ + 64, + 33, + 0, + 13, + 5, + "LATENT" + ], + [ + 65, + 8, + 0, + 34, + 0, + "IMAGE" + ], + [ + 67, + 34, + 0, + 35, + 0, + "IMAGE" + ], + [ + 70, + 34, + 0, + 27, + 0, + "IMAGE" + ], + [ + 71, + 28, + 0, + 37, + 0, + "IMAGE" + ], + [ + 73, + 37, + 1, + 34, + 1, + "IMAGE" + ], + [ + 74, + 37, + 0, + 31, + 2, + "IMAGE" + ] + ], + "groups": [ + { + "title": "Unmute (CTRL-M) if you want to save images.", + "bounding": [ + 1959, + 648, + 536, + 676 + ], + "color": "#3f789e", + "font_size": 24, + "locked": false + } + ], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/comfyui.log b/comfyui.log new file mode 100644 index 00000000000..050d5e7e9d6 --- /dev/null +++ b/comfyui.log @@ -0,0 +1,231 @@ +** ComfyUI startup time: 2024-06-26 19:24:31.973802 +[2024-06-26 19:24] ** Platform: Linux +[2024-06-26 19:24] ** Python version: 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0] +[2024-06-26 19:24] ** Python executable: /home/mclean/miniconda3/envs/ComfyUI2/bin/python +[2024-06-26 19:24] ** Log path: /home/mclean/Documents/GitHub/ComfyUI/comfyui.log +[2024-06-26 19:24] +Prestartup times for custom nodes: +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/rgthree-comfy +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Manager +[2024-06-26 19:24] +Total VRAM 24036 MB, total RAM 31959 MB +[2024-06-26 19:24] xformers version: 0.0.25 +[2024-06-26 19:24] Set vram state to: NORMAL_VRAM +[2024-06-26 19:24] Device: cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync +[2024-06-26 19:24] VAE dtype: torch.bfloat16 +[2024-06-26 19:24] Using xformers cross attention +[2024-06-26 19:24] WAS Node Suite: OpenCV Python FFMPEG support is enabled +[2024-06-26 19:24] WAS Node Suite Warning: `ffmpeg_bin_path` is not set in `/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/was-node-suite-comfyui/was_suite_config.json` config file. Will attempt to use system ffmpeg binaries if available. +[2024-06-26 19:24] WAS Node Suite: Finished. Loaded 211 nodes successfully. +[2024-06-26 19:24] + "Believe in yourself, take on your challenges, and dig deep within yourself to conquer fears." - Chantal Sutherland +[2024-06-26 19:24] +[2024-06-26 19:24] ------------------------------------------ +[2024-06-26 19:24] Comfyroll Studio v1.76 :  175 Nodes Loaded +[2024-06-26 19:24] ------------------------------------------ +[2024-06-26 19:24] ** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md +[2024-06-26 19:24] ** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki +[2024-06-26 19:24] ------------------------------------------ +[2024-06-26 19:24] [AnimateDiffEvo] - ERROR - No motion models found. Please download one and place in: ['/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/models', '/home/mclean/Documents/GitHub/ComfyUI/models/animatediff_models'] +[2024-06-26 19:24] ### Loading: ComfyUI-Inspire-Pack (V0.68.1) +[2024-06-26 19:24] [ReActor] - STATUS - Running v0.4.1-b12 in ComfyUI +[2024-06-26 19:24] Torch version: 2.2.0+cu121 +[2024-06-26 19:24] +[2024-06-26 19:24] [rgthree] Loaded 33 exciting nodes. +[2024-06-26 19:24] [rgthree] Will use rgthree's optimized recursive execution. +[2024-06-26 19:24] +[2024-06-26 19:24] [comfyui_controlnet_aux] | INFO -> Using ckpts path: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts +[2024-06-26 19:24] [comfyui_controlnet_aux] | INFO -> Using symlinks: False +[2024-06-26 19:24] [comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider'] +[2024-06-26 19:24] Traceback (most recent call last): + File "/home/mclean/Documents/GitHub/ComfyUI/nodes.py", line 1888, in load_custom_node + module_spec.loader.exec_module(module) + File "", line 883, in exec_module + File "", line 241, in _call_with_frames_removed + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Background-Replacement/__init__.py", line 8, in + from .background_replacement import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Background-Replacement/background_replacement.py", line 11, in + from .image_utils import ensure_resolution + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Background-Replacement/image_utils.py", line 4, in + from .upscaler import upscale + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Background-Replacement/upscaler.py", line 4, in + from realesrgan import RealESRGANer + File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/realesrgan/__init__.py", line 2, in + from .archs import * + File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/realesrgan/archs/__init__.py", line 2, in + from basicsr.utils import scandir + File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/basicsr/__init__.py", line 4, in + from .data import * + File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/basicsr/data/__init__.py", line 22, in + _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames] + File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/basicsr/data/__init__.py", line 22, in + _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames] + File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/importlib/__init__.py", line 126, in import_module + return _bootstrap._gcd_import(name[level:], package, level) + File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/basicsr/data/realesrgan_dataset.py", line 11, in + from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels + File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/basicsr/data/degradations.py", line 8, in + from torchvision.transforms.functional_tensor import rgb_to_grayscale +ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' + +[2024-06-26 19:24] Cannot import /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Background-Replacement module for custom nodes: No module named 'torchvision.transforms.functional_tensor' +[2024-06-26 19:24] ### Loading: ComfyUI-Impact-Pack (V4.74) +[2024-06-26 19:24] ### Loading: ComfyUI-Impact-Pack (Subpack: V0.4) +[2024-06-26 19:24] [Impact Pack] Wildcards loading done. +[2024-06-26 19:24] Efficiency Nodes: Attempting to add Control Net options to the 'HiRes-Fix Script' Node (comfyui_controlnet_aux add-on)...Success! +[2024-06-26 19:24] Efficiency Nodes Warning: Failed to import python package 'simpleeval'; related nodes disabled. +[2024-06-26 19:24] +[2024-06-26 19:24] [VideoHelperSuite] - WARNING - Failed to import imageio_ffmpeg +[2024-06-26 19:24] Loaded efficiency nodes from /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/efficiency-nodes-comfyui +[2024-06-26 19:24] Loaded ControlNetPreprocessors nodes from /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui_controlnet_aux +[2024-06-26 19:24] [Errno 2] No such file or directory: '/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet/control/control.py/__init__.py' +[2024-06-26 19:24] Could not find AnimateDiff nodes +[2024-06-26 19:24] Loaded IPAdapter nodes from /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus +[2024-06-26 19:24] Traceback (most recent call last): + File "/home/mclean/Documents/GitHub/ComfyUI/nodes.py", line 1888, in load_custom_node + module_spec.loader.exec_module(module) + File "", line 883, in exec_module + File "", line 241, in _call_with_frames_removed + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui-art-venture/__init__.py", line 10, in + from .modules.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui-art-venture/modules/nodes.py", line 54, in + from .inpaint import ( + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui-art-venture/modules/inpaint/__init__.py", line 1, in + from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui-art-venture/modules/inpaint/nodes.py", line 8, in + from .lama import LaMaInpaint + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui-art-venture/modules/inpaint/lama/__init__.py", line 6, in + from omegaconf import OmegaConf +ModuleNotFoundError: No module named 'omegaconf' + +[2024-06-26 19:24] Cannot import /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui-art-venture module for custom nodes: No module named 'omegaconf' +[2024-06-26 19:24] Traceback (most recent call last): + File "/home/mclean/Documents/GitHub/ComfyUI/nodes.py", line 1888, in load_custom_node + module_spec.loader.exec_module(module) + File "", line 883, in exec_module + File "", line 241, in _call_with_frames_removed + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI_Noise/__init__.py", line 1, in + from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI_Noise/nodes.py", line 10, in + import comfy.sampler_helpers +ModuleNotFoundError: No module named 'comfy.sampler_helpers' + +[2024-06-26 19:24] Cannot import /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI_Noise module for custom nodes: No module named 'comfy.sampler_helpers' +[2024-06-26 19:24] Searge-SDXL v4.3.1 in /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/SeargeSDXL +[2024-06-26 19:24] Total VRAM 24036 MB, total RAM 31959 MB +[2024-06-26 19:24] xformers version: 0.0.25 +[2024-06-26 19:24] Set vram state to: NORMAL_VRAM +[2024-06-26 19:24] Device: cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync +[2024-06-26 19:24] VAE dtype: torch.bfloat16 +[2024-06-26 19:24] Traceback (most recent call last): + File "/home/mclean/Documents/GitHub/ComfyUI/nodes.py", line 1888, in load_custom_node + module_spec.loader.exec_module(module) + File "", line 883, in exec_module + File "", line 241, in _call_with_frames_removed + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/facerestore_cf/__init__.py", line 8, in + from custom_nodes.facerestore_cf.facelib.utils.face_restoration_helper import FaceRestoreHelper + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/facerestore_cf/__init__.py", line 14, in + from custom_nodes.facerestore_cf.basicsr.utils.registry import ARCH_REGISTRY + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/facerestore_cf/basicsr/__init__.py", line 5, in + from .losses import * + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/facerestore_cf/basicsr/losses/__init__.py", line 5, in + from .losses import (CharbonnierLoss, GANLoss, L1Loss, MSELoss, PerceptualLoss, WeightedTVLoss, g_path_regularize, + File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/facerestore_cf/basicsr/losses/losses.py", line 2, in + import lpips +ModuleNotFoundError: No module named 'lpips' + +[2024-06-26 19:24] Cannot import /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/facerestore_cf module for custom nodes: No module named 'lpips' +[2024-06-26 19:24] ### Loading: ComfyUI-Manager (V2.7.1) +[2024-06-26 19:24] ### ComfyUI Revision: 2065 [448d9263] | Released on '2024-03-14' +[2024-06-26 19:24] +Import times for custom nodes: +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/SDXLAspectRatio.py +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Image-Selector +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/sdxl_prompt_styler +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/cg-use-everywhere +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUi_NNLatentUpscale +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/stability-ComfyUI-nodes +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/IPAdapter-ComfyUI +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-post-processing-nodes +[2024-06-26 19:24] 0.0 seconds (IMPORT FAILED): /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI_Noise +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/masquerade-nodes-comfyui +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfy-image-saver +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Text_Image-Composite +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfy-plasma +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Custom-Scripts +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/Derfuu_ComfyUI_ModdedNodes +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Frame-Interpolation +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/efficiency-nodes-comfyui +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/rgthree-comfy +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI_essentials +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved +[2024-06-26 19:24] 0.0 seconds (IMPORT FAILED): /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui-art-venture +[2024-06-26 19:24] 0.0 seconds (IMPORT FAILED): /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/facerestore_cf +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-KJNodes +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Manager +[2024-06-26 19:24] 0.0 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Inspire-Pack +[2024-06-26 19:24] 0.1 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyMath +[2024-06-26 19:24] 0.1 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/SeargeSDXL +[2024-06-26 19:24] 0.1 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui_segment_anything +[2024-06-26 19:24] 0.2 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes +[2024-06-26 19:24] 0.2 seconds (IMPORT FAILED): /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Background-Replacement +[2024-06-26 19:24] 0.2 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui-reactor-node +[2024-06-26 19:24] 0.3 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfyui_controlnet_aux +[2024-06-26 19:24] 0.3 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/rembg-comfyui-node +[2024-06-26 19:24] 0.4 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/comfy_PoP +[2024-06-26 19:24] 0.7 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/was-node-suite-comfyui +[2024-06-26 19:24] 4.8 seconds: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Impact-Pack +[2024-06-26 19:24] +[2024-06-26 19:24] Starting server + +[2024-06-26 19:24] To see the GUI go to: http://127.0.0.1:8188 +[2024-06-26 19:24] FETCH DATA from: /home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json +[2024-06-26 19:25] Exception in thread Thread-2 (): +[2024-06-26 19:25] Traceback (most recent call last): +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/aiohttp/connector.py", line 1173, in _create_direct_connection +[2024-06-26 19:25] hosts = await asyncio.shield(host_resolved) +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/aiohttp/connector.py", line 884, in _resolve_host +[2024-06-26 19:25] addrs = await self._resolver.resolve(host, port, family=self._family) +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/aiohttp/resolver.py", line 33, in resolve +[2024-06-26 19:25] infos = await self._loop.getaddrinfo( +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/asyncio/base_events.py", line 863, in getaddrinfo +[2024-06-26 19:25] return await self.run_in_executor( +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/concurrent/futures/thread.py", line 58, in run +[2024-06-26 19:25] result = self.fn(*self.args, **self.kwargs) +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/socket.py", line 955, in getaddrinfo +[2024-06-26 19:25] for res in _socket.getaddrinfo(host, port, family, type, proto, flags): +[2024-06-26 19:25] socket.gaierror: [Errno -3] Temporary failure in name resolution +[2024-06-26 19:25] +The above exception was the direct cause of the following exception: + +[2024-06-26 19:25] Traceback (most recent call last): +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/threading.py", line 1016, in _bootstrap_inner +[2024-06-26 19:25] self.run() +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/threading.py", line 953, in run +[2024-06-26 19:25] self._target(*self._args, **self._kwargs) +[2024-06-26 19:25] File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Manager/__init__.py", line 2359, in +[2024-06-26 19:25] threading.Thread(target=lambda: asyncio.run(default_cache_update())).start() +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/asyncio/runners.py", line 44, in run +[2024-06-26 19:25] return loop.run_until_complete(main) +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete +[2024-06-26 19:25] return future.result() +[2024-06-26 19:25] File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Manager/__init__.py", line 2356, in default_cache_update +[2024-06-26 19:25] await asyncio.gather(a, b, c, d) +[2024-06-26 19:25] File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Manager/__init__.py", line 2344, in get_cache +[2024-06-26 19:25] json_obj = await get_data(uri, True) +[2024-06-26 19:25] File "/home/mclean/Documents/GitHub/ComfyUI/custom_nodes/ComfyUI-Manager/__init__.py", line 547, in get_data +[2024-06-26 19:25] async with session.get(uri) as resp: +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/aiohttp/client.py", line 1194, in __aenter__ +[2024-06-26 19:25] self._resp = await self._coro +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/aiohttp/client.py", line 578, in _request +[2024-06-26 19:25] conn = await self._connector.connect( +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect +[2024-06-26 19:25] proto = await self._create_connection(req, traces, timeout) +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/aiohttp/connector.py", line 911, in _create_connection +[2024-06-26 19:25] _, proto = await self._create_direct_connection(req, traces, timeout) +[2024-06-26 19:25] File "/home/mclean/miniconda3/envs/ComfyUI2/lib/python3.10/site-packages/aiohttp/connector.py", line 1187, in _create_direct_connection +[2024-06-26 19:25] raise ClientConnectorError(req.connection_key, exc) from exc +[2024-06-26 19:25] aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host raw.githubusercontent.com:443 ssl:default [Temporary failure in name resolution] diff --git a/pysssss-workflows/EXPERIMENT_APRIL7.json b/pysssss-workflows/EXPERIMENT_APRIL7.json new file mode 100644 index 00000000000..0b92014f7cf --- /dev/null +++ b/pysssss-workflows/EXPERIMENT_APRIL7.json @@ -0,0 +1 @@ +{"last_node_id": 91, "last_link_id": 206, "nodes": [{"id": 59, "type": "GroundingDinoModelLoader (segment anything)", "pos": [-1334, -234], "size": {"0": 361.20001220703125, "1": 58}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "GROUNDING_DINO_MODEL", "type": "GROUNDING_DINO_MODEL", "links": [152], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "GroundingDinoModelLoader (segment anything)"}, "widgets_values": ["GroundingDINO_SwinB (938MB)"]}, {"id": 61, "type": "GroundingDinoSAMSegment (segment anything)", "pos": [-1366, -90], "size": {"0": 352.79998779296875, "1": 122}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "sam_model", "type": "SAM_MODEL", "link": 151}, {"name": "grounding_dino_model", "type": "GROUNDING_DINO_MODEL", "link": 152}, {"name": "image", "type": "IMAGE", "link": 153}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [154], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [155], "shape": 3}], "properties": {"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"}, "widgets_values": ["women", 0.3]}, {"id": 64, "type": "MaskToImage", "pos": [-976, 49], "size": {"0": 210, "1": 26}, "flags": {}, "order": 17, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 156}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [157], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "MaskToImage"}}, {"id": 65, "type": "PreviewImage", "pos": [-971, 159], "size": {"0": 210, "1": 246}, "flags": {}, "order": 19, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 157}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 58, "type": "SAMModelLoader (segment anything)", "pos": [-1300, -360], "size": {"0": 315, "1": 58}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "SAM_MODEL", "type": "SAM_MODEL", "links": [151], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "SAMModelLoader (segment anything)"}, "widgets_values": ["sam_hq_vit_h (2.57GB)"]}, {"id": 63, "type": "InvertMask (segment anything)", "pos": [-983, -43], "size": {"0": 243.60000610351562, "1": 26}, "flags": {}, "order": 13, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 155, "slot_index": 0}], "outputs": [{"name": "MASK", "type": "MASK", "links": [156, 178], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "InvertMask (segment anything)"}}, {"id": 74, "type": "VAEEncodeForInpaint", "pos": [-633, -75], "size": {"0": 315, "1": 98}, "flags": {}, "order": 18, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 177, "slot_index": 0}, {"name": "vae", "type": "VAE", "link": 179, "slot_index": 1}, {"name": "mask", "type": "MASK", "link": 178}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [180], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "VAEEncodeForInpaint"}, "widgets_values": [6]}, {"id": 62, "type": "PreviewImage", "pos": [-1015, 454], "size": {"0": 210, "1": 246}, "flags": {}, "order": 12, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 154}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 71, "type": "CLIPTextEncode", "pos": [-229, -222], "size": {"0": 400, "1": 200}, "flags": {}, "order": 8, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 172}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [173], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["mutliple women"]}, {"id": 76, "type": "UpscaleModelLoader", "pos": [290, 395], "size": {"0": 315, "1": 58}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "UPSCALE_MODEL", "type": "UPSCALE_MODEL", "links": [182], "slot_index": 0}], "properties": {"Node name for S&R": "UpscaleModelLoader"}, "widgets_values": ["4x_NMKD-Siax_200k.pth"]}, {"id": 84, "type": "Zoe-DepthMapPreprocessor", "pos": [-361.05522949218744, -765.1600781249999], "size": {"0": 315, "1": 58}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 192}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [194], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "Zoe-DepthMapPreprocessor"}, "widgets_values": [512]}, {"id": 85, "type": "PreviewImage", "pos": [823, -1203], "size": [210, 246], "flags": {}, "order": 16, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 194}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 82, "type": "PreviewImage", "pos": [1023, -918], "size": [210, 246], "flags": {}, "order": 14, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 190}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 72, "type": "KSampler", "pos": [442, -462], "size": {"0": 315, "1": 262}, "flags": {}, "order": 20, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 175}, {"name": "positive", "type": "CONDITIONING", "link": 200}, {"name": "negative", "type": "CONDITIONING", "link": 173}, {"name": "latent_image", "type": "LATENT", "link": 180, "slot_index": 3}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [176], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [481582046741638, "randomize", 20, 8, "euler", "normal", 1]}, {"id": 79, "type": "CannyEdgePreprocessor", "pos": [-1030, -875], "size": {"0": 315, "1": 106}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 189, "slot_index": 0}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [190, 195], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CannyEdgePreprocessor"}, "widgets_values": [100, 200, 512]}, {"id": 29, "type": "CheckpointLoaderSimple", "pos": [-894, -1080], "size": {"0": 315, "1": 98}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [175], "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [171, 172], "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [113, 179], "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["Deliberate_v1.1-inpainting.safetensors"], "color": "#323", "bgcolor": "#535"}, {"id": 81, "type": "ControlNetApply", "pos": [315, -812], "size": {"0": 317.4000244140625, "1": 98}, "flags": {}, "order": 15, "mode": 0, "inputs": [{"name": "conditioning", "type": "CONDITIONING", "link": 201, "slot_index": 0}, {"name": "control_net", "type": "CONTROL_NET", "link": 187, "slot_index": 1}, {"name": "image", "type": "IMAGE", "link": 195, "slot_index": 2}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [200], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetApply"}, "widgets_values": [0.5]}, {"id": 80, "type": "ControlNetLoader", "pos": [76, -1226], "size": {"0": 315, "1": 58}, "flags": {}, "order": 4, "mode": 0, "outputs": [{"name": "CONTROL_NET", "type": "CONTROL_NET", "links": [187], "shape": 3}], "properties": {"Node name for S&R": "ControlNetLoader"}, "widgets_values": ["sd1.5/sd-controlnet-canny.safetensors"]}, {"id": 8, "type": "VAEDecode", "pos": [809, -397], "size": {"0": 210, "1": 46}, "flags": {}, "order": 21, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 176}, {"name": "vae", "type": "VAE", "link": 113}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [191, 203], "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}, "color": "#323", "bgcolor": "#535"}, {"id": 87, "type": "ImageBlur", "pos": [317, -22], "size": {"0": 315, "1": 82}, "flags": {}, "order": 23, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 203}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [202, 204], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ImageBlur"}, "widgets_values": [1, 1]}, {"id": 77, "type": "ImageUpscaleWithModel", "pos": [536, 316], "size": {"0": 241.79998779296875, "1": 46}, "flags": {}, "order": 24, "mode": 0, "inputs": [{"name": "upscale_model", "type": "UPSCALE_MODEL", "link": 182}, {"name": "image", "type": "IMAGE", "link": 202, "slot_index": 1}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [197, 205], "slot_index": 0}], "properties": {"Node name for S&R": "ImageUpscaleWithModel"}}, {"id": 88, "type": "PreviewImage", "pos": [1135, -119], "size": [210, 246], "flags": {}, "order": 25, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 204}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 66, "type": "LoadImage", "pos": [951, 477], "size": {"0": 220, "1": 320}, "flags": {}, "order": 5, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [170], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["Mia_face (28).png", "image"]}, {"id": 67, "type": "ReActorFaceSwap", "pos": [1510, 325], "size": {"0": 315, "1": 338}, "flags": {}, "order": 26, "mode": 0, "inputs": [{"name": "source_image", "type": "IMAGE", "link": 170, "slot_index": 0}, {"name": "input_image", "type": "IMAGE", "link": 197, "slot_index": 1}, {"name": "face_model", "type": "FACE_MODEL", "link": null}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [206], "shape": 3, "slot_index": 0}, {"name": "FACE_MODEL", "type": "FACE_MODEL", "links": null, "shape": 3}], "properties": {"Node name for S&R": "ReActorFaceSwap"}, "widgets_values": [true, "inswapper_128.onnx", "retinaface_resnet50", "GFPGANv1.4.pth", 1, 1, "female", "female", "0", "0", 1]}, {"id": 91, "type": "PreviewImage", "pos": [1552, -124], "size": [210, 246], "flags": {}, "order": 28, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 206}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 60, "type": "LoadImage", "pos": [-1673, -594], "size": {"0": 315, "1": 314.0000305175781}, "flags": {}, "order": 6, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [153, 177, 189, 192], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["0016-13_w400.jpg", "image"]}, {"id": 70, "type": "CLIPTextEncode", "pos": [-331, -1043], "size": {"0": 400, "1": 200}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 171}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [201], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["a women standing in the bedroom"]}, {"id": 83, "type": "PreviewImage", "pos": [846, -135], "size": [210, 246], "flags": {}, "order": 22, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 191}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 89, "type": "PreviewImage", "pos": [1319, -151], "size": [210, 246], "flags": {}, "order": 27, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 205}], "properties": {"Node name for S&R": "PreviewImage"}}], "links": [[113, 29, 2, 8, 1, "VAE"], [151, 58, 0, 61, 0, "SAM_MODEL"], [152, 59, 0, 61, 1, "GROUNDING_DINO_MODEL"], [153, 60, 0, 61, 2, "IMAGE"], [154, 61, 0, 62, 0, "IMAGE"], [155, 61, 1, 63, 0, "MASK"], [156, 63, 0, 64, 0, "MASK"], [157, 64, 0, 65, 0, "IMAGE"], [170, 66, 0, 67, 0, "IMAGE"], [171, 29, 1, 70, 0, "CLIP"], [172, 29, 1, 71, 0, "CLIP"], [173, 71, 0, 72, 2, "CONDITIONING"], [175, 29, 0, 72, 0, "MODEL"], [176, 72, 0, 8, 0, "LATENT"], [177, 60, 0, 74, 0, "IMAGE"], [178, 63, 0, 74, 2, "MASK"], [179, 29, 2, 74, 1, "VAE"], [180, 74, 0, 72, 3, "LATENT"], [182, 76, 0, 77, 0, "UPSCALE_MODEL"], [187, 80, 0, 81, 1, "CONTROL_NET"], [189, 60, 0, 79, 0, "IMAGE"], [190, 79, 0, 82, 0, "IMAGE"], [191, 8, 0, 83, 0, "IMAGE"], [192, 60, 0, 84, 0, "IMAGE"], [194, 84, 0, 85, 0, "IMAGE"], [195, 79, 0, 81, 2, "IMAGE"], [197, 77, 0, 67, 1, "IMAGE"], [200, 81, 0, 72, 1, "CONDITIONING"], [201, 70, 0, 81, 0, "CONDITIONING"], [202, 87, 0, 77, 1, "IMAGE"], [203, 8, 0, 87, 0, "IMAGE"], [204, 87, 0, 88, 0, "IMAGE"], [205, 77, 0, 89, 0, "IMAGE"], [206, 67, 0, 91, 0, "IMAGE"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/EXPIREMENT_APRIL9.json b/pysssss-workflows/EXPIREMENT_APRIL9.json new file mode 100644 index 00000000000..3ce40b4f52f --- /dev/null +++ b/pysssss-workflows/EXPIREMENT_APRIL9.json @@ -0,0 +1 @@ +{"last_node_id": 99, "last_link_id": 206, "nodes": [{"id": 37, "type": "CLIPTextEncodeSDXL", "pos": [682, 683], "size": {"0": 400, "1": 270}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 105, "slot_index": 0}, {"name": "text_g", "type": "STRING", "link": 104, "widget": {"name": "text_g"}, "slot_index": 5}, {"name": "text_l", "type": "STRING", "link": 109, "widget": {"name": "text_l"}}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [108], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncodeSDXL"}, "widgets_values": [1024, 1024, 0, 0, 1024, 1024, "deformed", "deformed"], "color": "#322", "bgcolor": "#533"}, {"id": 33, "type": "Get image size", "pos": [387, 495], "size": {"0": 210, "1": 66}, "flags": {}, "order": 12, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 160}], "outputs": [{"name": "INT", "type": "INT", "links": [95, 100], "shape": 3, "slot_index": 0}, {"name": "INT", "type": "INT", "links": [96, 101], "shape": 3, "slot_index": 1}, {"name": "TUPLE", "type": "TUPLE", "links": null, "shape": 3}], "properties": {"Node name for S&R": "Get image size"}, "color": "#222", "bgcolor": "#000"}, {"id": 58, "type": "SAMModelLoader (segment anything)", "pos": [-1341.3001446561248, 255.45407693943753], "size": {"0": 315, "1": 58}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "SAM_MODEL", "type": "SAM_MODEL", "links": [151], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "SAMModelLoader (segment anything)"}, "widgets_values": ["sam_hq_vit_h (2.57GB)"]}, {"id": 59, "type": "GroundingDinoModelLoader (segment anything)", "pos": [-1351.3001446561248, 355.4540769394375], "size": {"0": 361.20001220703125, "1": 58}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "GROUNDING_DINO_MODEL", "type": "GROUNDING_DINO_MODEL", "links": [152], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "GroundingDinoModelLoader (segment anything)"}, "widgets_values": ["GroundingDINO_SwinB (938MB)"]}, {"id": 65, "type": "PreviewImage", "pos": [-285, 486], "size": {"0": 210, "1": 246}, "flags": {}, "order": 23, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 157}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 63, "type": "InvertMask (segment anything)", "pos": [-281, 260], "size": {"0": 243.60000610351562, "1": 26}, "flags": {}, "order": 16, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 155, "slot_index": 0}], "outputs": [{"name": "MASK", "type": "MASK", "links": [156, 158], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "InvertMask (segment anything)"}}, {"id": 64, "type": "MaskToImage", "pos": [-274, 371], "size": {"0": 210, "1": 26}, "flags": {}, "order": 20, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 156}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [157], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "MaskToImage"}}, {"id": 62, "type": "PreviewImage", "pos": [-503, 503], "size": {"0": 210, "1": 246}, "flags": {}, "order": 15, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 154}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 49, "type": "LoraStackLoader_PoP", "pos": [381, 60], "size": {"0": 315, "1": 342}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 161}, {"name": "clip", "type": "CLIP", "link": 138, "slot_index": 1}], "outputs": [{"name": "MODEL", "type": "MODEL", "links": [137], "shape": 3, "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [135], "shape": 3}], "properties": {"Node name for S&R": "LoraStackLoader_PoP"}, "widgets_values": ["Off", "None", 1.3, 1, "Off", "None", 1, 1, "Off", "None", 1, 1], "color": "#432", "bgcolor": "#653"}, {"id": 3, "type": "KSampler", "pos": [1418, 504], "size": {"0": 315, "1": 262}, "flags": {}, "order": 25, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 137}, {"name": "positive", "type": "CONDITIONING", "link": 205}, {"name": "negative", "type": "CONDITIONING", "link": 108}, {"name": "latent_image", "type": "LATENT", "link": 72}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [126], "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [914067348732716, "randomize", 25, 6, "dpmpp_sde", "karras", 1], "color": "#223", "bgcolor": "#335"}, {"id": 26, "type": "VAEEncodeForInpaint", "pos": [366, 689], "size": {"0": 226.8000030517578, "1": 98}, "flags": {}, "order": 21, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 159}, {"name": "vae", "type": "VAE", "link": 83}, {"name": "mask", "type": "MASK", "link": 158}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [72], "slot_index": 0}], "properties": {"Node name for S&R": "VAEEncodeForInpaint"}, "widgets_values": [20], "color": "#323", "bgcolor": "#535"}, {"id": 34, "type": "CLIPTextEncodeSDXL", "pos": [820, 314], "size": {"0": 400, "1": 274}, "flags": {"collapsed": false}, "order": 17, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 135, "slot_index": 0}, {"name": "width", "type": "INT", "link": 95, "widget": {"name": "width"}}, {"name": "height", "type": "INT", "link": 96, "widget": {"name": "height"}}, {"name": "target_width", "type": "INT", "link": 100, "widget": {"name": "target_width"}}, {"name": "target_height", "type": "INT", "link": 101, "widget": {"name": "target_height"}}, {"name": "text_g", "type": "STRING", "link": 111, "widget": {"name": "text_g"}, "slot_index": 5}, {"name": "text_l", "type": "STRING", "link": 112, "widget": {"name": "text_l"}}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [193], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncodeSDXL"}, "widgets_values": [1024, 1024, 0, 0, 1024, 1024, "women standing in the bedroom, background hotel room curtains and window", "women standing in the bedroom, background hotel room curtains and window"], "color": "#232", "bgcolor": "#353"}, {"id": 8, "type": "VAEDecode", "pos": [1298, 396], "size": {"0": 210, "1": 46}, "flags": {}, "order": 26, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 126}, {"name": "vae", "type": "VAE", "link": 113}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [149, 198], "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}, "color": "#323", "bgcolor": "#535"}, {"id": 94, "type": "PreviewImage", "pos": [-425, 884], "size": [210, 246], "flags": {}, "order": 18, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 197}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 29, "type": "CheckpointLoaderSimple", "pos": [8, 132], "size": {"0": 315, "1": 98}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [161], "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [105, 138], "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [83, 113], "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["RealVisXL_V4.0.safetensors"], "color": "#323", "bgcolor": "#535"}, {"id": 36, "type": "PrimitiveNode", "pos": [39, 474], "size": {"0": 255.1137237548828, "1": 112.41053771972656}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "STRING", "type": "STRING", "links": [104, 109], "widget": {"name": "text_g"}, "slot_index": 0}], "properties": {"Run widget replace on values": false}, "widgets_values": ["deformed"], "color": "#322", "bgcolor": "#533"}, {"id": 91, "type": "Zoe-DepthMapPreprocessor", "pos": [862, -266], "size": {"0": 315, "1": 58}, "flags": {}, "order": 13, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 195, "slot_index": 0}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [192, 197], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "Zoe-DepthMapPreprocessor"}, "widgets_values": [512]}, {"id": 97, "type": "CannyEdgePreprocessor", "pos": [1022, -500], "size": {"0": 315, "1": 106}, "flags": {}, "order": 14, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 202}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [201, 203], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CannyEdgePreprocessor"}, "widgets_values": [100, 200, 512]}, {"id": 98, "type": "PreviewImage", "pos": [-409, 1223], "size": [210, 246], "flags": {}, "order": 19, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 203}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 92, "type": "ControlNetApply", "pos": [1306, -241], "size": {"0": 317.4000244140625, "1": 98}, "flags": {}, "order": 22, "mode": 0, "inputs": [{"name": "conditioning", "type": "CONDITIONING", "link": 193}, {"name": "control_net", "type": "CONTROL_NET", "link": 191}, {"name": "image", "type": "IMAGE", "link": 192}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [204], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetApply"}, "widgets_values": [0.8]}, {"id": 93, "type": "ControlNetLoader", "pos": [864, -102], "size": {"0": 315, "1": 58}, "flags": {}, "order": 4, "mode": 0, "outputs": [{"name": "CONTROL_NET", "type": "CONTROL_NET", "links": [191], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetLoader"}, "widgets_values": ["control-lora-depth-rank128.safetensors"]}, {"id": 99, "type": "ControlNetLoader", "pos": [1622, -524], "size": {"0": 315, "1": 58}, "flags": {}, "order": 5, "mode": 0, "outputs": [{"name": "CONTROL_NET", "type": "CONTROL_NET", "links": [206], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetLoader"}, "widgets_values": ["canny_sdxl.safetensors"]}, {"id": 96, "type": "ControlNetApply", "pos": [1693, -373], "size": {"0": 317.4000244140625, "1": 98}, "flags": {}, "order": 24, "mode": 0, "inputs": [{"name": "conditioning", "type": "CONDITIONING", "link": 204}, {"name": "control_net", "type": "CONTROL_NET", "link": 206}, {"name": "image", "type": "IMAGE", "link": 201}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [205], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetApply"}, "widgets_values": [0.5]}, {"id": 76, "type": "LoadImage", "pos": [-730, 1108], "size": {"0": 220, "1": 320}, "flags": {}, "order": 6, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [171], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["Mia_face (28).png", "image"]}, {"id": 77, "type": "ReActorFaceSwap", "pos": [344, 1230], "size": {"0": 315, "1": 338}, "flags": {}, "order": 28, "mode": 0, "inputs": [{"name": "source_image", "type": "IMAGE", "link": 171, "slot_index": 0}, {"name": "input_image", "type": "IMAGE", "link": 198, "slot_index": 1}, {"name": "face_model", "type": "FACE_MODEL", "link": null}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [200], "shape": 3, "slot_index": 0}, {"name": "FACE_MODEL", "type": "FACE_MODEL", "links": null, "shape": 3}], "properties": {"Node name for S&R": "ReActorFaceSwap"}, "widgets_values": [true, "inswapper_128.onnx", "retinaface_resnet50", "GFPGANv1.4.pth", 1, 1, "female", "female", "0", "0", 1]}, {"id": 95, "type": "SaveImage", "pos": [710, 1105], "size": [480.01080897435554, 469.6061990748349], "flags": {}, "order": 29, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 200}], "properties": {}, "widgets_values": ["maddy/2/maddy"]}, {"id": 57, "type": "PreviewImage", "pos": [-129, 876], "size": {"0": 434.7059326171875, "1": 455.4924011230469}, "flags": {}, "order": 27, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 149}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 60, "type": "LoadImage", "pos": [-850, 650], "size": {"0": 315, "1": 314.0000305175781}, "flags": {}, "order": 7, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [153, 159, 160, 195, 202], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["0003-10 (2).jpg", "image"]}, {"id": 35, "type": "PrimitiveNode", "pos": [71, 304], "size": {"0": 255.1137237548828, "1": 112.41053771972656}, "flags": {}, "order": 8, "mode": 0, "outputs": [{"name": "STRING", "type": "STRING", "links": [111, 112], "slot_index": 0, "widget": {"name": "text_g"}}], "properties": {"Run widget replace on values": false}, "widgets_values": ["women standing in the bedroom, background hotel room curtains and window"], "color": "#232", "bgcolor": "#353"}, {"id": 61, "type": "GroundingDinoSAMSegment (segment anything)", "pos": [-836, 367], "size": {"0": 352.79998779296875, "1": 122}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "sam_model", "type": "SAM_MODEL", "link": 151}, {"name": "grounding_dino_model", "type": "GROUNDING_DINO_MODEL", "link": 152}, {"name": "image", "type": "IMAGE", "link": 153}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [154], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [155], "shape": 3}], "properties": {"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"}, "widgets_values": ["women", 0.3]}], "links": [[72, 26, 0, 3, 3, "LATENT"], [83, 29, 2, 26, 1, "VAE"], [95, 33, 0, 34, 1, "INT"], [96, 33, 1, 34, 2, "INT"], [100, 33, 0, 34, 3, "INT"], [101, 33, 1, 34, 4, "INT"], [104, 36, 0, 37, 1, "STRING"], [105, 29, 1, 37, 0, "CLIP"], [108, 37, 0, 3, 2, "CONDITIONING"], [109, 36, 0, 37, 2, "STRING"], [111, 35, 0, 34, 5, "STRING"], [112, 35, 0, 34, 6, "STRING"], [113, 29, 2, 8, 1, "VAE"], [126, 3, 0, 8, 0, "LATENT"], [135, 49, 1, 34, 0, "CLIP"], [137, 49, 0, 3, 0, "MODEL"], [138, 29, 1, 49, 1, "CLIP"], [149, 8, 0, 57, 0, "IMAGE"], [151, 58, 0, 61, 0, "SAM_MODEL"], [152, 59, 0, 61, 1, "GROUNDING_DINO_MODEL"], [153, 60, 0, 61, 2, "IMAGE"], [154, 61, 0, 62, 0, "IMAGE"], [155, 61, 1, 63, 0, "MASK"], [156, 63, 0, 64, 0, "MASK"], [157, 64, 0, 65, 0, "IMAGE"], [158, 63, 0, 26, 2, "MASK"], [159, 60, 0, 26, 0, "IMAGE"], [160, 60, 0, 33, 0, "IMAGE"], [161, 29, 0, 49, 0, "MODEL"], [171, 76, 0, 77, 0, "IMAGE"], [191, 93, 0, 92, 1, "CONTROL_NET"], [192, 91, 0, 92, 2, "IMAGE"], [193, 34, 0, 92, 0, "CONDITIONING"], [195, 60, 0, 91, 0, "IMAGE"], [197, 91, 0, 94, 0, "IMAGE"], [198, 8, 0, 77, 1, "IMAGE"], [200, 77, 0, 95, 0, "IMAGE"], [201, 97, 0, 96, 2, "IMAGE"], [202, 60, 0, 97, 0, "IMAGE"], [203, 97, 0, 98, 0, "IMAGE"], [204, 92, 0, 96, 0, "CONDITIONING"], [205, 96, 0, 3, 1, "CONDITIONING"], [206, 99, 0, 96, 1, "CONTROL_NET"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/IPAdapter_Contolnet_cannydepth.json b/pysssss-workflows/IPAdapter_Contolnet_cannydepth.json new file mode 100644 index 00000000000..ddd09b3b5ba --- /dev/null +++ b/pysssss-workflows/IPAdapter_Contolnet_cannydepth.json @@ -0,0 +1 @@ +{"last_node_id": 21, "last_link_id": 27, "nodes": [{"id": 8, "type": "CLIPTextEncode", "pos": [650, 420], "size": {"0": 210, "1": 120}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 6}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [9], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["blurry, horror"], "color": "#322", "bgcolor": "#533"}, {"id": 13, "type": "Canny", "pos": [290, 860], "size": {"0": 210, "1": 82}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 14}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [18, 19], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "Canny"}, "widgets_values": [0.1, 0.5]}, {"id": 3, "type": "IPAdapterModelLoader", "pos": [290, 60], "size": {"0": 300, "1": 60}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "IPADAPTER", "type": "IPADAPTER", "links": [1], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "IPAdapterModelLoader"}, "widgets_values": ["BEN_USE_THIS/ip-adapter-plus-face_sdxl_vit-h.safetensors"]}, {"id": 5, "type": "IPAdapterApply", "pos": [656, -51], "size": {"0": 210, "1": 258}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "ipadapter", "type": "IPADAPTER", "link": 1}, {"name": "clip_vision", "type": "CLIP_VISION", "link": 2}, {"name": "image", "type": "IMAGE", "link": 3}, {"name": "model", "type": "MODEL", "link": 4}, {"name": "attn_mask", "type": "MASK", "link": null}], "outputs": [{"name": "MODEL", "type": "MODEL", "links": [7], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "IPAdapterApply"}, "widgets_values": [0.8, 0, "original", 0, 1, false]}, {"id": 11, "type": "VAEDecode", "pos": [1300, 170], "size": {"0": 140, "1": 50}, "flags": {}, "order": 18, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 11}, {"name": "vae", "type": "VAE", "link": 20, "slot_index": 1}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [13], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}}, {"id": 17, "type": "PreviewImage", "pos": [517, 940], "size": {"0": 210, "1": 246}, "flags": {}, "order": 14, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 19}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 1, "type": "CheckpointLoaderSimple", "pos": [290, 280], "size": {"0": 300, "1": 100}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [4], "shape": 3, "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [5, 6], "shape": 3, "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [20], "shape": 3, "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["RealVisXL_V4.0.safetensors"]}, {"id": 4, "type": "CLIPVisionLoader", "pos": [290, 170], "size": {"0": 300, "1": 60}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "CLIP_VISION", "type": "CLIP_VISION", "links": [2], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPVisionLoader"}, "widgets_values": ["sd1.5/BEN_USE_THIS/model.safetensors"]}, {"id": 10, "type": "EmptyLatentImage", "pos": [650, 590], "size": {"0": 210, "1": 110}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "LATENT", "type": "LATENT", "links": [10], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "EmptyLatentImage"}, "widgets_values": [1024, 1024, 1]}, {"id": 7, "type": "CLIPTextEncode", "pos": [650, 250], "size": {"0": 210, "1": 120}, "flags": {}, "order": 8, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 5}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [16], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["beautiful naked women wearing stockings, shaved vagina"], "color": "#232", "bgcolor": "#353"}, {"id": 6, "type": "LoadImage", "pos": [40, 60], "size": {"0": 220, "1": 320}, "flags": {}, "order": 4, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [3], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["ComfyUI_temp_jnarh_00001_ (8).png", "image"]}, {"id": 12, "type": "SaveImage", "pos": [1297, 270], "size": {"0": 400, "1": 450}, "flags": {}, "order": 19, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 13}], "properties": {}, "widgets_values": ["IPAdapter"]}, {"id": 14, "type": "LoadImage", "pos": [50, 860], "size": [210, 314], "flags": {}, "order": 5, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [14, 21], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["0003-10 (1).jpg", "image"]}, {"id": 19, "type": "PreviewImage", "pos": [805, 1161], "size": [210, 246], "flags": {}, "order": 15, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 22}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 15, "type": "ControlNetLoader", "pos": [40, 596], "size": {"0": 310, "1": 60}, "flags": {"collapsed": false}, "order": 6, "mode": 0, "outputs": [{"name": "CONTROL_NET", "type": "CONTROL_NET", "links": [15], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetLoader"}, "widgets_values": ["canny_sdxl.safetensors"]}, {"id": 18, "type": "Zoe-DepthMapPreprocessor", "pos": [396.5147536210005, 1265.0287114019686], "size": {"0": 315, "1": 58}, "flags": {}, "order": 12, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 21, "slot_index": 0}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [22, 24], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "Zoe-DepthMapPreprocessor"}, "widgets_values": [512]}, {"id": 16, "type": "ControlNetApply", "pos": [591, 793], "size": {"0": 317.4000244140625, "1": 98}, "flags": {}, "order": 13, "mode": 0, "inputs": [{"name": "conditioning", "type": "CONDITIONING", "link": 16}, {"name": "control_net", "type": "CONTROL_NET", "link": 15}, {"name": "image", "type": "IMAGE", "link": 18}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [25], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetApply"}, "widgets_values": [0.8]}, {"id": 9, "type": "KSampler", "pos": [930, 170], "size": {"0": 315, "1": 262}, "flags": {}, "order": 17, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 7}, {"name": "positive", "type": "CONDITIONING", "link": 27}, {"name": "negative", "type": "CONDITIONING", "link": 9}, {"name": "latent_image", "type": "LATENT", "link": 10}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [11], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [0, "fixed", 30, 6, "ddim", "ddim_uniform", 1]}, {"id": 21, "type": "ControlNetLoader", "pos": [951, 879], "size": {"0": 315, "1": 58}, "flags": {}, "order": 7, "mode": 0, "outputs": [{"name": "CONTROL_NET", "type": "CONTROL_NET", "links": [26], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetLoader"}, "widgets_values": ["control-lora-depth-rank256.safetensors"]}, {"id": 20, "type": "ControlNetApply", "pos": [932, 1006], "size": {"0": 317.4000244140625, "1": 98}, "flags": {}, "order": 16, "mode": 0, "inputs": [{"name": "conditioning", "type": "CONDITIONING", "link": 25}, {"name": "control_net", "type": "CONTROL_NET", "link": 26}, {"name": "image", "type": "IMAGE", "link": 24}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [27], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetApply"}, "widgets_values": [1]}], "links": [[1, 3, 0, 5, 0, "IPADAPTER"], [2, 4, 0, 5, 1, "CLIP_VISION"], [3, 6, 0, 5, 2, "IMAGE"], [4, 1, 0, 5, 3, "MODEL"], [5, 1, 1, 7, 0, "CLIP"], [6, 1, 1, 8, 0, "CLIP"], [7, 5, 0, 9, 0, "MODEL"], [9, 8, 0, 9, 2, "CONDITIONING"], [10, 10, 0, 9, 3, "LATENT"], [11, 9, 0, 11, 0, "LATENT"], [13, 11, 0, 12, 0, "IMAGE"], [14, 14, 0, 13, 0, "IMAGE"], [15, 15, 0, 16, 1, "CONTROL_NET"], [16, 7, 0, 16, 0, "CONDITIONING"], [18, 13, 0, 16, 2, "IMAGE"], [19, 13, 0, 17, 0, "IMAGE"], [20, 1, 2, 11, 1, "VAE"], [21, 14, 0, 18, 0, "IMAGE"], [22, 18, 0, 19, 0, "IMAGE"], [24, 18, 0, 20, 2, "IMAGE"], [25, 16, 0, 20, 0, "CONDITIONING"], [26, 21, 0, 20, 1, "CONTROL_NET"], [27, 20, 0, 9, 1, "CONDITIONING"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/IPAdapter_inpaint_SDXL.json.json b/pysssss-workflows/IPAdapter_inpaint_SDXL.json.json new file mode 100644 index 00000000000..f0b42c4232b --- /dev/null +++ b/pysssss-workflows/IPAdapter_inpaint_SDXL.json.json @@ -0,0 +1 @@ +{"last_node_id": 24, "last_link_id": 42, "nodes": [{"id": 8, "type": "CLIPTextEncode", "pos": [650, 420], "size": {"0": 210, "1": 120}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 6}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [9], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["blurry, horror"], "color": "#322", "bgcolor": "#533"}, {"id": 12, "type": "SaveImage", "pos": [1300, 270], "size": {"0": 400, "1": 450}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 13}], "properties": {}, "widgets_values": ["IPAdapter"]}, {"id": 9, "type": "KSampler", "pos": [930, 170], "size": {"0": 315, "1": 262}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 7}, {"name": "positive", "type": "CONDITIONING", "link": 25}, {"name": "negative", "type": "CONDITIONING", "link": 9}, {"name": "latent_image", "type": "LATENT", "link": 32}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [11], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [34, "fixed", 35, 6, "ddim", "ddim_uniform", 1]}, {"id": 5, "type": "IPAdapterApply", "pos": [654, -60], "size": {"0": 210, "1": 258}, "flags": {}, "order": 5, "mode": 0, "inputs": [{"name": "ipadapter", "type": "IPADAPTER", "link": 1}, {"name": "clip_vision", "type": "CLIP_VISION", "link": 2}, {"name": "image", "type": "IMAGE", "link": 28}, {"name": "model", "type": "MODEL", "link": 4}, {"name": "attn_mask", "type": "MASK", "link": null}], "outputs": [{"name": "MODEL", "type": "MODEL", "links": [7], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "IPAdapterApply"}, "widgets_values": [0.8, 0, "original", 0, 1, false]}, {"id": 3, "type": "IPAdapterModelLoader", "pos": [290, 60], "size": {"0": 300, "1": 60}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "IPADAPTER", "type": "IPADAPTER", "links": [1], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "IPAdapterModelLoader"}, "widgets_values": ["BEN_USE_THIS/ip-adapter-plus-face_sdxl_vit-h.safetensors"]}, {"id": 14, "type": "LoadImage", "pos": [40, 60], "size": {"0": 220, "1": 320}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [28], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["ComfyUI_temp_aitqc_00001_ (2).png", "image"]}, {"id": 4, "type": "CLIPVisionLoader", "pos": [290, 170], "size": {"0": 300, "1": 60}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "CLIP_VISION", "type": "CLIP_VISION", "links": [2], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPVisionLoader"}, "widgets_values": ["sd1.5/BEN_USE_THIS/model.safetensors"]}, {"id": 11, "type": "VAEDecode", "pos": [1300, 170], "size": {"0": 140, "1": 50}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 11}, {"name": "vae", "type": "VAE", "link": 41}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [13], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}}, {"id": 20, "type": "VAEEncodeForInpaint", "pos": [650, 590], "size": {"0": 230, "1": 100}, "flags": {}, "order": 8, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 29}, {"name": "vae", "type": "VAE", "link": 42, "slot_index": 1}, {"name": "mask", "type": "MASK", "link": 37}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [32], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "VAEEncodeForInpaint"}, "widgets_values": [12]}, {"id": 1, "type": "CheckpointLoaderSimple", "pos": [290, 280], "size": {"0": 300, "1": 100}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [4], "shape": 3, "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [5, 6], "shape": 3, "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [41, 42], "shape": 3, "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["RealVisXL_V4.0.safetensors"]}, {"id": 19, "type": "LoadImage", "pos": [195, 530], "size": {"0": 220, "1": 320}, "flags": {}, "order": 4, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [29], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [37], "shape": 3, "slot_index": 1}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["clipspace-mask-1588133.png [temp]", "image"]}, {"id": 7, "type": "CLIPTextEncode", "pos": [650, 250], "size": {"0": 210, "1": 120}, "flags": {}, "order": 6, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 5}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [25], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["rendering of a blonde women"], "color": "#232", "bgcolor": "#353"}], "links": [[1, 3, 0, 5, 0, "IPADAPTER"], [2, 4, 0, 5, 1, "CLIP_VISION"], [4, 1, 0, 5, 3, "MODEL"], [5, 1, 1, 7, 0, "CLIP"], [6, 1, 1, 8, 0, "CLIP"], [7, 5, 0, 9, 0, "MODEL"], [9, 8, 0, 9, 2, "CONDITIONING"], [11, 9, 0, 11, 0, "LATENT"], [13, 11, 0, 12, 0, "IMAGE"], [25, 7, 0, 9, 1, "CONDITIONING"], [28, 14, 0, 5, 2, "IMAGE"], [29, 19, 0, 20, 0, "IMAGE"], [32, 20, 0, 9, 3, "LATENT"], [37, 19, 1, 20, 2, "MASK"], [41, 1, 2, 11, 1, "VAE"], [42, 1, 2, 20, 1, "VAE"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/SDXL.json b/pysssss-workflows/SDXL.json new file mode 100644 index 00000000000..8ec379983d8 --- /dev/null +++ b/pysssss-workflows/SDXL.json @@ -0,0 +1,995 @@ +{ + "last_node_id": 48, + "last_link_id": 44, + "nodes": [ + { + "id": 36, + "type": "Note", + "pos": [ + -74, + -470 + ], + "size": { + "0": 315.70074462890625, + "1": 147.9551239013672 + }, + "flags": {}, + "order": 0, + "mode": 0, + "title": "Note - Load Checkpoint BASE", + "properties": { + "text": "" + }, + "widgets_values": [ + "This is a checkpoint model loader. \n - This is set up automatically with the optimal settings for whatever SD model version you choose to use.\n - In this example, it is for the Base SDXL model\n - This node is also used for SD1.5 and SD2.x models\n \nNOTE: When loading in another person's workflow, be sure to manually choose your own *local* model. This also applies to LoRas and all their deviations" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 37, + "type": "Note", + "pos": [ + 610, + -460 + ], + "size": { + "0": 330, + "1": 140 + }, + "flags": {}, + "order": 1, + "mode": 0, + "title": "Note - Load Checkpoint REFINER", + "properties": { + "text": "" + }, + "widgets_values": [ + "This is a checkpoint model loader. \n - This is set up automatically with the optimal settings for whatever SD model version you choose to use.\n - In this example, it is for the Refiner SDXL model\n\nNOTE: When loading in another person's workflow, be sure to manually choose your own *local* model. This also applies to LoRas and all their deviations." + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 5, + "type": "EmptyLatentImage", + "pos": [ + 544.5041024540301, + 651.1200708259006 + ], + "size": { + "0": 300, + "1": 110 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 27 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 17, + "type": "VAEDecode", + "pos": [ + 2220.7710413363047, + 129.6025938601699 + ], + "size": { + "0": 200, + "1": 50 + }, + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 25 + }, + { + "name": "vae", + "type": "VAE", + "link": 34 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 28 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + }, + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 41, + "type": "Note", + "pos": [ + 2160.7710413363047, + 229.60259386016995 + ], + "size": { + "0": 320, + "1": 120 + }, + "flags": {}, + "order": 3, + "mode": 0, + "title": "Note - VAE Decoder", + "properties": { + "text": "" + }, + "widgets_values": [ + "This node will take the latent data from the KSampler and, using the VAE, it will decode it into visible data\n\nVAE = Latent --> Visible\n\nThis can then be sent to the Save Image node to be saved as a PNG." + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 42, + "type": "Note", + "pos": [ + 564.5041024540307, + 801.1200708259006 + ], + "size": { + "0": 260, + "1": 210 + }, + "flags": {}, + "order": 4, + "mode": 0, + "title": "Note - Empty Latent Image", + "properties": { + "text": "" + }, + "widgets_values": [ + "This node sets the image's resolution in Width and Height.\n\nNOTE: For SDXL, it is recommended to use trained values listed below:\n - 1024 x 1024\n - 1152 x 896\n - 896 x 1152\n - 1216 x 832\n - 832 x 1216\n - 1344 x 768\n - 768 x 1344\n - 1536 x 640\n - 640 x 1536" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 11, + "type": "KSamplerAdvanced", + "pos": [ + 1800, + 130 + ], + "size": { + "0": 300, + "1": 340 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 14, + "slot_index": 0 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 23 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 24 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 13 + }, + { + "name": "steps", + "type": "INT", + "link": 38, + "widget": { + "name": "steps" + }, + "slot_index": 4 + }, + { + "name": "start_at_step", + "type": "INT", + "link": 44, + "widget": { + "name": "start_at_step" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 25 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "KSampler (Advanced) - REFINER", + "properties": { + "Node name for S&R": "KSamplerAdvanced" + }, + "widgets_values": [ + "disable", + 0, + "fixed", + 25, + 8, + "euler", + "normal", + 20, + 10000, + "disable" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 12, + "type": "CheckpointLoaderSimple", + "pos": [ + 600, + -611 + ], + "size": { + "0": 350, + "1": 100 + }, + "flags": {}, + "order": 5, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 14 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 19, + 20 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 34 + ], + "shape": 3, + "slot_index": 2 + } + ], + "title": "Load Checkpoint - REFINER", + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "sd_xl_refiner_1.0.safetensors" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 4, + "type": "CheckpointLoaderSimple", + "pos": [ + -90, + -620 + ], + "size": { + "0": 350, + "1": 100 + }, + "flags": {}, + "order": 6, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 10 + ], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 3, + 5 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [], + "slot_index": 2 + } + ], + "title": "Load Checkpoint - BASE", + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "sd_xl_base_1.0.safetensors" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 47, + "type": "PrimitiveNode", + "pos": [ + 1037.5286840013239, + 881.6113881513106 + ], + "size": { + "0": 210, + "1": 82 + }, + "flags": {}, + "order": 7, + "mode": 0, + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 43, + 44 + ], + "widget": { + "name": "end_at_step" + }, + "slot_index": 0 + } + ], + "title": "end_at_step", + "properties": {}, + "widgets_values": [ + 20, + "fixed" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 45, + "type": "PrimitiveNode", + "pos": [ + 1039.5286840013239, + 734.6113881513106 + ], + "size": { + "0": 210, + "1": 82 + }, + "flags": {}, + "order": 8, + "mode": 0, + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 38, + 41 + ], + "widget": { + "name": "steps" + } + } + ], + "title": "steps", + "properties": {}, + "widgets_values": [ + 25, + "fixed" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 48, + "type": "Note", + "pos": [ + 1036, + 1018 + ], + "size": { + "0": 213.90769958496094, + "1": 110.17156982421875 + }, + "flags": {}, + "order": 9, + "mode": 0, + "properties": { + "text": "" + }, + "widgets_values": [ + "These can be used to control the total sampling steps and the step at which the sampling switches to the refiner." + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 10, + "type": "KSamplerAdvanced", + "pos": [ + 1000, + 230 + ], + "size": { + "0": 300, + "1": 334 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 10 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 11 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 12 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 27 + }, + { + "name": "steps", + "type": "INT", + "link": 41, + "widget": { + "name": "steps" + }, + "slot_index": 4 + }, + { + "name": "end_at_step", + "type": "INT", + "link": 43, + "widget": { + "name": "end_at_step" + }, + "slot_index": 5 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 13 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "KSampler (Advanced) - BASE", + "properties": { + "Node name for S&R": "KSamplerAdvanced" + }, + "widgets_values": [ + "enable", + 119871359586184, + "randomize", + 25, + 8, + "euler", + "normal", + 0, + 20, + "enable" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 19, + "type": "SaveImage", + "pos": [ + 2600, + 130 + ], + "size": { + "0": 735.552734375, + "1": 823.98193359375 + }, + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 28 + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 40, + "type": "Note", + "pos": [ + 1325, + 234 + ], + "size": { + "0": 451.5049743652344, + "1": 424.4164123535156 + }, + "flags": {}, + "order": 10, + "mode": 0, + "title": "Note - KSampler ADVANCED General Information", + "properties": { + "text": "" + }, + "widgets_values": [ + "Here are the settings that SHOULD stay in place if you want this workflow to work correctly:\n - add_noise: enable = This adds random noise into the picture so the model can denoise it\n\n - return_with_leftover_noise: enable = This sends the latent image data and all it's leftover noise to the next KSampler node.\n\nThe settings to pay attention to:\n - control_after_generate = generates a new random seed after each workflow job completed.\n - steps = This is the amount of iterations you would like to run the positive and negative CLIP prompts through. Each Step will add (positive) or remove (negative) pixels based on what stable diffusion \"thinks\" should be there according to the model's training\n - cfg = This is how much you want SDXL to adhere to the prompt. Lower CFG gives you more creative but often blurrier results. Higher CFG (recommended max 10) gives you stricter results according to the CLIP prompt. If the CFG value is too high, it can also result in \"burn-in\" where the edges of the picture become even stronger, often highlighting details in unnatural ways.\n - sampler_name = This is the sampler type, and unfortunately different samplers and schedulers have better results with fewer steps, while others have better success with higher steps. This will require experimentation on your part!\n - scheduler = The algorithm/method used to choose the timesteps to denoise the picture.\n - start_at_step = This is the step number the KSampler will start out it's process of de-noising the picture or \"removing the random noise to reveal the picture within\". The first KSampler usually starts with Step 0. Starting at step 0 is the same as setting denoise to 1.0 in the regular Sampler node.\n - end_at_step = This is the step number the KSampler will stop it's process of de-noising the picture. If there is any remaining leftover noise and return_with_leftover_noise is enabled, then it will pass on the left over noise to the next KSampler (assuming there is another one)." + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 610, + 240 + ], + "size": { + "0": 320, + "1": 150 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 12 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "((deformed face)), ((disfigured eyes)), ((disfigured body)), ((disfigured hands))" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": [ + 610, + 30 + ], + "size": { + "0": 320, + "1": 160 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 3 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 11 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "((masterpiece)), (high detail), illustration, cow girl, linen cloths, portrait shot, seductive expression, ((large breasts)), (topless)" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 15, + "type": "CLIPTextEncode", + "pos": [ + 1110, + -270 + ], + "size": { + "0": 340, + "1": 140 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 19 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 23 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "((masterpiece)), (high detail), illustration, cow girl, linen cloths, portrait shot, seductive expression, ((large breasts)), (topless)" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 16, + "type": "CLIPTextEncode", + "pos": [ + 1110, + -90 + ], + "size": { + "0": 340, + "1": 140 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 20 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 24 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "((deformed face)), ((disfigured eyes)), ((disfigured body)), ((disfigured hands))" + ], + "color": "#322", + "bgcolor": "#533" + } + ], + "links": [ + [ + 3, + 4, + 1, + 6, + 0, + "CLIP" + ], + [ + 5, + 4, + 1, + 7, + 0, + "CLIP" + ], + [ + 10, + 4, + 0, + 10, + 0, + "MODEL" + ], + [ + 11, + 6, + 0, + 10, + 1, + "CONDITIONING" + ], + [ + 12, + 7, + 0, + 10, + 2, + "CONDITIONING" + ], + [ + 13, + 10, + 0, + 11, + 3, + "LATENT" + ], + [ + 14, + 12, + 0, + 11, + 0, + "MODEL" + ], + [ + 19, + 12, + 1, + 15, + 0, + "CLIP" + ], + [ + 20, + 12, + 1, + 16, + 0, + "CLIP" + ], + [ + 23, + 15, + 0, + 11, + 1, + "CONDITIONING" + ], + [ + 24, + 16, + 0, + 11, + 2, + "CONDITIONING" + ], + [ + 25, + 11, + 0, + 17, + 0, + "LATENT" + ], + [ + 27, + 5, + 0, + 10, + 3, + "LATENT" + ], + [ + 28, + 17, + 0, + 19, + 0, + "IMAGE" + ], + [ + 34, + 12, + 2, + 17, + 1, + "VAE" + ], + [ + 38, + 45, + 0, + 11, + 4, + "INT" + ], + [ + 41, + 45, + 0, + 10, + 4, + "INT" + ], + [ + 43, + 47, + 0, + 10, + 5, + "INT" + ], + [ + 44, + 47, + 0, + 11, + 5, + "INT" + ] + ], + "groups": [ + { + "title": "Base Prompt", + "bounding": [ + 585, + -54, + 366, + 463 + ], + "color": "#3f789e", + "font_size": 24 + }, + { + "title": "Refiner Prompt", + "bounding": [ + 1089, + -355, + 376, + 429 + ], + "color": "#3f789e", + "font_size": 24 + }, + { + "title": "Load in BASE SDXL Model", + "bounding": [ + -100, + -700, + 369, + 399 + ], + "color": "#a1309b", + "font_size": 24 + }, + { + "title": "Load in REFINER SDXL Model", + "bounding": [ + 581, + -700, + 391, + 400 + ], + "color": "#a1309b", + "font_size": 24 + }, + { + "title": "Empty Latent Image", + "bounding": [ + 524, + 577, + 339, + 443 + ], + "color": "#a1309b", + "font_size": 24 + }, + { + "title": "VAE Decoder", + "bounding": [ + 2142, + 51, + 360, + 350 + ], + "color": "#b06634", + "font_size": 24 + }, + { + "title": "Step Control", + "bounding": [ + 1005, + 623, + 284, + 524 + ], + "color": "#3f789e", + "font_size": 24 + } + ], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/pysssss-workflows/Upscale.json b/pysssss-workflows/Upscale.json new file mode 100644 index 00000000000..17e8193ff8b --- /dev/null +++ b/pysssss-workflows/Upscale.json @@ -0,0 +1 @@ +{"last_node_id": 78, "last_link_id": 185, "nodes": [{"id": 77, "type": "ImageUpscaleWithModel", "pos": [448, 234], "size": {"0": 241.79998779296875, "1": 46}, "flags": {}, "order": 2, "mode": 0, "inputs": [{"name": "upscale_model", "type": "UPSCALE_MODEL", "link": 182}, {"name": "image", "type": "IMAGE", "link": 185, "slot_index": 1}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [181], "slot_index": 0}], "properties": {"Node name for S&R": "ImageUpscaleWithModel"}}, {"id": 75, "type": "SaveImage", "pos": [813, 245], "size": {"0": 455.9945373535156, "1": 553.0919189453125}, "flags": {}, "order": 3, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 181}], "properties": {}, "widgets_values": ["maddy/3/maddy"]}, {"id": 76, "type": "UpscaleModelLoader", "pos": [53, 182], "size": {"0": 315, "1": 58}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "UPSCALE_MODEL", "type": "UPSCALE_MODEL", "links": [182], "slot_index": 0}], "properties": {"Node name for S&R": "UpscaleModelLoader"}, "widgets_values": ["4x_NMKD-Siax_200k.pth"]}, {"id": 66, "type": "LoadImage", "pos": [171, 380], "size": {"0": 220, "1": 320}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [185], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["maddy_00009_.png", "image"]}], "links": [[181, 77, 0, 75, 0, "IMAGE"], [182, 76, 0, 77, 0, "UPSCALE_MODEL"], [185, 66, 0, 77, 1, "IMAGE"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/batch_faceswap.json.json b/pysssss-workflows/batch_faceswap.json.json new file mode 100644 index 00000000000..7644402c4e2 --- /dev/null +++ b/pysssss-workflows/batch_faceswap.json.json @@ -0,0 +1 @@ +{"last_node_id": 19, "last_link_id": 25, "nodes": [{"id": 1, "type": "ReActorFaceSwap", "pos": [402, 181], "size": {"0": 315, "1": 338}, "flags": {}, "order": 2, "mode": 0, "inputs": [{"name": "source_image", "type": "IMAGE", "link": 1, "slot_index": 0}, {"name": "input_image", "type": "IMAGE", "link": 23, "slot_index": 1}, {"name": "face_model", "type": "FACE_MODEL", "link": null}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [25], "shape": 3, "slot_index": 0}, {"name": "FACE_MODEL", "type": "FACE_MODEL", "links": null, "shape": 3}], "properties": {"Node name for S&R": "ReActorFaceSwap"}, "widgets_values": [true, "inswapper_128.onnx", "retinaface_resnet50", "GFPGANv1.4.pth", 1, 1, "female", "female", "0", "0", 1]}, {"id": 2, "type": "LoadImage", "pos": [18, 49], "size": {"0": 315, "1": 314}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [1], "shape": 3}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["ComfyUI_temp_jnarh_00001_ (3).png", "image"]}, {"id": 18, "type": "Load Image Batch", "pos": [12, 612], "size": {"0": 315, "1": 222}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "image", "type": "IMAGE", "links": [23], "shape": 3, "slot_index": 0}, {"name": "filename_text", "type": "STRING", "links": null, "shape": 3, "slot_index": 1}], "properties": {"Node name for S&R": "Load Image Batch", "ttNbgOverride": {"color": "#223", "bgcolor": "#335", "groupcolor": "#88A"}}, "widgets_values": ["incremental_image", 0, "Batch 001", "/home/mclean/Downloads/www.elitebabes.com/mila", "*", "false", "true"], "color": "#223", "bgcolor": "#335"}, {"id": 19, "type": "SaveImage", "pos": [813, 185], "size": {"0": 735.552734375, "1": 823.98193359375}, "flags": {}, "order": 3, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 25, "slot_index": 0}], "properties": {}, "widgets_values": ["characters/mila_"], "color": "#222", "bgcolor": "#000"}], "links": [[1, 2, 0, 1, 0, "IMAGE"], [23, 18, 0, 1, 1, "IMAGE"], [25, 1, 0, 19, 0, "IMAGE"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/controlnet_inpainting.json b/pysssss-workflows/controlnet_inpainting.json new file mode 100644 index 00000000000..d4c21abf0f0 --- /dev/null +++ b/pysssss-workflows/controlnet_inpainting.json @@ -0,0 +1,519 @@ +{ + "last_node_id": 26, + "last_link_id": 45, + "nodes": [ + { + "id": 16, + "type": "CheckpointLoaderSimple", + "pos": [ + -64, + 512 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 28 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 29, + 31 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 34 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "juggernautXL_v7Rundiffusion.safetensors" + ] + }, + { + "id": 19, + "type": "CLIPTextEncode", + "pos": [ + 286, + 552 + ], + "size": { + "0": 390, + "1": 130 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 31 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 32 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "text, watermark" + ] + }, + { + "id": 22, + "type": "EmptyLatentImage", + "pos": [ + 324, + 727 + ], + "size": { + "0": 310, + "1": 110 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 37 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 768, + 1280, + 1 + ] + }, + { + "id": 24, + "type": "ControlNetApply", + "pos": [ + 724, + 426 + ], + "size": { + "0": 317.4000244140625, + "1": 98 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 42, + "slot_index": 0 + }, + { + "name": "control_net", + "type": "CONTROL_NET", + "link": 41 + }, + { + "name": "image", + "type": "IMAGE", + "link": 44 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 43 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ControlNetApply" + }, + "widgets_values": [ + 1 + ] + }, + { + "id": 17, + "type": "KSampler", + "pos": [ + 1071, + 414 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 28 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 43 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 32 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 37, + "slot_index": 3 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 33 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 562495968439542, + "randomize", + 15, + 8, + "uni_pc_bh2", + "normal", + 1 + ] + }, + { + "id": 25, + "type": "LoadImage", + "pos": [ + 729, + 728 + ], + "size": { + "0": 351.9067687988281, + "1": 389.8154602050781 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 44 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "masked.png", + "image" + ] + }, + { + "id": 23, + "type": "ControlNetLoader", + "pos": [ + 336, + 881 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 3, + "mode": 0, + "outputs": [ + { + "name": "CONTROL_NET", + "type": "CONTROL_NET", + "links": [ + 41 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ControlNetLoader" + }, + "widgets_values": [ + "cn-inpainting-dreamer-0.1-alpha.safetensors" + ] + }, + { + "id": 18, + "type": "CLIPTextEncode", + "pos": [ + 286, + 385 + ], + "size": { + "0": 390, + "1": 130 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 29 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 42 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "a cyberpunk manor" + ] + }, + { + "id": 20, + "type": "VAEDecode", + "pos": [ + 1412, + 412 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 33 + }, + { + "name": "vae", + "type": "VAE", + "link": 34, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 45 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 26, + "type": "SaveImage", + "pos": [ + 1106, + 729 + ], + "size": [ + 367, + 387 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 45 + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + } + ], + "links": [ + [ + 28, + 16, + 0, + 17, + 0, + "MODEL" + ], + [ + 29, + 16, + 1, + 18, + 0, + "CLIP" + ], + [ + 31, + 16, + 1, + 19, + 0, + "CLIP" + ], + [ + 32, + 19, + 0, + 17, + 2, + "CONDITIONING" + ], + [ + 33, + 17, + 0, + 20, + 0, + "LATENT" + ], + [ + 34, + 16, + 2, + 20, + 1, + "VAE" + ], + [ + 37, + 22, + 0, + 17, + 3, + "LATENT" + ], + [ + 41, + 23, + 0, + 24, + 1, + "CONTROL_NET" + ], + [ + 42, + 18, + 0, + 24, + 0, + "CONDITIONING" + ], + [ + 43, + 24, + 0, + 17, + 1, + "CONDITIONING" + ], + [ + 44, + 25, + 0, + 24, + 2, + "IMAGE" + ], + [ + 45, + 20, + 0, + 26, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/pysssss-workflows/deliberate_background_change.json b/pysssss-workflows/deliberate_background_change.json new file mode 100644 index 00000000000..d962a2f2a15 --- /dev/null +++ b/pysssss-workflows/deliberate_background_change.json @@ -0,0 +1 @@ +{"last_node_id": 74, "last_link_id": 180, "nodes": [{"id": 59, "type": "GroundingDinoModelLoader (segment anything)", "pos": [-1334, -234], "size": {"0": 361.20001220703125, "1": 58}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "GROUNDING_DINO_MODEL", "type": "GROUNDING_DINO_MODEL", "links": [152], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "GroundingDinoModelLoader (segment anything)"}, "widgets_values": ["GroundingDINO_SwinB (938MB)"]}, {"id": 60, "type": "LoadImage", "pos": [-1330, 102], "size": {"0": 315, "1": 314.0000305175781}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [153, 177], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["4 (6).jpg", "image"]}, {"id": 61, "type": "GroundingDinoSAMSegment (segment anything)", "pos": [-1366, -90], "size": {"0": 352.79998779296875, "1": 122}, "flags": {}, "order": 5, "mode": 0, "inputs": [{"name": "sam_model", "type": "SAM_MODEL", "link": 151}, {"name": "grounding_dino_model", "type": "GROUNDING_DINO_MODEL", "link": 152}, {"name": "image", "type": "IMAGE", "link": 153}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [154], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [155], "shape": 3}], "properties": {"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"}, "widgets_values": ["women", 0.3]}, {"id": 64, "type": "MaskToImage", "pos": [-976, 49], "size": {"0": 210, "1": 26}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 156}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [157], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "MaskToImage"}}, {"id": 65, "type": "PreviewImage", "pos": [-971, 159], "size": {"0": 210, "1": 246}, "flags": {}, "order": 12, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 157}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 58, "type": "SAMModelLoader (segment anything)", "pos": [-1300, -360], "size": {"0": 315, "1": 58}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "SAM_MODEL", "type": "SAM_MODEL", "links": [151], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "SAMModelLoader (segment anything)"}, "widgets_values": ["sam_hq_vit_h (2.57GB)"]}, {"id": 8, "type": "VAEDecode", "pos": [809, -397], "size": {"0": 210, "1": 46}, "flags": {}, "order": 14, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 176}, {"name": "vae", "type": "VAE", "link": 113}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [169], "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}, "color": "#323", "bgcolor": "#535"}, {"id": 66, "type": "LoadImage", "pos": [-460, 127], "size": {"0": 220, "1": 320}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [170], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["Mia_face (28).png", "image"]}, {"id": 72, "type": "KSampler", "pos": [409, -466], "size": {"0": 315, "1": 262}, "flags": {}, "order": 13, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 175}, {"name": "positive", "type": "CONDITIONING", "link": 174}, {"name": "negative", "type": "CONDITIONING", "link": 173}, {"name": "latent_image", "type": "LATENT", "link": 180, "slot_index": 3}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [176], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [870499462869567, "randomize", 20, 8, "euler", "normal", 1]}, {"id": 63, "type": "InvertMask (segment anything)", "pos": [-983, -43], "size": {"0": 243.60000610351562, "1": 26}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 155, "slot_index": 0}], "outputs": [{"name": "MASK", "type": "MASK", "links": [156, 178], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "InvertMask (segment anything)"}}, {"id": 74, "type": "VAEEncodeForInpaint", "pos": [-633, -75], "size": {"0": 315, "1": 98}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 177, "slot_index": 0}, {"name": "vae", "type": "VAE", "link": 179, "slot_index": 1}, {"name": "mask", "type": "MASK", "link": 178}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [180], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "VAEEncodeForInpaint"}, "widgets_values": [6]}, {"id": 62, "type": "PreviewImage", "pos": [-1015, 454], "size": {"0": 210, "1": 246}, "flags": {}, "order": 8, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 154}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 67, "type": "ReActorFaceSwap", "pos": [-70, 222], "size": {"0": 315, "1": 338}, "flags": {}, "order": 15, "mode": 0, "inputs": [{"name": "source_image", "type": "IMAGE", "link": 170, "slot_index": 0}, {"name": "input_image", "type": "IMAGE", "link": 169, "slot_index": 1}, {"name": "face_model", "type": "FACE_MODEL", "link": null}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [164], "shape": 3, "slot_index": 0}, {"name": "FACE_MODEL", "type": "FACE_MODEL", "links": null, "shape": 3}], "properties": {"Node name for S&R": "ReActorFaceSwap"}, "widgets_values": [true, "inswapper_128.onnx", "retinaface_resnet50", "GFPGANv1.4.pth", 1, 1, "female", "female", "0", "0", 1]}, {"id": 29, "type": "CheckpointLoaderSimple", "pos": [-737, -386], "size": {"0": 315, "1": 98}, "flags": {}, "order": 4, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [175], "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [171, 172], "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [113, 179], "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["Deliberate_v1.1-inpainting.safetensors"], "color": "#323", "bgcolor": "#535"}, {"id": 68, "type": "SaveImage", "pos": [559, -43], "size": {"0": 517.3851318359375, "1": 779.9139404296875}, "flags": {}, "order": 16, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 164, "slot_index": 0}], "properties": {}, "widgets_values": ["mia/mia"], "color": "#222", "bgcolor": "#000"}, {"id": 71, "type": "CLIPTextEncode", "pos": [-229, -222], "size": {"0": 400, "1": 200}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 172}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [173], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["mutliple women"]}, {"id": 70, "type": "CLIPTextEncode", "pos": [-215, -567], "size": {"0": 400, "1": 200}, "flags": {}, "order": 6, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 171}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [174], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["a women kneeling on the bed in a cozy bedroom, soft lighting, a comfortable queen-sized bed with fluffy pillows and a warm duvet, A wooden nightstand with a reading lamp, a small stack of books, A soft woven rug on the floor. Light, airy curtains gently moving in the breeze from an open window.\""]}], "links": [[113, 29, 2, 8, 1, "VAE"], [151, 58, 0, 61, 0, "SAM_MODEL"], [152, 59, 0, 61, 1, "GROUNDING_DINO_MODEL"], [153, 60, 0, 61, 2, "IMAGE"], [154, 61, 0, 62, 0, "IMAGE"], [155, 61, 1, 63, 0, "MASK"], [156, 63, 0, 64, 0, "MASK"], [157, 64, 0, 65, 0, "IMAGE"], [164, 67, 0, 68, 0, "IMAGE"], [169, 8, 0, 67, 1, "IMAGE"], [170, 66, 0, 67, 0, "IMAGE"], [171, 29, 1, 70, 0, "CLIP"], [172, 29, 1, 71, 0, "CLIP"], [173, 71, 0, 72, 2, "CONDITIONING"], [174, 70, 0, 72, 1, "CONDITIONING"], [175, 29, 0, 72, 0, "MODEL"], [176, 72, 0, 8, 0, "LATENT"], [177, 60, 0, 74, 0, "IMAGE"], [178, 63, 0, 74, 2, "MASK"], [179, 29, 2, 74, 1, "VAE"], [180, 74, 0, 72, 3, "LATENT"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/deliberate_clothing_changes.json b/pysssss-workflows/deliberate_clothing_changes.json new file mode 100644 index 00000000000..b5b8b1ae98e --- /dev/null +++ b/pysssss-workflows/deliberate_clothing_changes.json @@ -0,0 +1 @@ +{"last_node_id": 74, "last_link_id": 181, "nodes": [{"id": 59, "type": "GroundingDinoModelLoader (segment anything)", "pos": [-1334, -234], "size": {"0": 361.20001220703125, "1": 58}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "GROUNDING_DINO_MODEL", "type": "GROUNDING_DINO_MODEL", "links": [152], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "GroundingDinoModelLoader (segment anything)"}, "widgets_values": ["GroundingDINO_SwinB (938MB)"]}, {"id": 60, "type": "LoadImage", "pos": [-1330, 102], "size": {"0": 315, "1": 314.0000305175781}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [153, 177], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["4 (6).jpg", "image"]}, {"id": 58, "type": "SAMModelLoader (segment anything)", "pos": [-1300, -360], "size": {"0": 315, "1": 58}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "SAM_MODEL", "type": "SAM_MODEL", "links": [151], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "SAMModelLoader (segment anything)"}, "widgets_values": ["sam_hq_vit_h (2.57GB)"]}, {"id": 8, "type": "VAEDecode", "pos": [809, -397], "size": {"0": 210, "1": 46}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 176}, {"name": "vae", "type": "VAE", "link": 113}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [169], "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}, "color": "#323", "bgcolor": "#535"}, {"id": 66, "type": "LoadImage", "pos": [-460, 127], "size": {"0": 220, "1": 320}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [170], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["Mia_face (28).png", "image"]}, {"id": 72, "type": "KSampler", "pos": [409, -466], "size": {"0": 315, "1": 262}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 175}, {"name": "positive", "type": "CONDITIONING", "link": 174}, {"name": "negative", "type": "CONDITIONING", "link": 173}, {"name": "latent_image", "type": "LATENT", "link": 180, "slot_index": 3}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [176], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [704567128578050, "randomize", 20, 8, "euler", "normal", 1]}, {"id": 62, "type": "PreviewImage", "pos": [-1015, 454], "size": {"0": 210, "1": 246}, "flags": {}, "order": 8, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 154}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 67, "type": "ReActorFaceSwap", "pos": [-70, 222], "size": {"0": 315, "1": 338}, "flags": {}, "order": 12, "mode": 0, "inputs": [{"name": "source_image", "type": "IMAGE", "link": 170, "slot_index": 0}, {"name": "input_image", "type": "IMAGE", "link": 169, "slot_index": 1}, {"name": "face_model", "type": "FACE_MODEL", "link": null}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [164], "shape": 3, "slot_index": 0}, {"name": "FACE_MODEL", "type": "FACE_MODEL", "links": null, "shape": 3}], "properties": {"Node name for S&R": "ReActorFaceSwap"}, "widgets_values": [true, "inswapper_128.onnx", "retinaface_resnet50", "GFPGANv1.4.pth", 1, 1, "female", "female", "0", "0", 1]}, {"id": 29, "type": "CheckpointLoaderSimple", "pos": [-737, -386], "size": {"0": 315, "1": 98}, "flags": {}, "order": 4, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [175], "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [171, 172], "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [113, 179], "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["Deliberate_v1.1-inpainting.safetensors"], "color": "#323", "bgcolor": "#535"}, {"id": 68, "type": "SaveImage", "pos": [559, -43], "size": {"0": 517.3851318359375, "1": 779.9139404296875}, "flags": {}, "order": 13, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 164, "slot_index": 0}], "properties": {}, "widgets_values": ["mia/mia"], "color": "#222", "bgcolor": "#000"}, {"id": 71, "type": "CLIPTextEncode", "pos": [-229, -222], "size": {"0": 400, "1": 200}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 172}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [173], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["mutliple women"]}, {"id": 70, "type": "CLIPTextEncode", "pos": [-215, -567], "size": {"0": 400, "1": 200}, "flags": {}, "order": 6, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 171}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [174], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["a women kneeling on the bed in a cozy bedroom, soft lighting, a comfortable queen-sized bed with fluffy pillows and a warm duvet, A wooden nightstand with a reading lamp, a small stack of books, A soft woven rug on the floor. Light, airy curtains gently moving in the breeze from an open window.\""]}, {"id": 74, "type": "VAEEncodeForInpaint", "pos": [-633, -75], "size": {"0": 315, "1": 98}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 177, "slot_index": 0}, {"name": "vae", "type": "VAE", "link": 179, "slot_index": 1}, {"name": "mask", "type": "MASK", "link": 181}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [180], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "VAEEncodeForInpaint"}, "widgets_values": [6]}, {"id": 61, "type": "GroundingDinoSAMSegment (segment anything)", "pos": [-1366, -90], "size": {"0": 352.79998779296875, "1": 122}, "flags": {}, "order": 5, "mode": 0, "inputs": [{"name": "sam_model", "type": "SAM_MODEL", "link": 151}, {"name": "grounding_dino_model", "type": "GROUNDING_DINO_MODEL", "link": 152}, {"name": "image", "type": "IMAGE", "link": 153}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [154], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [181], "shape": 3, "slot_index": 1}], "properties": {"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"}, "widgets_values": ["stockings", 0.3]}], "links": [[113, 29, 2, 8, 1, "VAE"], [151, 58, 0, 61, 0, "SAM_MODEL"], [152, 59, 0, 61, 1, "GROUNDING_DINO_MODEL"], [153, 60, 0, 61, 2, "IMAGE"], [154, 61, 0, 62, 0, "IMAGE"], [164, 67, 0, 68, 0, "IMAGE"], [169, 8, 0, 67, 1, "IMAGE"], [170, 66, 0, 67, 0, "IMAGE"], [171, 29, 1, 70, 0, "CLIP"], [172, 29, 1, 71, 0, "CLIP"], [173, 71, 0, 72, 2, "CONDITIONING"], [174, 70, 0, 72, 1, "CONDITIONING"], [175, 29, 0, 72, 0, "MODEL"], [176, 72, 0, 8, 0, "LATENT"], [177, 60, 0, 74, 0, "IMAGE"], [179, 29, 2, 74, 1, "VAE"], [180, 74, 0, 72, 3, "LATENT"], [181, 61, 1, 74, 2, "MASK"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/ex2.json b/pysssss-workflows/ex2.json new file mode 100644 index 00000000000..47d968a5c9a --- /dev/null +++ b/pysssss-workflows/ex2.json @@ -0,0 +1 @@ +{"last_node_id": 91, "last_link_id": 207, "nodes": [{"id": 59, "type": "GroundingDinoModelLoader (segment anything)", "pos": [-1334, -234], "size": {"0": 361.20001220703125, "1": 58}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "GROUNDING_DINO_MODEL", "type": "GROUNDING_DINO_MODEL", "links": [152], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "GroundingDinoModelLoader (segment anything)"}, "widgets_values": ["GroundingDINO_SwinB (938MB)"]}, {"id": 61, "type": "GroundingDinoSAMSegment (segment anything)", "pos": [-1366, -90], "size": {"0": 352.79998779296875, "1": 122}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "sam_model", "type": "SAM_MODEL", "link": 151}, {"name": "grounding_dino_model", "type": "GROUNDING_DINO_MODEL", "link": 152}, {"name": "image", "type": "IMAGE", "link": 153}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [154], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [155], "shape": 3}], "properties": {"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"}, "widgets_values": ["women", 0.3]}, {"id": 64, "type": "MaskToImage", "pos": [-976, 49], "size": {"0": 210, "1": 26}, "flags": {}, "order": 17, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 156}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [157], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "MaskToImage"}}, {"id": 58, "type": "SAMModelLoader (segment anything)", "pos": [-1300, -360], "size": {"0": 315, "1": 58}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "SAM_MODEL", "type": "SAM_MODEL", "links": [151], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "SAMModelLoader (segment anything)"}, "widgets_values": ["sam_hq_vit_h (2.57GB)"]}, {"id": 63, "type": "InvertMask (segment anything)", "pos": [-983, -43], "size": {"0": 243.60000610351562, "1": 26}, "flags": {}, "order": 13, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 155, "slot_index": 0}], "outputs": [{"name": "MASK", "type": "MASK", "links": [156, 178], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "InvertMask (segment anything)"}}, {"id": 74, "type": "VAEEncodeForInpaint", "pos": [-633, -75], "size": {"0": 315, "1": 98}, "flags": {}, "order": 18, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 177, "slot_index": 0}, {"name": "vae", "type": "VAE", "link": 179, "slot_index": 1}, {"name": "mask", "type": "MASK", "link": 178}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [180], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "VAEEncodeForInpaint"}, "widgets_values": [6]}, {"id": 62, "type": "PreviewImage", "pos": [-1015, 454], "size": {"0": 210, "1": 246}, "flags": {}, "order": 12, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 154}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 84, "type": "Zoe-DepthMapPreprocessor", "pos": [-361.05522949218744, -765.1600781249999], "size": {"0": 315, "1": 58}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 192}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [194], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "Zoe-DepthMapPreprocessor"}, "widgets_values": [512]}, {"id": 85, "type": "PreviewImage", "pos": [823, -1203], "size": {"0": 210, "1": 246}, "flags": {}, "order": 16, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 194}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 82, "type": "PreviewImage", "pos": [1023, -918], "size": {"0": 210, "1": 246}, "flags": {}, "order": 14, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 190}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 81, "type": "ControlNetApply", "pos": [315, -812], "size": {"0": 317.4000244140625, "1": 98}, "flags": {}, "order": 15, "mode": 0, "inputs": [{"name": "conditioning", "type": "CONDITIONING", "link": 201, "slot_index": 0}, {"name": "control_net", "type": "CONTROL_NET", "link": 187, "slot_index": 1}, {"name": "image", "type": "IMAGE", "link": 195, "slot_index": 2}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetApply"}, "widgets_values": [0.5]}, {"id": 80, "type": "ControlNetLoader", "pos": [76, -1226], "size": {"0": 315, "1": 58}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "CONTROL_NET", "type": "CONTROL_NET", "links": [187], "shape": 3}], "properties": {"Node name for S&R": "ControlNetLoader"}, "widgets_values": ["sd1.5/sd-controlnet-canny.safetensors"]}, {"id": 8, "type": "VAEDecode", "pos": [809, -397], "size": {"0": 210, "1": 46}, "flags": {}, "order": 21, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 176}, {"name": "vae", "type": "VAE", "link": 113}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [191, 203], "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}, "color": "#323", "bgcolor": "#535"}, {"id": 77, "type": "ImageUpscaleWithModel", "pos": [536, 316], "size": {"0": 241.79998779296875, "1": 46}, "flags": {}, "order": 24, "mode": 0, "inputs": [{"name": "upscale_model", "type": "UPSCALE_MODEL", "link": 182}, {"name": "image", "type": "IMAGE", "link": 202, "slot_index": 1}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [197, 205], "slot_index": 0}], "properties": {"Node name for S&R": "ImageUpscaleWithModel"}}, {"id": 88, "type": "PreviewImage", "pos": [1135, -119], "size": {"0": 210, "1": 246}, "flags": {}, "order": 25, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 204}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 66, "type": "LoadImage", "pos": [951, 477], "size": {"0": 220, "1": 320}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [170], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["Mia_face (28).png", "image"]}, {"id": 67, "type": "ReActorFaceSwap", "pos": [1510, 325], "size": {"0": 315, "1": 338}, "flags": {}, "order": 26, "mode": 0, "inputs": [{"name": "source_image", "type": "IMAGE", "link": 170, "slot_index": 0}, {"name": "input_image", "type": "IMAGE", "link": 197, "slot_index": 1}, {"name": "face_model", "type": "FACE_MODEL", "link": null}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [206], "shape": 3, "slot_index": 0}, {"name": "FACE_MODEL", "type": "FACE_MODEL", "links": null, "shape": 3}], "properties": {"Node name for S&R": "ReActorFaceSwap"}, "widgets_values": [true, "inswapper_128.onnx", "retinaface_resnet50", "GFPGANv1.4.pth", 1, 1, "female", "female", "0", "0", 1]}, {"id": 91, "type": "PreviewImage", "pos": [1552, -124], "size": {"0": 210, "1": 246}, "flags": {}, "order": 28, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 206}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 83, "type": "PreviewImage", "pos": [846, -135], "size": {"0": 210, "1": 246}, "flags": {}, "order": 22, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 191}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 89, "type": "PreviewImage", "pos": [1319, -151], "size": {"0": 210, "1": 246}, "flags": {}, "order": 27, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 205}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 65, "type": "PreviewImage", "pos": [-831, 133], "size": {"0": 210, "1": 246}, "flags": {}, "order": 19, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 157}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 76, "type": "UpscaleModelLoader", "pos": [372, 646], "size": {"0": 315, "1": 58}, "flags": {}, "order": 4, "mode": 0, "outputs": [{"name": "UPSCALE_MODEL", "type": "UPSCALE_MODEL", "links": [182], "slot_index": 0}], "properties": {"Node name for S&R": "UpscaleModelLoader"}, "widgets_values": ["4x_NMKD-Siax_200k.pth"]}, {"id": 87, "type": "ImageBlur", "pos": [317, -22], "size": {"0": 315, "1": 82}, "flags": {}, "order": 23, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 203}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [202, 204], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ImageBlur"}, "widgets_values": [1, 1]}, {"id": 72, "type": "KSampler", "pos": [442, -462], "size": {"0": 315, "1": 262}, "flags": {}, "order": 20, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 175}, {"name": "positive", "type": "CONDITIONING", "link": 207, "slot_index": 1}, {"name": "negative", "type": "CONDITIONING", "link": 173}, {"name": "latent_image", "type": "LATENT", "link": 180, "slot_index": 3}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [176], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [235207851032988, "randomize", 20, 8, "euler", "normal", 1]}, {"id": 79, "type": "CannyEdgePreprocessor", "pos": [-219, -1200], "size": {"0": 315, "1": 106}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 189, "slot_index": 0}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [190, 195], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CannyEdgePreprocessor"}, "widgets_values": [100, 200, 512]}, {"id": 29, "type": "CheckpointLoaderSimple", "pos": [-936, -563], "size": {"0": 315, "1": 98}, "flags": {}, "order": 5, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [175], "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [171, 172], "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [113, 179], "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["Deliberate_v1.1-inpainting.safetensors"], "color": "#323", "bgcolor": "#535"}, {"id": 60, "type": "LoadImage", "pos": [-1673, -594], "size": {"0": 315, "1": 314.0000305175781}, "flags": {}, "order": 6, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [153, 177, 189, 192], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["0016-13_w400.jpg", "image"]}, {"id": 71, "type": "CLIPTextEncode", "pos": [-229, -222], "size": {"0": 400, "1": 200}, "flags": {}, "order": 8, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 172}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [173], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["mutliple women"]}, {"id": 70, "type": "CLIPTextEncode", "pos": [-232, -577], "size": {"0": 400, "1": 200}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 171}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [201, 207], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["a women standing in the bedroom"]}], "links": [[113, 29, 2, 8, 1, "VAE"], [151, 58, 0, 61, 0, "SAM_MODEL"], [152, 59, 0, 61, 1, "GROUNDING_DINO_MODEL"], [153, 60, 0, 61, 2, "IMAGE"], [154, 61, 0, 62, 0, "IMAGE"], [155, 61, 1, 63, 0, "MASK"], [156, 63, 0, 64, 0, "MASK"], [157, 64, 0, 65, 0, "IMAGE"], [170, 66, 0, 67, 0, "IMAGE"], [171, 29, 1, 70, 0, "CLIP"], [172, 29, 1, 71, 0, "CLIP"], [173, 71, 0, 72, 2, "CONDITIONING"], [175, 29, 0, 72, 0, "MODEL"], [176, 72, 0, 8, 0, "LATENT"], [177, 60, 0, 74, 0, "IMAGE"], [178, 63, 0, 74, 2, "MASK"], [179, 29, 2, 74, 1, "VAE"], [180, 74, 0, 72, 3, "LATENT"], [182, 76, 0, 77, 0, "UPSCALE_MODEL"], [187, 80, 0, 81, 1, "CONTROL_NET"], [189, 60, 0, 79, 0, "IMAGE"], [190, 79, 0, 82, 0, "IMAGE"], [191, 8, 0, 83, 0, "IMAGE"], [192, 60, 0, 84, 0, "IMAGE"], [194, 84, 0, 85, 0, "IMAGE"], [195, 79, 0, 81, 2, "IMAGE"], [197, 77, 0, 67, 1, "IMAGE"], [201, 70, 0, 81, 0, "CONDITIONING"], [202, 87, 0, 77, 1, "IMAGE"], [203, 8, 0, 87, 0, "IMAGE"], [204, 87, 0, 88, 0, "IMAGE"], [205, 77, 0, 89, 0, "IMAGE"], [206, 67, 0, 91, 0, "IMAGE"], [207, 70, 0, 72, 1, "CONDITIONING"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/inpainting.json b/pysssss-workflows/inpainting.json new file mode 100644 index 00000000000..c0b6655282c --- /dev/null +++ b/pysssss-workflows/inpainting.json @@ -0,0 +1 @@ +{"last_node_id": 74, "last_link_id": 184, "nodes": [{"id": 72, "type": "KSampler", "pos": [409, -466], "size": {"0": 315, "1": 262}, "flags": {}, "order": 5, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 175}, {"name": "positive", "type": "CONDITIONING", "link": 174}, {"name": "negative", "type": "CONDITIONING", "link": 173}, {"name": "latent_image", "type": "LATENT", "link": 180, "slot_index": 3}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [176], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [704567128578050, "randomize", 20, 8, "euler", "normal", 1]}, {"id": 29, "type": "CheckpointLoaderSimple", "pos": [-737, -386], "size": {"0": 315, "1": 98}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [175], "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [171, 172], "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [113, 179], "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["Deliberate_v1.1-inpainting.safetensors"], "color": "#323", "bgcolor": "#535"}, {"id": 71, "type": "CLIPTextEncode", "pos": [-229, -222], "size": {"0": 400, "1": 200}, "flags": {}, "order": 3, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 172}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [173], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["mutliple women"]}, {"id": 70, "type": "CLIPTextEncode", "pos": [-215, -567], "size": {"0": 400, "1": 200}, "flags": {}, "order": 2, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 171}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [174], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["a women kneeling on the bed in a cozy bedroom, soft lighting, a comfortable queen-sized bed with fluffy pillows and a warm duvet, A wooden nightstand with a reading lamp, a small stack of books, A soft woven rug on the floor. Light, airy curtains gently moving in the breeze from an open window.\""]}, {"id": 74, "type": "VAEEncodeForInpaint", "pos": [-633, -75], "size": {"0": 315, "1": 98}, "flags": {}, "order": 4, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 177, "slot_index": 0}, {"name": "vae", "type": "VAE", "link": 179, "slot_index": 1}, {"name": "mask", "type": "MASK", "link": 184}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [180], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "VAEEncodeForInpaint"}, "widgets_values": [6]}, {"id": 8, "type": "VAEDecode", "pos": [809, -397], "size": {"0": 210, "1": 46}, "flags": {}, "order": 6, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 176}, {"name": "vae", "type": "VAE", "link": 113}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [183], "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}, "color": "#323", "bgcolor": "#535"}, {"id": 60, "type": "LoadImage", "pos": [-1130, -69], "size": {"0": 315, "1": 314.0000305175781}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [177], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [184], "shape": 3, "slot_index": 1}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["4 (6).jpg", "image"]}, {"id": 68, "type": "SaveImage", "pos": [1073, -352], "size": {"0": 517.3851318359375, "1": 779.9139404296875}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 183, "slot_index": 0}], "properties": {}, "widgets_values": ["maddy/3/maddy"], "color": "#222", "bgcolor": "#000"}], "links": [[113, 29, 2, 8, 1, "VAE"], [171, 29, 1, 70, 0, "CLIP"], [172, 29, 1, 71, 0, "CLIP"], [173, 71, 0, 72, 2, "CONDITIONING"], [174, 70, 0, 72, 1, "CONDITIONING"], [175, 29, 0, 72, 0, "MODEL"], [176, 72, 0, 8, 0, "LATENT"], [177, 60, 0, 74, 0, "IMAGE"], [179, 29, 2, 74, 1, "VAE"], [180, 74, 0, 72, 3, "LATENT"], [183, 8, 0, 68, 0, "IMAGE"], [184, 60, 1, 74, 2, "MASK"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/reposer_w__Controlnet.json b/pysssss-workflows/reposer_w__Controlnet.json new file mode 100644 index 00000000000..29317eb93c5 --- /dev/null +++ b/pysssss-workflows/reposer_w__Controlnet.json @@ -0,0 +1 @@ +{"last_node_id": 85, "last_link_id": 194, "nodes": [{"id": 59, "type": "GroundingDinoModelLoader (segment anything)", "pos": [-1334, -234], "size": {"0": 361.20001220703125, "1": 58}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "GROUNDING_DINO_MODEL", "type": "GROUNDING_DINO_MODEL", "links": [152], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "GroundingDinoModelLoader (segment anything)"}, "widgets_values": ["GroundingDINO_SwinB (938MB)"]}, {"id": 61, "type": "GroundingDinoSAMSegment (segment anything)", "pos": [-1366, -90], "size": {"0": 352.79998779296875, "1": 122}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "sam_model", "type": "SAM_MODEL", "link": 151}, {"name": "grounding_dino_model", "type": "GROUNDING_DINO_MODEL", "link": 152}, {"name": "image", "type": "IMAGE", "link": 153}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [154], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [155], "shape": 3}], "properties": {"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"}, "widgets_values": ["women", 0.3]}, {"id": 64, "type": "MaskToImage", "pos": [-976, 49], "size": {"0": 210, "1": 26}, "flags": {}, "order": 15, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 156}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [157], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "MaskToImage"}}, {"id": 65, "type": "PreviewImage", "pos": [-971, 159], "size": {"0": 210, "1": 246}, "flags": {}, "order": 17, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 157}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 58, "type": "SAMModelLoader (segment anything)", "pos": [-1300, -360], "size": {"0": 315, "1": 58}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "SAM_MODEL", "type": "SAM_MODEL", "links": [151], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "SAMModelLoader (segment anything)"}, "widgets_values": ["sam_hq_vit_h (2.57GB)"]}, {"id": 8, "type": "VAEDecode", "pos": [809, -397], "size": {"0": 210, "1": 46}, "flags": {}, "order": 19, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 176}, {"name": "vae", "type": "VAE", "link": 113}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [169], "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}, "color": "#323", "bgcolor": "#535"}, {"id": 66, "type": "LoadImage", "pos": [-460, 127], "size": {"0": 220, "1": 320}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [170], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["Mia_face (28).png", "image"]}, {"id": 63, "type": "InvertMask (segment anything)", "pos": [-983, -43], "size": {"0": 243.60000610351562, "1": 26}, "flags": {}, "order": 12, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 155, "slot_index": 0}], "outputs": [{"name": "MASK", "type": "MASK", "links": [156, 178], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "InvertMask (segment anything)"}}, {"id": 74, "type": "VAEEncodeForInpaint", "pos": [-633, -75], "size": {"0": 315, "1": 98}, "flags": {}, "order": 16, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 177, "slot_index": 0}, {"name": "vae", "type": "VAE", "link": 179, "slot_index": 1}, {"name": "mask", "type": "MASK", "link": 178}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [180], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "VAEEncodeForInpaint"}, "widgets_values": [6]}, {"id": 62, "type": "PreviewImage", "pos": [-1015, 454], "size": {"0": 210, "1": 246}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 154}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 71, "type": "CLIPTextEncode", "pos": [-229, -222], "size": {"0": 400, "1": 200}, "flags": {}, "order": 8, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 172}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [173], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["mutliple women"]}, {"id": 29, "type": "CheckpointLoaderSimple", "pos": [-803, -435], "size": {"0": 315, "1": 98}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [175], "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [171, 172], "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [113, 179], "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["Deliberate_v1.1-inpainting.safetensors"], "color": "#323", "bgcolor": "#535"}, {"id": 60, "type": "LoadImage", "pos": [-1330, 102], "size": {"0": 315, "1": 314.0000305175781}, "flags": {}, "order": 4, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [153, 177, 189], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["4 (6).jpg", "image"]}, {"id": 72, "type": "KSampler", "pos": [409, -466], "size": {"0": 315, "1": 262}, "flags": {}, "order": 18, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 175}, {"name": "positive", "type": "CONDITIONING", "link": 191}, {"name": "negative", "type": "CONDITIONING", "link": 173}, {"name": "latent_image", "type": "LATENT", "link": 180, "slot_index": 3}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [176], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [857231191376756, "randomize", 20, 8, "euler", "normal", 1]}, {"id": 80, "type": "Zoe-DepthMapPreprocessor", "pos": [-686, -664], "size": {"0": 315, "1": 58}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 189, "slot_index": 0}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [186, 188], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "Zoe-DepthMapPreprocessor"}, "widgets_values": [512]}, {"id": 82, "type": "ControlNetApply", "pos": [229, -724], "size": {"0": 317.4000244140625, "1": 98}, "flags": {}, "order": 14, "mode": 0, "inputs": [{"name": "conditioning", "type": "CONDITIONING", "link": 190}, {"name": "control_net", "type": "CONTROL_NET", "link": 187}, {"name": "image", "type": "IMAGE", "link": 188}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [191], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetApply"}, "widgets_values": [1]}, {"id": 67, "type": "ReActorFaceSwap", "pos": [-70, 222], "size": {"0": 315, "1": 338}, "flags": {}, "order": 20, "mode": 0, "inputs": [{"name": "source_image", "type": "IMAGE", "link": 170, "slot_index": 0}, {"name": "input_image", "type": "IMAGE", "link": 169, "slot_index": 1}, {"name": "face_model", "type": "FACE_MODEL", "link": null}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [192], "shape": 3, "slot_index": 0}, {"name": "FACE_MODEL", "type": "FACE_MODEL", "links": null, "shape": 3}], "properties": {"Node name for S&R": "ReActorFaceSwap"}, "widgets_values": [true, "inswapper_128.onnx", "retinaface_resnet50", "GFPGANv1.4.pth", 1, 1, "female", "female", "0", "0", 1]}, {"id": 83, "type": "ControlNetLoader", "pos": [126, -902], "size": {"0": 315, "1": 58}, "flags": {}, "order": 5, "mode": 0, "outputs": [{"name": "CONTROL_NET", "type": "CONTROL_NET", "links": [187], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetLoader"}, "widgets_values": ["sd-controlnet-depth.safetensors"]}, {"id": 81, "type": "PreviewImage", "pos": [-710, 280], "size": {"0": 210, "1": 246}, "flags": {}, "order": 13, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 186}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 76, "type": "UpscaleModelLoader", "pos": [560, 87], "size": {"0": 315, "1": 58}, "flags": {}, "order": 6, "mode": 0, "outputs": [{"name": "UPSCALE_MODEL", "type": "UPSCALE_MODEL", "links": [182], "slot_index": 0}], "properties": {"Node name for S&R": "UpscaleModelLoader"}, "widgets_values": ["4x_NMKD-Siax_200k.pth"]}, {"id": 77, "type": "ImageUpscaleWithModel", "pos": [448, 234], "size": {"0": 241.79998779296875, "1": 46}, "flags": {}, "order": 22, "mode": 0, "inputs": [{"name": "upscale_model", "type": "UPSCALE_MODEL", "link": 182}, {"name": "image", "type": "IMAGE", "link": 193, "slot_index": 1}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [181], "slot_index": 0}], "properties": {"Node name for S&R": "ImageUpscaleWithModel"}}, {"id": 84, "type": "ImageBlur", "pos": [349, 354], "size": {"0": 315, "1": 82}, "flags": {}, "order": 21, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 192}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [193, 194], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "ImageBlur"}, "widgets_values": [1, 1]}, {"id": 75, "type": "SaveImage", "pos": [1156, 199], "size": {"0": 455.9945373535156, "1": 553.0919189453125}, "flags": {}, "order": 24, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 181}], "properties": {}, "widgets_values": ["maddy/3/maddy"]}, {"id": 85, "type": "PreviewImage", "pos": [841, 239], "size": [353.1600601272239, 513.530100139141], "flags": {}, "order": 23, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 194}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 70, "type": "CLIPTextEncode", "pos": [-224, -518], "size": {"0": 400, "1": 200}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 171}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [190], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["a women kneeling on hard wood floors"]}], "links": [[113, 29, 2, 8, 1, "VAE"], [151, 58, 0, 61, 0, "SAM_MODEL"], [152, 59, 0, 61, 1, "GROUNDING_DINO_MODEL"], [153, 60, 0, 61, 2, "IMAGE"], [154, 61, 0, 62, 0, "IMAGE"], [155, 61, 1, 63, 0, "MASK"], [156, 63, 0, 64, 0, "MASK"], [157, 64, 0, 65, 0, "IMAGE"], [169, 8, 0, 67, 1, "IMAGE"], [170, 66, 0, 67, 0, "IMAGE"], [171, 29, 1, 70, 0, "CLIP"], [172, 29, 1, 71, 0, "CLIP"], [173, 71, 0, 72, 2, "CONDITIONING"], [175, 29, 0, 72, 0, "MODEL"], [176, 72, 0, 8, 0, "LATENT"], [177, 60, 0, 74, 0, "IMAGE"], [178, 63, 0, 74, 2, "MASK"], [179, 29, 2, 74, 1, "VAE"], [180, 74, 0, 72, 3, "LATENT"], [181, 77, 0, 75, 0, "IMAGE"], [182, 76, 0, 77, 0, "UPSCALE_MODEL"], [186, 80, 0, 81, 0, "IMAGE"], [187, 83, 0, 82, 1, "CONTROL_NET"], [188, 80, 0, 82, 2, "IMAGE"], [189, 60, 0, 80, 0, "IMAGE"], [190, 70, 0, 82, 0, "CONDITIONING"], [191, 82, 0, 72, 1, "CONDITIONING"], [192, 67, 0, 84, 0, "IMAGE"], [193, 84, 0, 77, 1, "IMAGE"], [194, 84, 0, 85, 0, "IMAGE"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/reposer_w__Upscale.json b/pysssss-workflows/reposer_w__Upscale.json new file mode 100644 index 00000000000..00044603536 --- /dev/null +++ b/pysssss-workflows/reposer_w__Upscale.json @@ -0,0 +1 @@ +{"last_node_id": 78, "last_link_id": 184, "nodes": [{"id": 59, "type": "GroundingDinoModelLoader (segment anything)", "pos": [-1334, -234], "size": {"0": 361.20001220703125, "1": 58}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "GROUNDING_DINO_MODEL", "type": "GROUNDING_DINO_MODEL", "links": [152], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "GroundingDinoModelLoader (segment anything)"}, "widgets_values": ["GroundingDINO_SwinB (938MB)"]}, {"id": 60, "type": "LoadImage", "pos": [-1330, 102], "size": {"0": 315, "1": 314.0000305175781}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [153, 177], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["4 (6).jpg", "image"]}, {"id": 61, "type": "GroundingDinoSAMSegment (segment anything)", "pos": [-1366, -90], "size": {"0": 352.79998779296875, "1": 122}, "flags": {}, "order": 6, "mode": 0, "inputs": [{"name": "sam_model", "type": "SAM_MODEL", "link": 151}, {"name": "grounding_dino_model", "type": "GROUNDING_DINO_MODEL", "link": 152}, {"name": "image", "type": "IMAGE", "link": 153}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [154], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [155], "shape": 3}], "properties": {"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"}, "widgets_values": ["women", 0.3]}, {"id": 64, "type": "MaskToImage", "pos": [-976, 49], "size": {"0": 210, "1": 26}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 156}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [157], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "MaskToImage"}}, {"id": 65, "type": "PreviewImage", "pos": [-971, 159], "size": {"0": 210, "1": 246}, "flags": {}, "order": 13, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 157}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 58, "type": "SAMModelLoader (segment anything)", "pos": [-1300, -360], "size": {"0": 315, "1": 58}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "SAM_MODEL", "type": "SAM_MODEL", "links": [151], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "SAMModelLoader (segment anything)"}, "widgets_values": ["sam_hq_vit_h (2.57GB)"]}, {"id": 8, "type": "VAEDecode", "pos": [809, -397], "size": {"0": 210, "1": 46}, "flags": {}, "order": 15, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 176}, {"name": "vae", "type": "VAE", "link": 113}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [169], "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}, "color": "#323", "bgcolor": "#535"}, {"id": 66, "type": "LoadImage", "pos": [-460, 127], "size": {"0": 220, "1": 320}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [170], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["Mia_face (28).png", "image"]}, {"id": 72, "type": "KSampler", "pos": [409, -466], "size": {"0": 315, "1": 262}, "flags": {}, "order": 14, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 175}, {"name": "positive", "type": "CONDITIONING", "link": 174}, {"name": "negative", "type": "CONDITIONING", "link": 173}, {"name": "latent_image", "type": "LATENT", "link": 180, "slot_index": 3}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [176], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [870499462869567, "randomize", 20, 8, "euler", "normal", 1]}, {"id": 63, "type": "InvertMask (segment anything)", "pos": [-983, -43], "size": {"0": 243.60000610351562, "1": 26}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 155, "slot_index": 0}], "outputs": [{"name": "MASK", "type": "MASK", "links": [156, 178], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "InvertMask (segment anything)"}}, {"id": 74, "type": "VAEEncodeForInpaint", "pos": [-633, -75], "size": {"0": 315, "1": 98}, "flags": {}, "order": 12, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 177, "slot_index": 0}, {"name": "vae", "type": "VAE", "link": 179, "slot_index": 1}, {"name": "mask", "type": "MASK", "link": 178}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [180], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "VAEEncodeForInpaint"}, "widgets_values": [6]}, {"id": 62, "type": "PreviewImage", "pos": [-1015, 454], "size": {"0": 210, "1": 246}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 154}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 29, "type": "CheckpointLoaderSimple", "pos": [-737, -386], "size": {"0": 315, "1": 98}, "flags": {}, "order": 4, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [175], "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [171, 172], "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [113, 179], "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["Deliberate_v1.1-inpainting.safetensors"], "color": "#323", "bgcolor": "#535"}, {"id": 71, "type": "CLIPTextEncode", "pos": [-229, -222], "size": {"0": 400, "1": 200}, "flags": {}, "order": 8, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 172}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [173], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["mutliple women"]}, {"id": 70, "type": "CLIPTextEncode", "pos": [-215, -567], "size": {"0": 400, "1": 200}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 171}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [174], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["a women kneeling on the bed in a cozy bedroom, soft lighting, a comfortable queen-sized bed with fluffy pillows and a warm duvet, A wooden nightstand with a reading lamp, a small stack of books, A soft woven rug on the floor. Light, airy curtains gently moving in the breeze from an open window.\""]}, {"id": 76, "type": "UpscaleModelLoader", "pos": [704, -133], "size": {"0": 315, "1": 58}, "flags": {}, "order": 5, "mode": 0, "outputs": [{"name": "UPSCALE_MODEL", "type": "UPSCALE_MODEL", "links": [182], "slot_index": 0}], "properties": {"Node name for S&R": "UpscaleModelLoader"}, "widgets_values": ["4x_NMKD-Siax_200k.pth"]}, {"id": 77, "type": "ImageUpscaleWithModel", "pos": [448, 234], "size": {"0": 241.79998779296875, "1": 46}, "flags": {}, "order": 17, "mode": 0, "inputs": [{"name": "upscale_model", "type": "UPSCALE_MODEL", "link": 182}, {"name": "image", "type": "IMAGE", "link": 184, "slot_index": 1}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [181], "slot_index": 0}], "properties": {"Node name for S&R": "ImageUpscaleWithModel"}}, {"id": 67, "type": "ReActorFaceSwap", "pos": [-70, 222], "size": {"0": 315, "1": 338}, "flags": {}, "order": 16, "mode": 0, "inputs": [{"name": "source_image", "type": "IMAGE", "link": 170, "slot_index": 0}, {"name": "input_image", "type": "IMAGE", "link": 169, "slot_index": 1}, {"name": "face_model", "type": "FACE_MODEL", "link": null}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [184], "shape": 3, "slot_index": 0}, {"name": "FACE_MODEL", "type": "FACE_MODEL", "links": null, "shape": 3}], "properties": {"Node name for S&R": "ReActorFaceSwap"}, "widgets_values": [true, "inswapper_128.onnx", "retinaface_resnet50", "GFPGANv1.4.pth", 1, 1, "female", "female", "0", "0", 1]}, {"id": 75, "type": "SaveImage", "pos": [813, 245], "size": {"0": 455.9945373535156, "1": 553.0919189453125}, "flags": {}, "order": 18, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 181}], "properties": {}, "widgets_values": ["maddy/3/maddy"]}], "links": [[113, 29, 2, 8, 1, "VAE"], [151, 58, 0, 61, 0, "SAM_MODEL"], [152, 59, 0, 61, 1, "GROUNDING_DINO_MODEL"], [153, 60, 0, 61, 2, "IMAGE"], [154, 61, 0, 62, 0, "IMAGE"], [155, 61, 1, 63, 0, "MASK"], [156, 63, 0, 64, 0, "MASK"], [157, 64, 0, 65, 0, "IMAGE"], [169, 8, 0, 67, 1, "IMAGE"], [170, 66, 0, 67, 0, "IMAGE"], [171, 29, 1, 70, 0, "CLIP"], [172, 29, 1, 71, 0, "CLIP"], [173, 71, 0, 72, 2, "CONDITIONING"], [174, 70, 0, 72, 1, "CONDITIONING"], [175, 29, 0, 72, 0, "MODEL"], [176, 72, 0, 8, 0, "LATENT"], [177, 60, 0, 74, 0, "IMAGE"], [178, 63, 0, 74, 2, "MASK"], [179, 29, 2, 74, 1, "VAE"], [180, 74, 0, 72, 3, "LATENT"], [181, 77, 0, 75, 0, "IMAGE"], [182, 76, 0, 77, 0, "UPSCALE_MODEL"], [184, 67, 0, 77, 1, "IMAGE"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/sam.json b/pysssss-workflows/sam.json new file mode 100644 index 00000000000..5a7ce9ae6db --- /dev/null +++ b/pysssss-workflows/sam.json @@ -0,0 +1 @@ +{"last_node_id": 8, "last_link_id": 7, "nodes": [{"id": 3, "type": "LoadImage", "pos": [1434, -880], "size": [315, 314.0000305175781], "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [3], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["4 (6).jpg", "image"]}, {"id": 1, "type": "SAMModelLoader (segment anything)", "pos": [1440, -1092], "size": {"0": 315, "1": 58}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "SAM_MODEL", "type": "SAM_MODEL", "links": [1], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "SAMModelLoader (segment anything)"}, "widgets_values": ["sam_hq_vit_h (2.57GB)"]}, {"id": 2, "type": "GroundingDinoModelLoader (segment anything)", "pos": [1431, -983], "size": {"0": 315, "1": 58}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "GROUNDING_DINO_MODEL", "type": "GROUNDING_DINO_MODEL", "links": [2], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "GroundingDinoModelLoader (segment anything)"}, "widgets_values": ["GroundingDINO_SwinB (938MB)"]}, {"id": 6, "type": "InvertMask (segment anything)", "pos": [2210, -881], "size": {"0": 210, "1": 26}, "flags": {}, "order": 5, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 5, "slot_index": 0}], "outputs": [{"name": "MASK", "type": "MASK", "links": [6], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "InvertMask (segment anything)"}}, {"id": 5, "type": "PreviewImage", "pos": [2234, -1286], "size": [210, 246], "flags": {}, "order": 4, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 4}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 8, "type": "PreviewImage", "pos": [2465, -752], "size": {"0": 210, "1": 246}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 7}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 7, "type": "MaskToImage", "pos": [2224, -751], "size": {"0": 210, "1": 26}, "flags": {}, "order": 6, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 6}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [7], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "MaskToImage"}}, {"id": 4, "type": "GroundingDinoSAMSegment (segment anything)", "pos": [1861, -971], "size": {"0": 330, "1": 122}, "flags": {}, "order": 3, "mode": 0, "inputs": [{"name": "sam_model", "type": "SAM_MODEL", "link": 1}, {"name": "grounding_dino_model", "type": "GROUNDING_DINO_MODEL", "link": 2}, {"name": "image", "type": "IMAGE", "link": 3}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [4], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [5], "shape": 3}], "properties": {"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"}, "widgets_values": ["stockings", 0.3]}], "links": [[1, 1, 0, 4, 0, "SAM_MODEL"], [2, 2, 0, 4, 1, "GROUNDING_DINO_MODEL"], [3, 3, 0, 4, 2, "IMAGE"], [4, 4, 0, 5, 0, "IMAGE"], [5, 4, 1, 6, 0, "MASK"], [6, 6, 0, 7, 0, "MASK"], [7, 7, 0, 8, 0, "IMAGE"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/sam_inpaint_faceswap.json b/pysssss-workflows/sam_inpaint_faceswap.json new file mode 100644 index 00000000000..c5b317c74b0 --- /dev/null +++ b/pysssss-workflows/sam_inpaint_faceswap.json @@ -0,0 +1 @@ +{"last_node_id": 69, "last_link_id": 170, "nodes": [{"id": 58, "type": "SAMModelLoader (segment anything)", "pos": [-1341.3001446561248, 255.45407693943753], "size": {"0": 315, "1": 58}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "SAM_MODEL", "type": "SAM_MODEL", "links": [151], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "SAMModelLoader (segment anything)"}, "widgets_values": ["sam_hq_vit_h (2.57GB)"]}, {"id": 59, "type": "GroundingDinoModelLoader (segment anything)", "pos": [-1351.3001446561248, 355.4540769394375], "size": {"0": 361.20001220703125, "1": 58}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "GROUNDING_DINO_MODEL", "type": "GROUNDING_DINO_MODEL", "links": [152], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "GroundingDinoModelLoader (segment anything)"}, "widgets_values": ["GroundingDINO_SwinB (938MB)"]}, {"id": 65, "type": "PreviewImage", "pos": [-285, 486], "size": {"0": 210, "1": 246}, "flags": {}, "order": 16, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 157}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 61, "type": "GroundingDinoSAMSegment (segment anything)", "pos": [-836, 367], "size": {"0": 352.79998779296875, "1": 122}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "sam_model", "type": "SAM_MODEL", "link": 151}, {"name": "grounding_dino_model", "type": "GROUNDING_DINO_MODEL", "link": 152}, {"name": "image", "type": "IMAGE", "link": 153}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [154], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [155], "shape": 3}], "properties": {"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"}, "widgets_values": ["women", 0.3]}, {"id": 63, "type": "InvertMask (segment anything)", "pos": [-281, 260], "size": {"0": 243.60000610351562, "1": 26}, "flags": {}, "order": 12, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 155, "slot_index": 0}], "outputs": [{"name": "MASK", "type": "MASK", "links": [156, 158], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "InvertMask (segment anything)"}}, {"id": 64, "type": "MaskToImage", "pos": [-274, 371], "size": {"0": 210, "1": 26}, "flags": {}, "order": 14, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 156}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [157], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "MaskToImage"}}, {"id": 34, "type": "CLIPTextEncodeSDXL", "pos": [799, 349], "size": {"0": 400, "1": 274}, "flags": {"collapsed": false}, "order": 13, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 135, "slot_index": 0}, {"name": "width", "type": "INT", "link": 95, "widget": {"name": "width"}}, {"name": "height", "type": "INT", "link": 96, "widget": {"name": "height"}}, {"name": "target_width", "type": "INT", "link": 100, "widget": {"name": "target_width"}}, {"name": "target_height", "type": "INT", "link": 101, "widget": {"name": "target_height"}}, {"name": "text_g", "type": "STRING", "link": 111, "widget": {"name": "text_g"}, "slot_index": 5}, {"name": "text_l", "type": "STRING", "link": 112, "widget": {"name": "text_l"}}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [107], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncodeSDXL"}, "widgets_values": [1024, 1024, 0, 0, 1024, 1024, "kneeling on the floor of the hotel bedroom", "kneeling on the floor of the hotel bedroom"], "color": "#232", "bgcolor": "#353"}, {"id": 62, "type": "PreviewImage", "pos": [-503, 503], "size": {"0": 210, "1": 246}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 154}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 29, "type": "CheckpointLoaderSimple", "pos": [-81, 148], "size": {"0": 315, "1": 98}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [161], "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [105, 138], "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [83, 113], "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["RealVisXL_V4.0.safetensors"], "color": "#323", "bgcolor": "#535"}, {"id": 36, "type": "PrimitiveNode", "pos": [39, 474], "size": {"0": 255.1137237548828, "1": 112.41053771972656}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "STRING", "type": "STRING", "links": [104, 109], "widget": {"name": "text_g"}, "slot_index": 0}], "properties": {"Run widget replace on values": false}, "widgets_values": [""], "color": "#322", "bgcolor": "#533"}, {"id": 49, "type": "LoraStackLoader_PoP", "pos": [417, 58], "size": {"0": 315, "1": 342}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 161}, {"name": "clip", "type": "CLIP", "link": 138, "slot_index": 1}], "outputs": [{"name": "MODEL", "type": "MODEL", "links": [137], "shape": 3, "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [135], "shape": 3}], "properties": {"Node name for S&R": "LoraStackLoader_PoP"}, "widgets_values": ["Off", "None", 1.3, 1, "Off", "None", 1, 1, "Off", "None", 1, 1], "color": "#432", "bgcolor": "#653"}, {"id": 3, "type": "KSampler", "pos": [824, 35], "size": {"0": 315, "1": 262}, "flags": {}, "order": 17, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 137}, {"name": "positive", "type": "CONDITIONING", "link": 107}, {"name": "negative", "type": "CONDITIONING", "link": 108}, {"name": "latent_image", "type": "LATENT", "link": 72}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [126], "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [482400811689387, "randomize", 25, 6, "dpmpp_sde", "karras", 1], "color": "#223", "bgcolor": "#335"}, {"id": 8, "type": "VAEDecode", "pos": [922, -43], "size": {"0": 210, "1": 46}, "flags": {}, "order": 18, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 126}, {"name": "vae", "type": "VAE", "link": 113}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [169], "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}, "color": "#323", "bgcolor": "#535"}, {"id": 33, "type": "Get image size", "pos": [337, 499], "size": {"0": 210, "1": 66}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 160}], "outputs": [{"name": "INT", "type": "INT", "links": [95, 100], "shape": 3, "slot_index": 0}, {"name": "INT", "type": "INT", "links": [96, 101], "shape": 3, "slot_index": 1}, {"name": "TUPLE", "type": "TUPLE", "links": null, "shape": 3}], "properties": {"Node name for S&R": "Get image size"}, "color": "#222", "bgcolor": "#000"}, {"id": 26, "type": "VAEEncodeForInpaint", "pos": [241, 672], "size": {"0": 226.8000030517578, "1": 98}, "flags": {}, "order": 15, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 159}, {"name": "vae", "type": "VAE", "link": 83}, {"name": "mask", "type": "MASK", "link": 158}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [72], "slot_index": 0}], "properties": {"Node name for S&R": "VAEEncodeForInpaint"}, "widgets_values": [20], "color": "#323", "bgcolor": "#535"}, {"id": 37, "type": "CLIPTextEncodeSDXL", "pos": [682, 683], "size": {"0": 400, "1": 270}, "flags": {}, "order": 8, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 105, "slot_index": 0}, {"name": "text_g", "type": "STRING", "link": 104, "widget": {"name": "text_g"}, "slot_index": 5}, {"name": "text_l", "type": "STRING", "link": 109, "widget": {"name": "text_l"}}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [108], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncodeSDXL"}, "widgets_values": [1024, 1024, 0, 0, 1024, 1024, "", ""], "color": "#322", "bgcolor": "#533"}, {"id": 35, "type": "PrimitiveNode", "pos": [35, 315], "size": {"0": 255.1137237548828, "1": 112.41053771972656}, "flags": {}, "order": 4, "mode": 0, "outputs": [{"name": "STRING", "type": "STRING", "links": [111, 112], "slot_index": 0, "widget": {"name": "text_g"}}], "properties": {"Run widget replace on values": false}, "widgets_values": ["kneeling on the floor of the hotel bedroom"], "color": "#232", "bgcolor": "#353"}, {"id": 60, "type": "LoadImage", "pos": [-1045, 710], "size": {"0": 315, "1": 314.0000305175781}, "flags": {}, "order": 5, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [153, 159, 160], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["4 (6).jpg", "image"]}, {"id": 68, "type": "SaveImage", "pos": [158, 929], "size": {"0": 517.3851318359375, "1": 779.9139404296875}, "flags": {}, "order": 20, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 164, "slot_index": 0}], "properties": {}, "widgets_values": ["mia/mia"], "color": "#222", "bgcolor": "#000"}, {"id": 67, "type": "ReActorFaceSwap", "pos": [-189, 933], "size": {"0": 315, "1": 338}, "flags": {}, "order": 19, "mode": 0, "inputs": [{"name": "source_image", "type": "IMAGE", "link": 170, "slot_index": 0}, {"name": "input_image", "type": "IMAGE", "link": 169, "slot_index": 1}, {"name": "face_model", "type": "FACE_MODEL", "link": null}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [164], "shape": 3, "slot_index": 0}, {"name": "FACE_MODEL", "type": "FACE_MODEL", "links": null, "shape": 3}], "properties": {"Node name for S&R": "ReActorFaceSwap"}, "widgets_values": [true, "inswapper_128.onnx", "retinaface_resnet50", "GFPGANv1.4.pth", 1, 1, "female", "female", "0", "0", 1]}, {"id": 66, "type": "LoadImage", "pos": [-1231, 505], "size": {"0": 220, "1": 320}, "flags": {}, "order": 6, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [170], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["Mia_face (28).png", "image"]}], "links": [[72, 26, 0, 3, 3, "LATENT"], [83, 29, 2, 26, 1, "VAE"], [95, 33, 0, 34, 1, "INT"], [96, 33, 1, 34, 2, "INT"], [100, 33, 0, 34, 3, "INT"], [101, 33, 1, 34, 4, "INT"], [104, 36, 0, 37, 1, "STRING"], [105, 29, 1, 37, 0, "CLIP"], [107, 34, 0, 3, 1, "CONDITIONING"], [108, 37, 0, 3, 2, "CONDITIONING"], [109, 36, 0, 37, 2, "STRING"], [111, 35, 0, 34, 5, "STRING"], [112, 35, 0, 34, 6, "STRING"], [113, 29, 2, 8, 1, "VAE"], [126, 3, 0, 8, 0, "LATENT"], [135, 49, 1, 34, 0, "CLIP"], [137, 49, 0, 3, 0, "MODEL"], [138, 29, 1, 49, 1, "CLIP"], [151, 58, 0, 61, 0, "SAM_MODEL"], [152, 59, 0, 61, 1, "GROUNDING_DINO_MODEL"], [153, 60, 0, 61, 2, "IMAGE"], [154, 61, 0, 62, 0, "IMAGE"], [155, 61, 1, 63, 0, "MASK"], [156, 63, 0, 64, 0, "MASK"], [157, 64, 0, 65, 0, "IMAGE"], [158, 63, 0, 26, 2, "MASK"], [159, 60, 0, 26, 0, "IMAGE"], [160, 60, 0, 33, 0, "IMAGE"], [161, 29, 0, 49, 0, "MODEL"], [164, 67, 0, 68, 0, "IMAGE"], [169, 8, 0, 67, 1, "IMAGE"], [170, 66, 0, 67, 0, "IMAGE"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/sam_inpainting.json b/pysssss-workflows/sam_inpainting.json new file mode 100644 index 00000000000..25f7974e0a9 --- /dev/null +++ b/pysssss-workflows/sam_inpainting.json @@ -0,0 +1 @@ +{"last_node_id": 65, "last_link_id": 161, "nodes": [{"id": 26, "type": "VAEEncodeForInpaint", "pos": [420, 665], "size": {"0": 226.8000030517578, "1": 98}, "flags": {}, "order": 14, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 159}, {"name": "vae", "type": "VAE", "link": 83}, {"name": "mask", "type": "MASK", "link": 158}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [72], "slot_index": 0}], "properties": {"Node name for S&R": "VAEEncodeForInpaint"}, "widgets_values": [20], "color": "#323", "bgcolor": "#535"}, {"id": 37, "type": "CLIPTextEncodeSDXL", "pos": [682, 683], "size": {"0": 400, "1": 270}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 105, "slot_index": 0}, {"name": "text_g", "type": "STRING", "link": 104, "widget": {"name": "text_g"}, "slot_index": 5}, {"name": "text_l", "type": "STRING", "link": 109, "widget": {"name": "text_l"}}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [108], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncodeSDXL"}, "widgets_values": [1024, 1024, 0, 0, 1024, 1024, "", ""], "color": "#322", "bgcolor": "#533"}, {"id": 33, "type": "Get image size", "pos": [387, 495], "size": {"0": 210, "1": 66}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 160}], "outputs": [{"name": "INT", "type": "INT", "links": [95, 100], "shape": 3, "slot_index": 0}, {"name": "INT", "type": "INT", "links": [96, 101], "shape": 3, "slot_index": 1}, {"name": "TUPLE", "type": "TUPLE", "links": null, "shape": 3}], "properties": {"Node name for S&R": "Get image size"}, "color": "#222", "bgcolor": "#000"}, {"id": 58, "type": "SAMModelLoader (segment anything)", "pos": [-1341.3001446561248, 255.45407693943753], "size": {"0": 315, "1": 58}, "flags": {}, "order": 0, "mode": 0, "outputs": [{"name": "SAM_MODEL", "type": "SAM_MODEL", "links": [151], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "SAMModelLoader (segment anything)"}, "widgets_values": ["sam_hq_vit_h (2.57GB)"]}, {"id": 59, "type": "GroundingDinoModelLoader (segment anything)", "pos": [-1351.3001446561248, 355.4540769394375], "size": {"0": 361.20001220703125, "1": 58}, "flags": {}, "order": 1, "mode": 0, "outputs": [{"name": "GROUNDING_DINO_MODEL", "type": "GROUNDING_DINO_MODEL", "links": [152], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "GroundingDinoModelLoader (segment anything)"}, "widgets_values": ["GroundingDINO_SwinB (938MB)"]}, {"id": 65, "type": "PreviewImage", "pos": [-285, 486], "size": {"0": 210, "1": 246}, "flags": {}, "order": 15, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 157}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 61, "type": "GroundingDinoSAMSegment (segment anything)", "pos": [-836, 367], "size": {"0": 352.79998779296875, "1": 122}, "flags": {}, "order": 6, "mode": 0, "inputs": [{"name": "sam_model", "type": "SAM_MODEL", "link": 151}, {"name": "grounding_dino_model", "type": "GROUNDING_DINO_MODEL", "link": 152}, {"name": "image", "type": "IMAGE", "link": 153}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [154], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": [155], "shape": 3}], "properties": {"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"}, "widgets_values": ["women", 0.3]}, {"id": 63, "type": "InvertMask (segment anything)", "pos": [-281, 260], "size": {"0": 243.60000610351562, "1": 26}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 155, "slot_index": 0}], "outputs": [{"name": "MASK", "type": "MASK", "links": [156, 158], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "InvertMask (segment anything)"}}, {"id": 64, "type": "MaskToImage", "pos": [-274, 371], "size": {"0": 210, "1": 26}, "flags": {}, "order": 13, "mode": 0, "inputs": [{"name": "mask", "type": "MASK", "link": 156}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [157], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "MaskToImage"}}, {"id": 34, "type": "CLIPTextEncodeSDXL", "pos": [799, 349], "size": {"0": 400, "1": 274}, "flags": {"collapsed": false}, "order": 12, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 135, "slot_index": 0}, {"name": "width", "type": "INT", "link": 95, "widget": {"name": "width"}}, {"name": "height", "type": "INT", "link": 96, "widget": {"name": "height"}}, {"name": "target_width", "type": "INT", "link": 100, "widget": {"name": "target_width"}}, {"name": "target_height", "type": "INT", "link": 101, "widget": {"name": "target_height"}}, {"name": "text_g", "type": "STRING", "link": 111, "widget": {"name": "text_g"}, "slot_index": 5}, {"name": "text_l", "type": "STRING", "link": 112, "widget": {"name": "text_l"}}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [107], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncodeSDXL"}, "widgets_values": [1024, 1024, 0, 0, 1024, 1024, "hotel bed room", "hotel bed room"], "color": "#232", "bgcolor": "#353"}, {"id": 8, "type": "VAEDecode", "pos": [1298, 396], "size": {"0": 210, "1": 46}, "flags": {}, "order": 17, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 126}, {"name": "vae", "type": "VAE", "link": 113}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [149], "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}, "color": "#323", "bgcolor": "#535"}, {"id": 60, "type": "LoadImage", "pos": [-852, 650], "size": {"0": 315, "1": 314.0000305175781}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [153, 159, 160], "shape": 3, "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null, "shape": 3}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["4 (6).jpg", "image"]}, {"id": 62, "type": "PreviewImage", "pos": [-503, 503], "size": {"0": 210, "1": 246}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 154}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 57, "type": "PreviewImage", "pos": [-511, 883], "size": {"0": 434.7059326171875, "1": 455.4924011230469}, "flags": {}, "order": 18, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 149}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 49, "type": "LoraStackLoader_PoP", "pos": [381, 60], "size": {"0": 315, "1": 342}, "flags": {}, "order": 8, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 161}, {"name": "clip", "type": "CLIP", "link": 138, "slot_index": 1}], "outputs": [{"name": "MODEL", "type": "MODEL", "links": [137], "shape": 3, "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [135], "shape": 3}], "properties": {"Node name for S&R": "LoraStackLoader_PoP"}, "widgets_values": ["Off", "None", 1.3, 1, "Off", "None", 1, 1, "Off", "None", 1, 1], "color": "#432", "bgcolor": "#653"}, {"id": 29, "type": "CheckpointLoaderSimple", "pos": [-81, 148], "size": {"0": 315, "1": 98}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "MODEL", "type": "MODEL", "links": [161], "slot_index": 0}, {"name": "CLIP", "type": "CLIP", "links": [105, 138], "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [83, 113], "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["RealVisXL_V4.0.safetensors"], "color": "#323", "bgcolor": "#535"}, {"id": 3, "type": "KSampler", "pos": [1287, 500], "size": {"0": 315, "1": 262}, "flags": {}, "order": 16, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 137}, {"name": "positive", "type": "CONDITIONING", "link": 107}, {"name": "negative", "type": "CONDITIONING", "link": 108}, {"name": "latent_image", "type": "LATENT", "link": 72}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [126], "slot_index": 0}], "properties": {"Node name for S&R": "KSampler"}, "widgets_values": [1060726468770960, "randomize", 25, 6, "dpmpp_sde", "karras", 1], "color": "#223", "bgcolor": "#335"}, {"id": 35, "type": "PrimitiveNode", "pos": [35, 315], "size": {"0": 255.1137237548828, "1": 112.41053771972656}, "flags": {}, "order": 4, "mode": 0, "outputs": [{"name": "STRING", "type": "STRING", "links": [111, 112], "slot_index": 0, "widget": {"name": "text_g"}}], "properties": {"Run widget replace on values": false}, "widgets_values": ["hotel bed room"], "color": "#232", "bgcolor": "#353"}, {"id": 36, "type": "PrimitiveNode", "pos": [39, 474], "size": {"0": 255.1137237548828, "1": 112.41053771972656}, "flags": {}, "order": 5, "mode": 0, "outputs": [{"name": "STRING", "type": "STRING", "links": [104, 109], "widget": {"name": "text_g"}, "slot_index": 0}], "properties": {"Run widget replace on values": false}, "widgets_values": [""], "color": "#322", "bgcolor": "#533"}], "links": [[72, 26, 0, 3, 3, "LATENT"], [83, 29, 2, 26, 1, "VAE"], [95, 33, 0, 34, 1, "INT"], [96, 33, 1, 34, 2, "INT"], [100, 33, 0, 34, 3, "INT"], [101, 33, 1, 34, 4, "INT"], [104, 36, 0, 37, 1, "STRING"], [105, 29, 1, 37, 0, "CLIP"], [107, 34, 0, 3, 1, "CONDITIONING"], [108, 37, 0, 3, 2, "CONDITIONING"], [109, 36, 0, 37, 2, "STRING"], [111, 35, 0, 34, 5, "STRING"], [112, 35, 0, 34, 6, "STRING"], [113, 29, 2, 8, 1, "VAE"], [126, 3, 0, 8, 0, "LATENT"], [135, 49, 1, 34, 0, "CLIP"], [137, 49, 0, 3, 0, "MODEL"], [138, 29, 1, 49, 1, "CLIP"], [149, 8, 0, 57, 0, "IMAGE"], [151, 58, 0, 61, 0, "SAM_MODEL"], [152, 59, 0, 61, 1, "GROUNDING_DINO_MODEL"], [153, 60, 0, 61, 2, "IMAGE"], [154, 61, 0, 62, 0, "IMAGE"], [155, 61, 1, 63, 0, "MASK"], [156, 63, 0, 64, 0, "MASK"], [157, 64, 0, 65, 0, "IMAGE"], [158, 63, 0, 26, 2, "MASK"], [159, 60, 0, 26, 0, "IMAGE"], [160, 60, 0, 33, 0, "IMAGE"], [161, 29, 0, 49, 0, "MODEL"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/pysssss-workflows/sdxl_canny_controlnet1.json b/pysssss-workflows/sdxl_canny_controlnet1.json new file mode 100644 index 00000000000..9b299241b9c --- /dev/null +++ b/pysssss-workflows/sdxl_canny_controlnet1.json @@ -0,0 +1 @@ +{"last_node_id": 17, "last_link_id": 28, "nodes": [{"id": 5, "type": "EmptyLatentImage", "pos": [606, -36], "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": [768, 1344, 1]}, {"id": 10, "type": "ControlNetApply", "pos": [389, 214], "size": {"0": 317.4000244140625, "1": 98}, "flags": {}, "order": 8, "mode": 0, "inputs": [{"name": "conditioning", "type": "CONDITIONING", "link": 10}, {"name": "control_net", "type": "CONTROL_NET", "link": 13}, {"name": "image", "type": "IMAGE", "link": 25}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [18], "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetApply"}, "widgets_values": [0.5]}, {"id": 15, "type": "PreviewImage", "pos": [1213, 424], "size": {"0": 210, "1": 246}, "flags": {}, "order": 7, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 23}], "properties": {"Node name for S&R": "PreviewImage"}}, {"id": 3, "type": "KSampler", "pos": [1017, -208], "size": {"0": 315, "1": 262}, "flags": {}, "order": 9, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 19}, {"name": "positive", "type": "CONDITIONING", "link": 18}, {"name": "negative", "type": "CONDITIONING", "link": 16}, {"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": [967894639848463, "randomize", 24, 7, "dpmpp_2s_ancestral", "normal", 1]}, {"id": 14, "type": "CheckpointLoaderSimple", "pos": [-504, 192], "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": [20, 21], "slot_index": 1}, {"name": "VAE", "type": "VAE", "links": [28], "slot_index": 2}], "properties": {"Node name for S&R": "CheckpointLoaderSimple"}, "widgets_values": ["RealVisXL_V4.0.safetensors"]}, {"id": 12, "type": "ControlNetLoader", "pos": [-92, 229], "size": {"0": 422, "1": 58}, "flags": {}, "order": 2, "mode": 0, "outputs": [{"name": "CONTROL_NET", "type": "CONTROL_NET", "links": [13], "slot_index": 0}], "properties": {"Node name for S&R": "ControlNetLoader"}, "widgets_values": ["canny_sdxl.safetensors"]}, {"id": 7, "type": "CLIPTextEncode", "pos": [-95, -201], "size": {"0": 425.27801513671875, "1": 180.6060791015625}, "flags": {}, "order": 4, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 20}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [16], "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["worst quality, low quality, blurry, cropped, lowres,"]}, {"id": 16, "type": "Canny", "pos": [845, 387], "size": {"0": 315, "1": 82}, "flags": {}, "order": 6, "mode": 0, "inputs": [{"name": "image", "type": "IMAGE", "link": 24}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [23, 25], "shape": 3, "slot_index": 0}], "properties": {"Node name for S&R": "Canny"}, "widgets_values": [0.2, 0.6]}, {"id": 11, "type": "LoadImage", "pos": [410, 379], "size": {"0": 387.97003173828125, "1": 465.5097961425781}, "flags": {}, "order": 3, "mode": 0, "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [24], "slot_index": 0}, {"name": "MASK", "type": "MASK", "links": null}], "properties": {"Node name for S&R": "LoadImage"}, "widgets_values": ["striping-off-and-showing-her-tight-and-perfectly-shaped-body-is-her-favourite-06 (1).jpg", "image"]}, {"id": 9, "type": "SaveImage", "pos": [1454, -13], "size": {"0": 393.6202087402344, "1": 449.1610107421875}, "flags": {}, "order": 11, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 9}], "properties": {}, "widgets_values": ["ComfyUI"]}, {"id": 6, "type": "CLIPTextEncode", "pos": [-93, -436], "size": {"0": 422.84503173828125, "1": 164.31304931640625}, "flags": {}, "order": 5, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 21}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [10], "slot_index": 0}], "properties": {"Node name for S&R": "CLIPTextEncode"}, "widgets_values": ["gorgeous women squatting on the ground in a forest, tall, slender figure, shoulder-length blonde hair, piercing blue eyes, delicate facial features, high cheekbones, small, straight nose, full lips, large breasts, perfect vagina "]}, {"id": 8, "type": "VAEDecode", "pos": [1067, 189], "size": {"0": 210, "1": 46}, "flags": {}, "order": 10, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 7}, {"name": "vae", "type": "VAE", "link": 28}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [9], "slot_index": 0}], "properties": {"Node name for S&R": "VAEDecode"}}], "links": [[2, 5, 0, 3, 3, "LATENT"], [7, 3, 0, 8, 0, "LATENT"], [9, 8, 0, 9, 0, "IMAGE"], [10, 6, 0, 10, 0, "CONDITIONING"], [13, 12, 0, 10, 1, "CONTROL_NET"], [16, 7, 0, 3, 2, "CONDITIONING"], [18, 10, 0, 3, 1, "CONDITIONING"], [19, 14, 0, 3, 0, "MODEL"], [20, 14, 1, 7, 0, "CLIP"], [21, 14, 1, 6, 0, "CLIP"], [23, 16, 0, 15, 0, "IMAGE"], [24, 11, 0, 16, 0, "IMAGE"], [25, 16, 0, 10, 2, "IMAGE"], [28, 14, 2, 8, 1, "VAE"]], "groups": [], "config": {}, "extra": {}, "version": 0.4} \ No newline at end of file diff --git a/workflows_api/ipadapter.py b/workflows_api/ipadapter.py new file mode 100644 index 00000000000..c36f1079ef3 --- /dev/null +++ b/workflows_api/ipadapter.py @@ -0,0 +1,589 @@ +workflow = { + "1": { + "inputs": { + "text": [ + "34", + 1 + ] + }, + "class_type": "CLIPTextEncode", + "_meta": { + "title": "SDXL -ve Prompt" + } + }, + "2": { + "inputs": { + "width": [ + "19", + 0 + ], + "height": [ + "19", + 1 + ], + "batch_size": 1 + }, + "class_type": "EmptyLatentImage", + "_meta": { + "title": "Empty Latent Image" + } + }, + "5": { + "inputs": { + "image": "Mia_face2 (16).png", + "upload": "image" + }, + "class_type": "LoadImage", + "_meta": { + "title": "Load Face Image" + } + }, + "8": { + "inputs": { + "ckpt_name": "RealVisXL_V3.0.safetensors" + }, + "class_type": "CheckpointLoaderSimple", + "_meta": { + "title": "Load SDXL Checkpoint" + } + }, + "10": { + "inputs": { + "clip_name": "sd1.5/BEN_USE_THIS/model.safetensors" + }, + "class_type": "CLIPVisionLoader", + "_meta": { + "title": "Load CLIP Vision (SD 1.5!)" + } + }, + "18": { + "inputs": { + "upscale_method": "nearest-exact", + "megapixels": 1, + "image": [ + "62", + 0 + ] + }, + "class_type": "ImageScaleToTotalPixels", + "_meta": { + "title": "ImageScaleToTotalPixels" + } + }, + "19": { + "inputs": { + "image": [ + "18", + 0 + ] + }, + "class_type": "GetImageSize", + "_meta": { + "title": "GetImageSize" + } + }, + "34": { + "inputs": { + "text_positive": "leads spread showing off vagina, lying on hotel bed, (completely naked), perfect body, perfect legs, perfect vagina", + "text_negative": "deformed body, deformed legs, deformed vagina", + "style": "base", + "log_prompt": "No", + "style_positive": True, + "style_negative": True + }, + "class_type": "SDXLPromptStyler", + "_meta": { + "title": "SDXL Prompt Styler" + } + }, + "35": { + "inputs": { + "width": 1024, + "height": 1024, + "crop_w": 0, + "crop_h": 0, + "target_width": 1024, + "target_height": 1024, + "text_g": [ + "34", + 0 + ], + "text_l": "leads spread showing off vagina, lying on hotel bed" + }, + "class_type": "CLIPTextEncodeSDXL", + "_meta": { + "title": "SDXL Encode +ve Prompt" + } + }, + "43": { + "inputs": { + "stop_at_clip_layer": -2, + "clip": [ + "8", + 1 + ] + }, + "class_type": "CLIPSetLastLayer", + "_meta": { + "title": "CLIP Set Last Layer" + } + }, + "44": { + "inputs": { + "b1": 1.39, + "b2": 1.22, + "s1": 1.05, + "s2": 0.25, + "model": [ + "87", + 0 + ] + }, + "class_type": "FreeU_V2", + "_meta": { + "title": "FreeU_V2 (IPA)" + } + }, + "45": { + "inputs": { + "add_noise": "disable", + "steps": 25, + "cfg": 7.5, + "sampler_name": "euler_ancestral", + "scheduler": "normal", + "start_at_step": 0, + "end_at_step": 10000, + "return_with_leftover_noise": "enable", + "latent_image": [ + "2", + 0 + ] + }, + "class_type": "KSamplerAdvanced", + "_meta": { + "title": "KSampler (IPA)" + } + }, + "46": { + "inputs": { + "samples": [ + "45", + 0 + ] + }, + "class_type": "VAEDecode", + "_meta": { + "title": "VAE Decode" + } + }, + "47": { + "inputs": { + "images": [ + "46", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "55": { + "inputs": { + "steps": 20, + "cfg": 8, + "sampler_name": "euler_ancestral", + "scheduler": "normal", + "denoise": 0.54, + "latent_image": [ + "91", + 0 + ] + }, + "class_type": "KSampler", + "_meta": { + "title": "KSampler" + } + }, + "56": { + "inputs": { + "samples": [ + "55", + 0 + ], + "vae": [ + "8", + 2 + ] + }, + "class_type": "VAEDecode", + "_meta": { + "title": "VAE Decode" + } + }, + "62": { + "inputs": { + "image": "0016-12_w400 (4).jpg", + "upload": "image" + }, + "class_type": "LoadImage", + "_meta": { + "title": "Load Pose Image" + } + }, + "64": { + "inputs": { + "detect_hand": "enable", + "detect_body": "enable", + "detect_face": "enable", + "resolution": 1024, + "bbox_detector": "yolox_l.onnx", + "pose_estimator": "dw-ll_ucoco_384.onnx" + }, + "class_type": "DWPreprocessor", + "_meta": { + "title": "DWPose Estimator" + } + }, + "65": { + "inputs": { + "crop_padding_factor": 0.2, + "cascade_xml": "haarcascade_profileface.xml", + "image": [ + "5", + 0 + ] + }, + "class_type": "Image Crop Face", + "_meta": { + "title": "Image Crop Face" + } + }, + "66": { + "inputs": { + "upscale_method": "nearest-exact", + "megapixels": 1, + "image": [ + "62", + 0 + ] + }, + "class_type": "ImageScaleToTotalPixels", + "_meta": { + "title": "Scale Pose" + } + }, + "67": { + "inputs": { + "strength": 1, + "start_percent": 0, + "end_percent": 1, + "positive": [ + "35", + 0 + ], + "negative": [ + "1", + 0 + ], + "control_net": [ + "71", + 0 + ], + "image": [ + "64", + 0 + ] + }, + "class_type": "ControlNetApplyAdvanced", + "_meta": { + "title": "Apply ControlNet (Advanced)" + } + }, + "71": { + "inputs": { + "control_net_name": "sd1.5/thibaud_xl_openpose_256lora.safetensors" + }, + "class_type": "ControlNetLoader", + "_meta": { + "title": "Load SDXL Pose ControlNet" + } + }, + "72": { + "inputs": { + "images": [ + "64", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "73": { + "inputs": { + "seed": 787952265469233 + }, + "class_type": "Seed Everywhere", + "_meta": { + "title": "Seed Everywhere" + } + }, + "74": { + "inputs": { + "VAE": [ + "8", + 2 + ] + }, + "class_type": "Anything Everywhere", + "_meta": { + "title": "Anything Everywhere - VAE" + } + }, + "75": { + "inputs": { + "images": [ + "65", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "76": { + "inputs": {}, + "class_type": "Prompts Everywhere", + "_meta": { + "title": "Prompts Everywhere" + } + }, + "77": { + "inputs": { + "control_net_name": "sd1.5/control-lora-depth-rank128.safetensors" + }, + "class_type": "ControlNetLoader", + "_meta": { + "title": "Load SDXL Depth ControlNet" + } + }, + "80": { + "inputs": { + "images": [ + "84", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "82": { + "inputs": { + "MODEL": [ + "44", + 0 + ] + }, + "class_type": "Anything Everywhere", + "_meta": { + "title": "Anything Everywhere - IPA Model" + } + }, + "84": { + "inputs": { + "resolution": 1024 + }, + "class_type": "Zoe-DepthMapPreprocessor", + "_meta": { + "title": "Zoe Depth Map" + } + }, + "85": { + "inputs": { + "IMAGE": [ + "66", + 0 + ] + }, + "class_type": "Anything Everywhere", + "_meta": { + "title": "Anything Everywhere" + } + }, + "87": { + "inputs": { + "weight": 0.75, + "noise": 0.99, + "weight_type": "original", + "start_at": 0, + "end_at": 1, + "unfold_batch": False, + "ipadapter": [ + "88", + 0 + ], + "clip_vision": [ + "10", + 0 + ], + "image": [ + "90", + 0 + ], + "model": [ + "8", + 0 + ] + }, + "class_type": "IPAdapterApply", + "_meta": { + "title": "Apply IPAdapter" + } + }, + "88": { + "inputs": { + "ipadapter_file": "ip-adapter-plus-face_sdxl_vit-h.safetensors" + }, + "class_type": "IPAdapterModelLoader", + "_meta": { + "title": "Load IPAdapter Model" + } + }, + "90": { + "inputs": { + "interpolation": "LANCZOS", + "crop_position": "center", + "sharpening": 0, + "image": [ + "65", + 0 + ] + }, + "class_type": "PrepImageForClipVision", + "_meta": { + "title": "Prepare Image For Clip Vision" + } + }, + "91": { + "inputs": { + "version": "SDXL", + "upscale": 1.5, + "latent": [ + "45", + 0 + ] + }, + "class_type": "NNLatentUpscale", + "_meta": { + "title": "NNLatentUpscale" + } + }, + "92": { + "inputs": { + "CLIP": [ + "43", + 0 + ] + }, + "class_type": "Anything Everywhere", + "_meta": { + "title": "Anything Everywhere" + } + }, + "94": { + "inputs": { + "enabled": True, + "swap_model": "inswapper_128.onnx", + "facedetection": "retinaface_resnet50", + "face_restore_model": "codeformer.pth", + "face_restore_visibility": 0.1, + "codeformer_weight": 0, + "detect_gender_source": "female", + "detect_gender_input": "female", + "source_faces_index": "0", + "input_faces_index": "0", + "console_log_level": 1, + "source_image": [ + "5", + 0 + ], + "input_image": [ + "56", + 0 + ] + }, + "class_type": "ReActorFaceSwap", + "_meta": { + "title": "ReActor - Fast Face Swap" + } + }, + "96": { + "inputs": { + "images": [ + "94", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "97": { + "inputs": { + "facedetection": "retinaface_resnet50", + "codeformer_fidelity": 1, + "facerestore_model": [ + "98", + 0 + ], + "image": [ + "94", + 0 + ] + }, + "class_type": "FaceRestoreCFWithModel", + "_meta": { + "title": "FaceRestoreCFWithModel" + } + }, + "98": { + "inputs": { + "model_name": "codeformer.pth" + }, + "class_type": "FaceRestoreModelLoader", + "_meta": { + "title": "FaceRestoreModelLoader" + } + }, + "99": { + "inputs": { + "filename_prefix": "2024-02-26/faceswapped", + "images": [ + "97", + 0 + ] + }, + "class_type": "SaveImage", + "_meta": { + "title": "Save Image" + } + }, + "100": { + "inputs": { + "images": [ + "56", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + } +} \ No newline at end of file