diff --git a/examples/v2-autodetect-faces-workflow.json b/examples/v2-autodetect-faces-workflow.json new file mode 100644 index 0000000..837ee7f --- /dev/null +++ b/examples/v2-autodetect-faces-workflow.json @@ -0,0 +1,2554 @@ +{ + "last_node_id": 215, + "last_link_id": 474, + "nodes": [ + { + "id": 3, + "type": "KSampler", + "pos": [ + 810, + 240 + ], + "size": { + "0": 320, + "1": 470 + }, + "flags": {}, + "order": 36, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 433 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 38 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 33 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 44 + }, + { + "name": "seed", + "type": "INT", + "link": 445, + "widget": { + "name": "seed" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 7 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 1084347908952419, + "fixed", + 50, + 5, + "euler", + "normal", + 1 + ] + }, + { + "id": 4, + "type": "CheckpointLoaderSimple", + "pos": [ + -330, + 130 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 430, + 447 + ], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 427, + 428, + 429 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [], + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "realvisxlV40_v40Bakedvae.safetensors" + ] + }, + { + "id": 5, + "type": "EmptyLatentImage", + "pos": [ + -330, + 420 + ], + "size": { + "0": 310, + "1": 110 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 43 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": [ + 380, + 10 + ], + "size": { + "0": 250, + "1": 54 + }, + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 428 + }, + { + "name": "text", + "type": "STRING", + "link": 155, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 137 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "sci-fi, closeup portrait photo of a man img wearing the sunglasses in Iron man suit, face, slim body, high quality, film grain" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 370, + 150 + ], + "size": { + "0": 250, + "1": 54 + }, + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 427 + }, + { + "name": "text", + "type": "STRING", + "link": 156, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 57 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "asymmetry, worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 1150, + 240 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 39, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 7 + }, + { + "name": "vae", + "type": "VAE", + "link": 47 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 148 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 18, + "type": "PrimitiveNode", + "pos": [ + 30, + 150 + ], + "size": { + "0": 310, + "1": 100 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 152 + ], + "slot_index": 0, + "widget": { + "name": "negative" + } + } + ], + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + "asymmetry, worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 19, + "type": "PrimitiveNode", + "pos": [ + 30, + 320 + ], + "size": { + "0": 330, + "1": 140 + }, + "flags": {}, + "order": 3, + "mode": 0, + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 151 + ], + "slot_index": 0, + "widget": { + "name": "positive" + } + } + ], + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + "sci-fi, closeup portrait photo of a woman img wearing the sunglasses in Iron man suit, face, slim body, high quality, film grain" + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 20, + "type": "KSamplerAdvanced", + "pos": [ + 1910, + 150 + ], + "size": { + "0": 320, + "1": 550 + }, + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 447 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 138 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 34 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 45 + }, + { + "name": "noise_seed", + "type": "INT", + "link": 442, + "widget": { + "name": "noise_seed" + } + }, + { + "name": "end_at_step", + "type": "INT", + "link": 110, + "widget": { + "name": "end_at_step" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 31 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "KSamplerAdvanced" + }, + "widgets_values": [ + "enable", + 1084347908952419, + "fixed", + 50, + 5, + "euler", + "normal", + 0, + 10, + "enable" + ] + }, + { + "id": 21, + "type": "KSamplerAdvanced", + "pos": [ + 2260, + 150 + ], + "size": { + "0": 320, + "1": 550 + }, + "flags": {}, + "order": 35, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 446 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 37 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 35 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 31 + }, + { + "name": "noise_seed", + "type": "INT", + "link": 444, + "widget": { + "name": "noise_seed" + } + }, + { + "name": "start_at_step", + "type": "INT", + "link": 111, + "widget": { + "name": "start_at_step" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 49 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "KSamplerAdvanced" + }, + "widgets_values": [ + "disable", + 1084347908952419, + "fixed", + 50, + 5, + "euler", + "normal", + 10, + 10000, + "disable" + ] + }, + { + "id": 22, + "type": "Reroute", + "pos": [ + 710, + 400 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 57 + } + ], + "outputs": [ + { + "name": "", + "type": "CONDITIONING", + "links": [ + 33, + 34, + 35, + 142 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 23, + "type": "Reroute", + "pos": [ + 710, + 300 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 34, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 167 + } + ], + "outputs": [ + { + "name": "", + "type": "CONDITIONING", + "links": [ + 37, + 38, + 140 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 24, + "type": "Reroute", + "pos": [ + 710, + 240 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 121 + } + ], + "outputs": [ + { + "name": "", + "type": "MODEL", + "links": [ + 433, + 435, + 446 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 25, + "type": "Reroute", + "pos": [ + 710, + 450 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 43 + } + ], + "outputs": [ + { + "name": "", + "type": "LATENT", + "links": [ + 44, + 45, + 143 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 26, + "type": "VAEDecode", + "pos": [ + 1528.8236207222924, + 243.07391648498114 + ], + "size": { + "0": 350, + "1": 50 + }, + "flags": {}, + "order": 38, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 49 + }, + { + "name": "vae", + "type": "VAE", + "link": 48 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 149 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 28, + "type": "Reroute", + "pos": [ + 710, + 500 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 356 + } + ], + "outputs": [ + { + "name": "", + "type": "VAE", + "links": [ + 47, + 48, + 146 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 29, + "type": "StringFunction|pysssss", + "pos": [ + 30, + -160 + ], + "size": { + "0": 310, + "1": 250 + }, + "flags": { + "collapsed": false + }, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "text_a", + "type": "STRING", + "link": 153, + "widget": { + "name": "text_a" + } + }, + { + "name": "text_c", + "type": "STRING", + "link": null, + "widget": { + "name": "text_c" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 155 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "StringFunction|pysssss" + }, + "widgets_values": [ + "replace", + "no", + "", + "/ img/", + "" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 32, + "type": "LoadImage", + "pos": [ + 60, + 1240 + ], + "size": [ + 320, + 310 + ], + "flags": {}, + "order": 4, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 415 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "h_3.jpeg", + "image" + ] + }, + { + "id": 33, + "type": "LoadImage", + "pos": [ + 60, + 860 + ], + "size": [ + 320, + 310 + ], + "flags": {}, + "order": 5, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 416 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "h_41.jpeg", + "image" + ] + }, + { + "id": 44, + "type": "Reroute", + "pos": [ + 710, + 550 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 454 + } + ], + "outputs": [ + { + "name": "", + "type": "IMAGE", + "links": [ + 165 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 49, + "type": "PrimitiveNode", + "pos": [ + 1530, + 120 + ], + "size": { + "0": 240, + "1": 80 + }, + "flags": {}, + "order": 6, + "mode": 0, + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 110, + 111 + ], + "slot_index": 0, + "widget": { + "name": "end_at_step" + } + } + ], + "title": "Style strength start/end step", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + 10, + "fixed" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 53, + "type": "LoraLoaderModelOnly", + "pos": [ + -330, + -40 + ], + "size": { + "0": 310, + "1": 82 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 430 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 121 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoraLoaderModelOnly" + }, + "widgets_values": [ + "photomaker-v2.bin", + 1 + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 59, + "type": "ConditioningCombine", + "pos": [ + 1930, + 960 + ], + "size": { + "0": 230, + "1": 50 + }, + "flags": {}, + "order": 40, + "mode": 0, + "inputs": [ + { + "name": "conditioning_1", + "type": "CONDITIONING", + "link": 134, + "slot_index": 0 + }, + { + "name": "conditioning_2", + "type": "CONDITIONING", + "link": 135, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 141 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ConditioningCombine" + } + }, + { + "id": 60, + "type": "ConditioningSetTimestepRange", + "pos": [ + 1930, + 1060 + ], + "size": { + "0": 240, + "1": 80 + }, + "flags": {}, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 139 + }, + { + "name": "end", + "type": "FLOAT", + "link": 132, + "widget": { + "name": "end" + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 134 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ConditioningSetTimestepRange" + }, + "widgets_values": [ + 0, + 0.2 + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 61, + "type": "PrimitiveNode", + "pos": [ + 1930, + 830 + ], + "size": { + "0": 210, + "1": 80 + }, + "flags": {}, + "order": 7, + "mode": 0, + "outputs": [ + { + "name": "FLOAT", + "type": "FLOAT", + "links": [ + 132, + 133 + ], + "slot_index": 0, + "widget": { + "name": "end" + } + } + ], + "title": "Style strength ratio", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + 0.2, + "fixed" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 62, + "type": "ConditioningSetTimestepRange", + "pos": [ + 1930, + 1190 + ], + "size": { + "0": 240, + "1": 80 + }, + "flags": {}, + "order": 37, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 140 + }, + { + "name": "start", + "type": "FLOAT", + "link": 133, + "widget": { + "name": "start" + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 135 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ConditioningSetTimestepRange" + }, + "widgets_values": [ + 0.2, + 1 + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 63, + "type": "KSampler", + "pos": [ + 2180, + 830 + ], + "size": { + "0": 320, + "1": 450 + }, + "flags": {}, + "order": 43, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 435, + "slot_index": 0 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 141 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 142 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 143 + }, + { + "name": "seed", + "type": "INT", + "link": 448, + "widget": { + "name": "seed" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 145 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 1084347908952419, + "fixed", + 50, + 5, + "euler", + "normal", + 1 + ] + }, + { + "id": 64, + "type": "Reroute", + "pos": [ + 710, + 350 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 137 + } + ], + "outputs": [ + { + "name": "", + "type": "CONDITIONING", + "links": [ + 138, + 139 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 65, + "type": "VAEDecode", + "pos": [ + 1930, + 1310 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": { + "collapsed": false + }, + "order": 44, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 145 + }, + { + "name": "vae", + "type": "VAE", + "link": 146 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 150 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 67, + "type": "SaveImage", + "pos": [ + 1150, + 340 + ], + "size": { + "0": 350, + "1": 370 + }, + "flags": {}, + "order": 42, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 148 + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 68, + "type": "SaveImage", + "pos": [ + 1530, + 330 + ], + "size": { + "0": 350, + "1": 370 + }, + "flags": {}, + "order": 41, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 149 + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 69, + "type": "SaveImage", + "pos": [ + 1540, + 840 + ], + "size": { + "0": 380, + "1": 440 + }, + "flags": {}, + "order": 45, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 150 + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 70, + "type": "PhotoMakerStyles", + "pos": [ + 380, + -160 + ], + "size": { + "0": 260, + "1": 80 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "positive", + "type": "STRING", + "link": 151, + "widget": { + "name": "positive" + } + }, + { + "name": "negative", + "type": "STRING", + "link": 152, + "widget": { + "name": "negative" + } + } + ], + "outputs": [ + { + "name": "POSITIVE", + "type": "STRING", + "links": [ + 153, + 166 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "NEGATIVE", + "type": "STRING", + "links": [ + 156 + ], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PhotoMakerStyles" + }, + "widgets_values": [ + "(No style)", + "sci-fi, closeup portrait photo of a woman img wearing the sunglasses in Iron man suit, face, slim body, high quality, film grain", + "asymmetry, worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 73, + "type": "PhotoMakerEncodePlus", + "pos": [ + 390, + 320 + ], + "size": { + "0": 240, + "1": 140 + }, + "flags": {}, + "order": 33, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 429 + }, + { + "name": "photomaker", + "type": "PHOTOMAKER", + "link": 168, + "slot_index": 1 + }, + { + "name": "image", + "type": "IMAGE", + "link": 165 + }, + { + "name": "insightface_opt", + "type": "INSIGHTFACE", + "link": 171, + "slot_index": 3 + }, + { + "name": "text", + "type": "STRING", + "link": 166, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 167 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PhotoMakerEncodePlus" + }, + "widgets_values": [ + "img", + "photograph of a man img" + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 74, + "type": "PhotoMakerLoaderPlus", + "pos": [ + -330, + -280 + ], + "size": { + "0": 350, + "1": 60 + }, + "flags": { + "collapsed": false + }, + "order": 8, + "mode": 0, + "outputs": [ + { + "name": "PHOTOMAKER", + "type": "PHOTOMAKER", + "links": [ + 168 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PhotoMakerLoaderPlus" + }, + "widgets_values": [ + "photomaker-v2.bin" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 76, + "type": "PhotoMakerInsightFaceLoader", + "pos": [ + -330, + -160 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 9, + "mode": 0, + "outputs": [ + { + "name": "INSIGHTFACE", + "type": "INSIGHTFACE", + "links": [ + 171 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PhotoMakerInsightFaceLoader" + }, + "widgets_values": [ + "CUDA" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 180, + "type": "VAELoader", + "pos": [ + -330, + 300 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 10, + "mode": 0, + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 356 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VAELoader" + }, + "widgets_values": [ + "sdxl_vae.safetensors" + ] + }, + { + "id": 195, + "type": "ImageBatchMulti", + "pos": [ + 420, + 1450 + ], + "size": { + "0": 310, + "1": 102 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "image_1", + "type": "IMAGE", + "link": 415 + }, + { + "name": "image_2", + "type": "IMAGE", + "link": 416 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": [ + 471 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": {}, + "widgets_values": [ + 2, + null + ] + }, + { + "id": 196, + "type": "RepeatImageBatch", + "pos": [ + 420, + 700 + ], + "size": { + "0": 220, + "1": 60 + }, + "flags": {}, + "order": 31, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 474 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 454 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "RepeatImageBatch" + }, + "widgets_values": [ + 2 + ] + }, + { + "id": 197, + "type": "Note", + "pos": [ + 140, + 690 + ], + "size": { + "0": 240, + "1": 70 + }, + "flags": {}, + "order": 11, + "mode": 0, + "properties": { + "text": "" + }, + "widgets_values": [ + "If you only have a few images, repeat it to increase the resemblance." + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 199, + "type": "PrimitiveNode", + "pos": [ + 840, + 90 + ], + "size": { + "0": 210, + "1": 80 + }, + "flags": {}, + "order": 12, + "mode": 0, + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 443 + ], + "slot_index": 0, + "widget": { + "name": "value" + } + } + ], + "title": "Seed", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + 1084347908952419, + "randomize" + ] + }, + { + "id": 201, + "type": "Reroute", + "pos": [ + 720, + 190 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 443, + "widget": { + "name": "value" + } + } + ], + "outputs": [ + { + "name": "", + "type": "INT", + "links": [ + 442, + 444, + 445, + 448 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 206, + "type": "AutoCropFaces", + "pos": [ + 420, + 970 + ], + "size": { + "0": 320, + "1": 200 + }, + "flags": {}, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 459 + } + ], + "outputs": [ + { + "name": "face", + "type": "IMAGE", + "links": [ + 472 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "CROP_DATA", + "type": "CROP_DATA", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "AutoCropFaces" + }, + "widgets_values": [ + 32, + 2.5327556900618142, + 0.5275884072513642, + 0, + 1, + "1:1" + ] + }, + { + "id": 207, + "type": "PreviewImage", + "pos": [ + 820, + 780 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 473 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 208, + "type": "ConstrainImage|pysssss", + "pos": [ + 420, + 1240 + ], + "size": { + "0": 320, + "1": 154 + }, + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 471 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 459 + ], + "slot_index": 0, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ConstrainImage|pysssss" + }, + "widgets_values": [ + 1024, + 1024, + 0, + 0, + "no" + ] + }, + { + "id": 215, + "type": "ImageListToImageBatch", + "pos": [ + 420, + 860 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 27, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 472 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 473, + 474 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ImageListToImageBatch" + } + } + ], + "links": [ + [ + 7, + 3, + 0, + 8, + 0, + "LATENT" + ], + [ + 31, + 20, + 0, + 21, + 3, + "LATENT" + ], + [ + 33, + 22, + 0, + 3, + 2, + "CONDITIONING" + ], + [ + 34, + 22, + 0, + 20, + 2, + "CONDITIONING" + ], + [ + 35, + 22, + 0, + 21, + 2, + "CONDITIONING" + ], + [ + 37, + 23, + 0, + 21, + 1, + "CONDITIONING" + ], + [ + 38, + 23, + 0, + 3, + 1, + "CONDITIONING" + ], + [ + 43, + 5, + 0, + 25, + 0, + "*" + ], + [ + 44, + 25, + 0, + 3, + 3, + "LATENT" + ], + [ + 45, + 25, + 0, + 20, + 3, + "LATENT" + ], + [ + 47, + 28, + 0, + 8, + 1, + "VAE" + ], + [ + 48, + 28, + 0, + 26, + 1, + "VAE" + ], + [ + 49, + 21, + 0, + 26, + 0, + "LATENT" + ], + [ + 57, + 7, + 0, + 22, + 0, + "*" + ], + [ + 110, + 49, + 0, + 20, + 5, + "INT" + ], + [ + 111, + 49, + 0, + 21, + 5, + "INT" + ], + [ + 121, + 53, + 0, + 24, + 0, + "*" + ], + [ + 132, + 61, + 0, + 60, + 1, + "FLOAT" + ], + [ + 133, + 61, + 0, + 62, + 1, + "FLOAT" + ], + [ + 134, + 60, + 0, + 59, + 0, + "CONDITIONING" + ], + [ + 135, + 62, + 0, + 59, + 1, + "CONDITIONING" + ], + [ + 137, + 6, + 0, + 64, + 0, + "*" + ], + [ + 138, + 64, + 0, + 20, + 1, + "CONDITIONING" + ], + [ + 139, + 64, + 0, + 60, + 0, + "CONDITIONING" + ], + [ + 140, + 23, + 0, + 62, + 0, + "CONDITIONING" + ], + [ + 141, + 59, + 0, + 63, + 1, + "CONDITIONING" + ], + [ + 142, + 22, + 0, + 63, + 2, + "CONDITIONING" + ], + [ + 143, + 25, + 0, + 63, + 3, + "LATENT" + ], + [ + 145, + 63, + 0, + 65, + 0, + "LATENT" + ], + [ + 146, + 28, + 0, + 65, + 1, + "VAE" + ], + [ + 148, + 8, + 0, + 67, + 0, + "IMAGE" + ], + [ + 149, + 26, + 0, + 68, + 0, + "IMAGE" + ], + [ + 150, + 65, + 0, + 69, + 0, + "IMAGE" + ], + [ + 151, + 19, + 0, + 70, + 0, + "STRING" + ], + [ + 152, + 18, + 0, + 70, + 1, + "STRING" + ], + [ + 153, + 70, + 0, + 29, + 0, + "STRING" + ], + [ + 155, + 29, + 0, + 6, + 1, + "STRING" + ], + [ + 156, + 70, + 1, + 7, + 1, + "STRING" + ], + [ + 165, + 44, + 0, + 73, + 2, + "IMAGE" + ], + [ + 166, + 70, + 0, + 73, + 4, + "STRING" + ], + [ + 167, + 73, + 0, + 23, + 0, + "*" + ], + [ + 168, + 74, + 0, + 73, + 1, + "PHOTOMAKER" + ], + [ + 171, + 76, + 0, + 73, + 3, + "INSIGHTFACE" + ], + [ + 356, + 180, + 0, + 28, + 0, + "*" + ], + [ + 415, + 32, + 0, + 195, + 0, + "IMAGE" + ], + [ + 416, + 33, + 0, + 195, + 1, + "IMAGE" + ], + [ + 427, + 4, + 1, + 7, + 0, + "CLIP" + ], + [ + 428, + 4, + 1, + 6, + 0, + "CLIP" + ], + [ + 429, + 4, + 1, + 73, + 0, + "CLIP" + ], + [ + 430, + 4, + 0, + 53, + 0, + "MODEL" + ], + [ + 433, + 24, + 0, + 3, + 0, + "MODEL" + ], + [ + 435, + 24, + 0, + 63, + 0, + "MODEL" + ], + [ + 442, + 201, + 0, + 20, + 4, + "INT" + ], + [ + 443, + 199, + 0, + 201, + 0, + "*" + ], + [ + 444, + 201, + 0, + 21, + 4, + "INT" + ], + [ + 445, + 201, + 0, + 3, + 4, + "INT" + ], + [ + 446, + 24, + 0, + 21, + 0, + "MODEL" + ], + [ + 447, + 4, + 0, + 20, + 0, + "MODEL" + ], + [ + 448, + 201, + 0, + 63, + 4, + "INT" + ], + [ + 454, + 196, + 0, + 44, + 0, + "*" + ], + [ + 459, + 208, + 0, + 206, + 0, + "IMAGE" + ], + [ + 471, + 195, + 0, + 208, + 0, + "IMAGE" + ], + [ + 472, + 206, + 0, + 215, + 0, + "IMAGE" + ], + [ + 473, + 215, + 0, + 207, + 0, + "IMAGE" + ], + [ + 474, + 215, + 0, + 196, + 0, + "IMAGE" + ] + ], + "groups": [ + { + "title": "Batch images", + "bounding": [ + 30, + 600, + 762, + 997 + ], + "color": "#8A8", + "font_size": 24, + "locked": false + }, + { + "title": "Style strength ratio with start/end steps", + "bounding": [ + 1522, + 24, + 1066, + 685 + ], + "color": "#8AA", + "font_size": 24, + "locked": false + }, + { + "title": "Style strength ratio with 1 KSampler", + "bounding": [ + 1530, + 740, + 1060, + 640 + ], + "color": "#8AA", + "font_size": 24, + "locked": false + } + ], + "config": {}, + "extra": { + "ds": { + "scale": 0.7356161962822078, + "offset": [ + 128.8089986675575, + -561.526224247301 + ] + }, + "0246.VERSION": [ + 0, + 0, + 4 + ] + }, + "version": 0.4 +} \ No newline at end of file diff --git a/examples/v2-workflow.json b/examples/v2-workflow.json index 9119fe1..0e50f0c 100644 --- a/examples/v2-workflow.json +++ b/examples/v2-workflow.json @@ -1,352 +1,222 @@ { - "last_node_id": 76, - "last_link_id": 171, + "last_node_id": 203, + "last_link_id": 458, "nodes": [ { - "id": 39, - "type": "PrepImageForClipVision", + "id": 3, + "type": "KSampler", "pos": [ - 832.411678279369, - 1286.7164360416307 + 810, + 240 ], "size": { - "0": 315, - "1": 106 + "0": 320, + "1": 470 }, "flags": {}, - "order": 14, + "order": 32, "mode": 0, "inputs": [ { - "name": "image", - "type": "IMAGE", - "link": 75, - "slot_index": 0 + "name": "model", + "type": "MODEL", + "link": 433 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 38 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 33 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 44 + }, + { + "name": "seed", + "type": "INT", + "link": 445, + "widget": { + "name": "seed" + } } ], "outputs": [ { - "name": "IMAGE", - "type": "IMAGE", + "name": "LATENT", + "type": "LATENT", "links": [ - 85 + 7 ], - "shape": 3, "slot_index": 0 } ], "properties": { - "Node name for S&R": "PrepImageForClipVision" + "Node name for S&R": "KSampler" }, "widgets_values": [ - "LANCZOS", - "top", - 0 + 1084347908952419, + "fixed", + 50, + 5, + "euler", + "normal", + 1 ] }, { - "id": 32, - "type": "LoadImage", + "id": 4, + "type": "CheckpointLoaderSimple", "pos": [ - 73.20769979965253, - 1103.817205433426 - ], - "size": [ - 320, - 310 + -330, + 130 ], + "size": { + "0": 315, + "1": 98 + }, "flags": {}, "order": 0, "mode": 0, "outputs": [ { - "name": "IMAGE", - "type": "IMAGE", + "name": "MODEL", + "type": "MODEL", "links": [ - 74, - 83 + 430, + 447 ], - "shape": 3, "slot_index": 0 }, { - "name": "MASK", - "type": "MASK", - "links": null, - "shape": 3 + "name": "CLIP", + "type": "CLIP", + "links": [ + 427, + 428, + 429 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [], + "slot_index": 2 } ], "properties": { - "Node name for S&R": "LoadImage" + "Node name for S&R": "CheckpointLoaderSimple" }, "widgets_values": [ - "Screenshot 2024-01-18 at 1.04.01 PM.png", - "image" + "realvisxlV40_v40Bakedvae.safetensors" ] }, { - "id": 33, - "type": "LoadImage", + "id": 5, + "type": "EmptyLatentImage", "pos": [ - 433.20769979965274, - 1103.817205433426 - ], - "size": [ - 320, - 310 + -330, + 420 ], + "size": { + "0": 310, + "1": 110 + }, "flags": {}, "order": 1, "mode": 0, "outputs": [ { - "name": "IMAGE", - "type": "IMAGE", + "name": "LATENT", + "type": "LATENT", "links": [ - 75, - 84 + 43 ], - "shape": 3, "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": null, - "shape": 3 } ], "properties": { - "Node name for S&R": "LoadImage" + "Node name for S&R": "EmptyLatentImage" }, "widgets_values": [ - "anne1.jpg", - "image" + 1024, + 1024, + 1 ] }, { - "id": 31, - "type": "ImageBatch", - "pos": [ - 79.58453321093153, - 1018.4025073480115 - ], - "size": { - "0": 210, - "1": 46 - }, - "flags": {}, - "order": 15, - "mode": 0, - "inputs": [ - { - "name": "image1", - "type": "IMAGE", - "link": 83, - "slot_index": 0 - }, - { - "name": "image2", - "type": "IMAGE", - "link": 84 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 101 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ImageBatch" - } - }, - { - "id": 48, - "type": "ImageBatch", - "pos": [ - 79.58453321093153, - 928.4025073480097 - ], - "size": { - "0": 210, - "1": 46 - }, - "flags": {}, - "order": 24, - "mode": 0, - "inputs": [ - { - "name": "image1", - "type": "IMAGE", - "link": 101, - "slot_index": 0 - }, - { - "name": "image2", - "type": "IMAGE", - "link": 102 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 106 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ImageBatch" - } - }, - { - "id": 45, - "type": "LoadImage", - "pos": [ - 60, - 1490 - ], - "size": [ - 320, - 310 - ], - "flags": {}, - "order": 2, - "mode": 0, - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 97, - 102 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "LoadImage" - }, - "widgets_values": [ - "tLelKoPNiyJCSEtQTz1FGv4TLGc.jpg", - "image" - ] - }, - { - "id": 24, - "type": "Reroute", - "pos": [ - 710, - 250 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 27, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 121 - } - ], - "outputs": [ - { - "name": "", - "type": "MODEL", - "links": [ - 42, - 51, - 136 - ], - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 46, - "type": "PrepImageForClipVision", - "pos": [ - 839.5492689483435, - 1442.4002730692762 - ], - "size": { - "0": 315, - "1": 106 - }, - "flags": {}, - "order": 16, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 97, - "slot_index": 0 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 99 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "PrepImageForClipVision" - }, - "widgets_values": [ - "LANCZOS", - "top", - 0 - ] - }, - { - "id": 7, + "id": 6, "type": "CLIPTextEncode", "pos": [ - 420, - 500 + 380, + 10 ], "size": { "0": 250, "1": 54 }, "flags": {}, - "order": 26, + "order": 23, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", - "link": 122 + "link": 428 + }, + { + "name": "text", + "type": "STRING", + "link": 155, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 137 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "sci-fi, closeup portrait photo of a man img wearing the sunglasses in Iron man suit, face, slim body, high quality, film grain" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 370, + 150 + ], + "size": { + "0": 250, + "1": 54 + }, + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 427 }, { "name": "text", @@ -376,500 +246,6 @@ "color": "#322", "bgcolor": "#533" }, - { - "id": 57, - "type": "PrepImagesForClipVisionFromPath", - "pos": [ - 440, - 940 - ], - "size": { - "0": 336, - "1": 106 - }, - "flags": {}, - "order": 3, - "mode": 0, - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 127 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "PrepImagesForClipVisionFromPath" - }, - "widgets_values": [ - "", - "lanczos", - "center" - ] - }, - { - "id": 38, - "type": "PrepImageForClipVision", - "pos": [ - 830, - 1130 - ], - "size": { - "0": 315, - "1": 106 - }, - "flags": {}, - "order": 13, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 74, - "slot_index": 0 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 86 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "PrepImageForClipVision" - }, - "widgets_values": [ - "LANCZOS", - "top", - 0 - ] - }, - { - "id": 42, - "type": "ImageBatch", - "pos": [ - 830, - 1020 - ], - "size": { - "0": 210, - "1": 46 - }, - "flags": {}, - "order": 23, - "mode": 0, - "inputs": [ - { - "name": "image1", - "type": "IMAGE", - "link": 86, - "slot_index": 0 - }, - { - "name": "image2", - "type": "IMAGE", - "link": 85, - "slot_index": 1 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 98 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ImageBatch" - } - }, - { - "id": 47, - "type": "ImageBatch", - "pos": [ - 830, - 920 - ], - "size": { - "0": 210, - "1": 46 - }, - "flags": {}, - "order": 28, - "mode": 0, - "inputs": [ - { - "name": "image1", - "type": "IMAGE", - "link": 98, - "slot_index": 0 - }, - { - "name": "image2", - "type": "IMAGE", - "link": 99, - "slot_index": 1 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 128 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ImageBatch" - } - }, - { - "id": 41, - "type": "Reroute", - "pos": [ - 830, - 790 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 32, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 128 - } - ], - "outputs": [ - { - "name": "", - "type": "IMAGE", - "links": [ - 119 - ], - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 43, - "type": "Reroute", - "pos": [ - 500, - 790 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 29, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 106 - } - ], - "outputs": [ - { - "name": "", - "type": "IMAGE", - "links": [], - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 58, - "type": "Reroute", - "pos": [ - 690, - 790 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 17, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 127 - } - ], - "outputs": [ - { - "name": "", - "type": "IMAGE", - "links": null, - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 5, - "type": "EmptyLatentImage", - "pos": [ - 420, - 610 - ], - "size": { - "0": 250, - "1": 110 - }, - "flags": {}, - "order": 4, - "mode": 0, - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 43 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "EmptyLatentImage" - }, - "widgets_values": [ - 1024, - 1024, - 1 - ] - }, - { - "id": 64, - "type": "Reroute", - "pos": [ - 710, - 350 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 33, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 137 - } - ], - "outputs": [ - { - "name": "", - "type": "CONDITIONING", - "links": [ - 138, - 139 - ], - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 22, - "type": "Reroute", - "pos": [ - 710, - 400 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 31, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 57 - } - ], - "outputs": [ - { - "name": "", - "type": "CONDITIONING", - "links": [ - 33, - 34, - 35, - 142 - ], - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 25, - "type": "Reroute", - "pos": [ - 710, - 450 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 18, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 43 - } - ], - "outputs": [ - { - "name": "", - "type": "LATENT", - "links": [ - 44, - 45, - 143 - ], - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 50, - "type": "Reroute", - "pos": [ - 710, - 210 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 20, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 114, - "slot_index": 0, - "widget": { - "name": "value" - } - } - ], - "outputs": [ - { - "name": "", - "type": "INT", - "links": [ - 112, - 113, - 115, - 144 - ], - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 28, - "type": "Reroute", - "pos": [ - 710, - 500 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 22, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 46 - } - ], - "outputs": [ - { - "name": "", - "type": "VAE", - "links": [ - 47, - 48, - 146 - ], - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, { "id": 8, "type": "VAEDecode", @@ -882,7 +258,7 @@ "1": 46 }, "flags": {}, - "order": 44, + "order": 35, "mode": 0, "inputs": [ { @@ -910,55 +286,19 @@ "Node name for S&R": "VAEDecode" } }, - { - "id": 19, - "type": "PrimitiveNode", - "pos": [ - 30, - -30 - ], - "size": { - "0": 310, - "1": 110 - }, - "flags": {}, - "order": 5, - "mode": 0, - "outputs": [ - { - "name": "STRING", - "type": "STRING", - "links": [ - 151 - ], - "slot_index": 0, - "widget": { - "name": "positive" - } - } - ], - "properties": { - "Run widget replace on values": false - }, - "widgets_values": [ - "sci-fi, closeup portrait photo of a woman img wearing the sunglasses in Iron man suit, face, slim body, high quality, film grain" - ], - "color": "#2a363b", - "bgcolor": "#3f5159" - }, { "id": 18, "type": "PrimitiveNode", "pos": [ 30, - 140 + 150 ], "size": { "0": 310, "1": 100 }, "flags": {}, - "order": 6, + "order": 2, "mode": 0, "outputs": [ { @@ -983,137 +323,350 @@ "bgcolor": "#533" }, { - "id": 29, - "type": "StringFunction|pysssss", + "id": 19, + "type": "PrimitiveNode", "pos": [ 30, - -380 + 320 ], "size": { - "0": 310, - "1": 300 + "0": 330, + "1": 140 }, "flags": {}, - "order": 25, + "order": 3, "mode": 0, - "inputs": [ - { - "name": "text_a", - "type": "STRING", - "link": 153, - "widget": { - "name": "text_a" - } - } - ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ - 155 + 151 ], - "shape": 3, - "slot_index": 0 + "slot_index": 0, + "widget": { + "name": "positive" + } } ], "properties": { - "Node name for S&R": "StringFunction|pysssss" + "Run widget replace on values": false }, "widgets_values": [ - "replace", - "no", - "", - "/ img/", - "" + "sci-fi, closeup portrait photo of a woman img wearing the sunglasses in Iron man suit, face, slim body, high quality, film grain" ], - "color": "#232", - "bgcolor": "#353" + "color": "#2a363b", + "bgcolor": "#3f5159" }, { - "id": 65, - "type": "VAEDecode", + "id": 20, + "type": "KSamplerAdvanced", "pos": [ - 2300, - 1380 + 1910, + 150 ], "size": { - "0": 210, - "1": 46 + "0": 320, + "1": 550 }, - "flags": { - "collapsed": false - }, - "order": 49, + "flags": {}, + "order": 28, "mode": 0, "inputs": [ { - "name": "samples", - "type": "LATENT", - "link": 145 + "name": "model", + "type": "MODEL", + "link": 447 }, { - "name": "vae", - "type": "VAE", - "link": 146 + "name": "positive", + "type": "CONDITIONING", + "link": 138 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 34 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 45 + }, + { + "name": "noise_seed", + "type": "INT", + "link": 442, + "widget": { + "name": "noise_seed" + } + }, + { + "name": "end_at_step", + "type": "INT", + "link": 110, + "widget": { + "name": "end_at_step" + } } ], "outputs": [ { - "name": "IMAGE", - "type": "IMAGE", + "name": "LATENT", + "type": "LATENT", "links": [ - 150 + 31 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "KSamplerAdvanced" + }, + "widgets_values": [ + "enable", + 1084347908952419, + "fixed", + 50, + 5, + "euler", + "normal", + 0, + 10, + "enable" + ] + }, + { + "id": 21, + "type": "KSamplerAdvanced", + "pos": [ + 2260, + 150 + ], + "size": { + "0": 320, + "1": 550 + }, + "flags": {}, + "order": 31, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 446 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 37 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 35 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 31 + }, + { + "name": "noise_seed", + "type": "INT", + "link": 444, + "widget": { + "name": "noise_seed" + } + }, + { + "name": "start_at_step", + "type": "INT", + "link": 111, + "widget": { + "name": "start_at_step" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 49 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "KSamplerAdvanced" + }, + "widgets_values": [ + "disable", + 1084347908952419, + "fixed", + 50, + 5, + "euler", + "normal", + 10, + 10000, + "disable" + ] + }, + { + "id": 22, + "type": "Reroute", + "pos": [ + 710, + 400 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 57 + } + ], + "outputs": [ + { + "name": "", + "type": "CONDITIONING", + "links": [ + 33, + 34, + 35, + 142 ], - "shape": 3, "slot_index": 0 } ], "properties": { - "Node name for S&R": "VAEDecode" + "showOutputText": false, + "horizontal": false } }, { - "id": 59, - "type": "ConditioningCombine", + "id": 23, + "type": "Reroute", "pos": [ - 1990, - 1020 + 710, + 300 + ], + "size": [ + 75, + 26 ], - "size": { - "0": 230, - "1": 50 - }, "flags": {}, - "order": 45, + "order": 30, "mode": 0, "inputs": [ { - "name": "conditioning_1", - "type": "CONDITIONING", - "link": 134, - "slot_index": 0 - }, - { - "name": "conditioning_2", - "type": "CONDITIONING", - "link": 135, - "slot_index": 1 + "name": "", + "type": "*", + "link": 167 } ], "outputs": [ { - "name": "CONDITIONING", + "name": "", "type": "CONDITIONING", "links": [ - 141 + 37, + 38, + 140 ], - "shape": 3, "slot_index": 0 } ], "properties": { - "Node name for S&R": "ConditioningCombine" + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 24, + "type": "Reroute", + "pos": [ + 710, + 240 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 121 + } + ], + "outputs": [ + { + "name": "", + "type": "MODEL", + "links": [ + 433, + 435, + 446 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 25, + "type": "Reroute", + "pos": [ + 710, + 450 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 43 + } + ], + "outputs": [ + { + "name": "", + "type": "LATENT", + "links": [ + 44, + 45, + 143 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false } }, { @@ -1128,7 +681,7 @@ "1": 50 }, "flags": {}, - "order": 43, + "order": 34, "mode": 0, "inputs": [ { @@ -1157,19 +710,353 @@ } }, { - "id": 60, - "type": "ConditioningSetTimestepRange", + "id": 28, + "type": "Reroute", "pos": [ - 1990, - 1120 + 710, + 500 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 356 + } + ], + "outputs": [ + { + "name": "", + "type": "VAE", + "links": [ + 47, + 48, + 146 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 29, + "type": "StringFunction|pysssss", + "pos": [ + 30, + -160 + ], + "size": { + "0": 310, + "1": 250 + }, + "flags": { + "collapsed": false + }, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "text_a", + "type": "STRING", + "link": 153, + "widget": { + "name": "text_a" + } + }, + { + "name": "text_c", + "type": "STRING", + "link": null, + "widget": { + "name": "text_c" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 155 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "StringFunction|pysssss" + }, + "widgets_values": [ + "replace", + "no", + "", + "/ img/", + "" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 32, + "type": "LoadImage", + "pos": [ + 60, + 700 + ], + "size": [ + 320, + 310 + ], + "flags": {}, + "order": 4, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 415 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "h_3.jpeg", + "image" + ] + }, + { + "id": 33, + "type": "LoadImage", + "pos": [ + 60, + 1080 + ], + "size": [ + 320, + 310 + ], + "flags": {}, + "order": 5, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 416 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "h_41.jpeg", + "image" + ] + }, + { + "id": 44, + "type": "Reroute", + "pos": [ + 710, + 550 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 454 + } + ], + "outputs": [ + { + "name": "", + "type": "IMAGE", + "links": [ + 165 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 49, + "type": "PrimitiveNode", + "pos": [ + 1530, + 120 ], "size": { "0": 240, "1": 80 }, "flags": {}, + "order": 6, + "mode": 0, + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 110, + 111 + ], + "slot_index": 0, + "widget": { + "name": "end_at_step" + } + } + ], + "title": "Style strength start/end step", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + 10, + "fixed" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 53, + "type": "LoraLoaderModelOnly", + "pos": [ + -330, + -40 + ], + "size": { + "0": 310, + "1": 82 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 430 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 121 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoraLoaderModelOnly" + }, + "widgets_values": [ + "photomaker-v2.bin", + 1 + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 59, + "type": "ConditioningCombine", + "pos": [ + 1930, + 960 + ], + "size": { + "0": 230, + "1": 50 + }, + "flags": {}, "order": 36, "mode": 0, + "inputs": [ + { + "name": "conditioning_1", + "type": "CONDITIONING", + "link": 134, + "slot_index": 0 + }, + { + "name": "conditioning_2", + "type": "CONDITIONING", + "link": 135, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 141 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ConditioningCombine" + } + }, + { + "id": 60, + "type": "ConditioningSetTimestepRange", + "pos": [ + 1930, + 1060 + ], + "size": { + "0": 240, + "1": 80 + }, + "flags": {}, + "order": 29, + "mode": 0, "inputs": [ { "name": "conditioning", @@ -1205,19 +1092,58 @@ "color": "#232", "bgcolor": "#353" }, + { + "id": 61, + "type": "PrimitiveNode", + "pos": [ + 1930, + 830 + ], + "size": { + "0": 210, + "1": 80 + }, + "flags": {}, + "order": 7, + "mode": 0, + "outputs": [ + { + "name": "FLOAT", + "type": "FLOAT", + "links": [ + 132, + 133 + ], + "slot_index": 0, + "widget": { + "name": "end" + } + } + ], + "title": "Style strength ratio", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + 0.2, + "fixed" + ], + "color": "#223", + "bgcolor": "#335" + }, { "id": 62, "type": "ConditioningSetTimestepRange", "pos": [ - 1990, - 1250 + 1930, + 1190 ], "size": { "0": 240, "1": 80 }, "flags": {}, - "order": 42, + "order": 33, "mode": 0, "inputs": [ { @@ -1255,70 +1181,153 @@ "bgcolor": "#3f5159" }, { - "id": 49, - "type": "PrimitiveNode", + "id": 63, + "type": "KSampler", "pos": [ - 1530, - 120 + 2180, + 830 ], "size": { - "0": 240, - "1": 80 + "0": 320, + "1": 450 }, "flags": {}, - "order": 7, - "mode": 0, - "outputs": [ - { - "name": "INT", - "type": "INT", - "links": [ - 110, - 111 - ], - "slot_index": 0, - "widget": { - "name": "end_at_step" - } - } - ], - "title": "Style strength start/end step", - "properties": { - "Run widget replace on values": false - }, - "widgets_values": [ - 10, - "fixed" - ], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 68, - "type": "SaveImage", - "pos": [ - 1530, - 330 - ], - "size": { - "0": 350, - "1": 370 - }, - "flags": {}, - "order": 46, + "order": 39, "mode": 0, "inputs": [ { - "name": "images", - "type": "IMAGE", - "link": 149 + "name": "model", + "type": "MODEL", + "link": 435, + "slot_index": 0 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 141 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 142 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 143 + }, + { + "name": "seed", + "type": "INT", + "link": 448, + "widget": { + "name": "seed" + } } ], - "properties": {}, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 145 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, "widgets_values": [ - "ComfyUI" + 1084347908952419, + "fixed", + 50, + 5, + "euler", + "normal", + 1 ] }, + { + "id": 64, + "type": "Reroute", + "pos": [ + 710, + 350 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 137 + } + ], + "outputs": [ + { + "name": "", + "type": "CONDITIONING", + "links": [ + 138, + 139 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 65, + "type": "VAEDecode", + "pos": [ + 1930, + 1320 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": { + "collapsed": false + }, + "order": 40, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 145 + }, + { + "name": "vae", + "type": "VAE", + "link": 146 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 150 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, { "id": 67, "type": "SaveImage", @@ -1331,7 +1340,7 @@ "1": 370 }, "flags": {}, - "order": 47, + "order": 38, "mode": 0, "inputs": [ { @@ -1346,83 +1355,44 @@ ] }, { - "id": 37, - "type": "PrimitiveNode", + "id": 68, + "type": "SaveImage", "pos": [ - 410, - -140 + 1530, + 330 ], "size": { - "0": 210, - "1": 80 + "0": 350, + "1": 370 }, "flags": {}, - "order": 8, - "mode": 0, - "outputs": [ - { - "name": "INT", - "type": "INT", - "links": [ - 114 - ], - "slot_index": 0, - "widget": { - "name": "value" - } - } - ], - "title": "Seed", - "properties": { - "Run widget replace on values": false - }, - "widgets_values": [ - 816687600925376, - "randomize" - ], - "color": "#332922", - "bgcolor": "#593930" - }, - { - "id": 34, - "type": "PreviewImage", - "pos": [ - 1310, - 840 - ], - "size": { - "0": 260, - "1": 310 - }, - "flags": { - "collapsed": false - }, "order": 37, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", - "link": 93 + "link": 149 } ], - "properties": { - "Node name for S&R": "PreviewImage" - } + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] }, { "id": 69, "type": "SaveImage", "pos": [ - 1600, - 890 + 1540, + 840 ], "size": { "0": 380, "1": 440 }, "flags": {}, - "order": 50, + "order": 41, "mode": 0, "inputs": [ { @@ -1436,142 +1406,19 @@ "ComfyUI" ] }, - { - "id": 44, - "type": "Reroute", - "pos": [ - 710, - 550 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 34, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 119 - } - ], - "outputs": [ - { - "name": "", - "type": "IMAGE", - "links": [ - 93, - 165 - ], - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 23, - "type": "Reroute", - "pos": [ - 710, - 300 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 39, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 167 - } - ], - "outputs": [ - { - "name": "", - "type": "CONDITIONING", - "links": [ - 37, - 38, - 140 - ], - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 6, - "type": "CLIPTextEncode", - "pos": [ - 420, - 200 - ], - "size": { - "0": 250, - "1": 54 - }, - "flags": {}, - "order": 30, - "mode": 0, - "inputs": [ - { - "name": "clip", - "type": "CLIP", - "link": 123 - }, - { - "name": "text", - "type": "STRING", - "link": 155, - "widget": { - "name": "text" - } - } - ], - "outputs": [ - { - "name": "CONDITIONING", - "type": "CONDITIONING", - "links": [ - 137 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "CLIPTextEncode" - }, - "widgets_values": [ - "sci-fi, closeup portrait photo of a man img wearing the sunglasses in Iron man suit, face, slim body, high quality, film grain" - ], - "color": "#232", - "bgcolor": "#353" - }, { "id": 70, "type": "PhotoMakerStyles", "pos": [ - 410, - -10 + 380, + -160 ], "size": { "0": 260, "1": 80 }, "flags": {}, - "order": 19, + "order": 15, "mode": 0, "inputs": [ { @@ -1599,8 +1446,8 @@ 153, 166 ], - "shape": 3, - "slot_index": 0 + "slot_index": 0, + "shape": 3 }, { "name": "NEGATIVE", @@ -1608,8 +1455,8 @@ "links": [ 156 ], - "shape": 3, - "slot_index": 1 + "slot_index": 1, + "shape": 3 } ], "properties": { @@ -1623,314 +1470,11 @@ "color": "#432", "bgcolor": "#653" }, - { - "id": 3, - "type": "KSampler", - "pos": [ - 810, - 240 - ], - "size": { - "0": 320, - "1": 470 - }, - "flags": {}, - "order": 41, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "MODEL", - "link": 51 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 38 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 33 - }, - { - "name": "latent_image", - "type": "LATENT", - "link": 44 - }, - { - "name": "seed", - "type": "INT", - "link": 112, - "widget": { - "name": "seed" - } - } - ], - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 7 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "KSampler" - }, - "widgets_values": [ - 816687600925376, - "fixed", - 25, - 5, - "dpmpp_2m", - "karras", - 1 - ] - }, - { - "id": 63, - "type": "KSampler", - "pos": [ - 2240, - 890 - ], - "size": { - "0": 320, - "1": 450 - }, - "flags": {}, - "order": 48, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "MODEL", - "link": 136, - "slot_index": 0 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 141 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 142 - }, - { - "name": "latent_image", - "type": "LATENT", - "link": 143 - }, - { - "name": "seed", - "type": "INT", - "link": 144, - "widget": { - "name": "seed" - } - } - ], - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 145 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "KSampler" - }, - "widgets_values": [ - 816687600925376, - "fixed", - 25, - 5, - "dpmpp_2m", - "karras", - 1 - ] - }, - { - "id": 61, - "type": "PrimitiveNode", - "pos": [ - 1990, - 890 - ], - "size": { - "0": 210, - "1": 80 - }, - "flags": {}, - "order": 9, - "mode": 0, - "outputs": [ - { - "name": "FLOAT", - "type": "FLOAT", - "links": [ - 132, - 133 - ], - "slot_index": 0, - "widget": { - "name": "end" - } - } - ], - "title": "Style strength ratio", - "properties": { - "Run widget replace on values": false - }, - "widgets_values": [ - 0.2, - "fixed" - ], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 4, - "type": "CheckpointLoaderSimple", - "pos": [ - 30, - 610 - ], - "size": { - "0": 315, - "1": 98 - }, - "flags": {}, - "order": 10, - "mode": 0, - "outputs": [ - { - "name": "MODEL", - "type": "MODEL", - "links": [ - 120, - 170 - ], - "slot_index": 0 - }, - { - "name": "CLIP", - "type": "CLIP", - "links": [ - 122, - 123, - 163 - ], - "slot_index": 1 - }, - { - "name": "VAE", - "type": "VAE", - "links": [ - 46 - ], - "slot_index": 2 - } - ], - "properties": { - "Node name for S&R": "CheckpointLoaderSimple" - }, - "widgets_values": [ - "realvisxlV40_v40Bakedvae.safetensors" - ] - }, - { - "id": 21, - "type": "KSamplerAdvanced", - "pos": [ - 2260, - 150 - ], - "size": { - "0": 320, - "1": 550 - }, - "flags": {}, - "order": 40, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "MODEL", - "link": 42 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 37 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 35 - }, - { - "name": "latent_image", - "type": "LATENT", - "link": 31 - }, - { - "name": "noise_seed", - "type": "INT", - "link": 115, - "widget": { - "name": "noise_seed" - } - }, - { - "name": "start_at_step", - "type": "INT", - "link": 111, - "widget": { - "name": "start_at_step" - } - } - ], - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 49 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "KSamplerAdvanced" - }, - "widgets_values": [ - "disable", - 816687600925376, - "fixed", - 25, - 5, - "dpmpp_2m", - "karras", - 10, - 10000, - "disable" - ] - }, { "id": 73, "type": "PhotoMakerEncodePlus", "pos": [ - 420, + 390, 320 ], "size": { @@ -1938,13 +1482,13 @@ "1": 140 }, "flags": {}, - "order": 38, + "order": 27, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", - "link": 163 + "link": 429 }, { "name": "photomaker", @@ -1992,50 +1536,21 @@ "color": "#2a363b", "bgcolor": "#3f5159" }, - { - "id": 76, - "type": "PhotoMakerInsightFaceLoader", - "pos": [ - -320, - 460 - ], - "size": { - "0": 315, - "1": 58 - }, - "flags": {}, - "order": 11, - "mode": 0, - "outputs": [ - { - "name": "INSIGHTFACE", - "type": "INSIGHTFACE", - "links": [ - 171 - ], - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "PhotoMakerInsightFaceLoader" - }, - "widgets_values": [ - "CUDA" - ] - }, { "id": 74, "type": "PhotoMakerLoaderPlus", "pos": [ - 30, - 460 + -330, + -280 ], "size": { - "0": 315, - "1": 58 + "0": 350, + "1": 60 }, - "flags": {}, - "order": 12, + "flags": { + "collapsed": false + }, + "order": 8, "mode": 0, "outputs": [ { @@ -2057,125 +1572,252 @@ "bgcolor": "#535" }, { - "id": 53, - "type": "LoraLoaderModelOnly", + "id": 76, + "type": "PhotoMakerInsightFaceLoader", "pos": [ - 30, - 320 + -330, + -160 ], "size": { - "0": 310, - "1": 82 + "0": 315, + "1": 58 }, "flags": {}, - "order": 21, + "order": 9, "mode": 0, - "inputs": [ - { - "name": "model", - "type": "MODEL", - "link": 120 - } - ], "outputs": [ { - "name": "MODEL", - "type": "MODEL", + "name": "INSIGHTFACE", + "type": "INSIGHTFACE", "links": [ - 121 + 171 ], - "shape": 3, - "slot_index": 0 + "shape": 3 } ], "properties": { - "Node name for S&R": "LoraLoaderModelOnly" + "Node name for S&R": "PhotoMakerInsightFaceLoader" }, "widgets_values": [ - "photomaker-v2.bin", - 1 + "CUDA" ], "color": "#323", "bgcolor": "#535" }, { - "id": 20, - "type": "KSamplerAdvanced", + "id": 180, + "type": "VAELoader", "pos": [ - 1910, - 150 + -330, + 300 ], "size": { - "0": 320, - "1": 550 + "0": 315, + "1": 58 }, "flags": {}, - "order": 35, + "order": 10, + "mode": 0, + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 356 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VAELoader" + }, + "widgets_values": [ + "sdxl_vae.safetensors" + ] + }, + { + "id": 195, + "type": "ImageBatchMulti", + "pos": [ + 430, + 960 + ], + "size": { + "0": 210, + "1": 102 + }, + "flags": {}, + "order": 16, "mode": 0, "inputs": [ { - "name": "model", - "type": "MODEL", - "link": 170 + "name": "image_1", + "type": "IMAGE", + "link": 415 }, { - "name": "positive", - "type": "CONDITIONING", - "link": 138 - }, + "name": "image_2", + "type": "IMAGE", + "link": 416 + } + ], + "outputs": [ { - "name": "negative", - "type": "CONDITIONING", - "link": 34 - }, + "name": "images", + "type": "IMAGE", + "links": [ + 417 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": {}, + "widgets_values": [ + 2, + null + ] + }, + { + "id": 196, + "type": "RepeatImageBatch", + "pos": [ + 430, + 830 + ], + "size": { + "0": 220, + "1": 60 + }, + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ { - "name": "latent_image", - "type": "LATENT", - "link": 45 - }, + "name": "image", + "type": "IMAGE", + "link": 417 + } + ], + "outputs": [ { - "name": "noise_seed", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 454 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "RepeatImageBatch" + }, + "widgets_values": [ + 2 + ] + }, + { + "id": 197, + "type": "Note", + "pos": [ + 430, + 700 + ], + "size": { + "0": 240, + "1": 70 + }, + "flags": {}, + "order": 11, + "mode": 0, + "properties": { + "text": "" + }, + "widgets_values": [ + "If you only have a few images, repeat it to increase the resemblance." + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 199, + "type": "PrimitiveNode", + "pos": [ + 840, + 90 + ], + "size": { + "0": 210, + "1": 80 + }, + "flags": {}, + "order": 12, + "mode": 0, + "outputs": [ + { + "name": "INT", "type": "INT", - "link": 113, + "links": [ + 443 + ], + "slot_index": 0, "widget": { - "name": "noise_seed" + "name": "value" } - }, + } + ], + "title": "Seed", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + 1084347908952419, + "randomize" + ] + }, + { + "id": 201, + "type": "Reroute", + "pos": [ + 720, + 190 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ { - "name": "end_at_step", - "type": "INT", - "link": 110, + "name": "", + "type": "*", + "link": 443, "widget": { - "name": "end_at_step" + "name": "value" } } ], "outputs": [ { - "name": "LATENT", - "type": "LATENT", + "name": "", + "type": "INT", "links": [ - 31 + 442, + 444, + 445, + 448 ], - "shape": 3, "slot_index": 0 } ], "properties": { - "Node name for S&R": "KSamplerAdvanced" - }, - "widgets_values": [ - "enable", - 816687600925376, - "fixed", - 25, - 5, - "dpmpp_2m", - "karras", - 0, - 10, - "enable" - ] + "showOutputText": false, + "horizontal": false + } } ], "links": [ @@ -2235,14 +1877,6 @@ 1, "CONDITIONING" ], - [ - 42, - 24, - 0, - 21, - 0, - "MODEL" - ], [ 43, 5, @@ -2267,14 +1901,6 @@ 3, "LATENT" ], - [ - 46, - 4, - 2, - 28, - 0, - "*" - ], [ 47, 28, @@ -2299,14 +1925,6 @@ 0, "LATENT" ], - [ - 51, - 24, - 0, - 3, - 0, - "MODEL" - ], [ 57, 7, @@ -2315,110 +1933,6 @@ 0, "*" ], - [ - 74, - 32, - 0, - 38, - 0, - "IMAGE" - ], - [ - 75, - 33, - 0, - 39, - 0, - "IMAGE" - ], - [ - 83, - 32, - 0, - 31, - 0, - "IMAGE" - ], - [ - 84, - 33, - 0, - 31, - 1, - "IMAGE" - ], - [ - 85, - 39, - 0, - 42, - 1, - "IMAGE" - ], - [ - 86, - 38, - 0, - 42, - 0, - "IMAGE" - ], - [ - 93, - 44, - 0, - 34, - 0, - "IMAGE" - ], - [ - 97, - 45, - 0, - 46, - 0, - "IMAGE" - ], - [ - 98, - 42, - 0, - 47, - 0, - "IMAGE" - ], - [ - 99, - 46, - 0, - 47, - 1, - "IMAGE" - ], - [ - 101, - 31, - 0, - 48, - 0, - "IMAGE" - ], - [ - 102, - 45, - 0, - 48, - 1, - "IMAGE" - ], - [ - 106, - 48, - 0, - 43, - 0, - "*" - ], [ 110, 49, @@ -2435,54 +1949,6 @@ 5, "INT" ], - [ - 112, - 50, - 0, - 3, - 4, - "INT" - ], - [ - 113, - 50, - 0, - 20, - 4, - "INT" - ], - [ - 114, - 37, - 0, - 50, - 0, - "*" - ], - [ - 115, - 50, - 0, - 21, - 4, - "INT" - ], - [ - 119, - 41, - 0, - 44, - 0, - "*" - ], - [ - 120, - 4, - 0, - 53, - 0, - "MODEL" - ], [ 121, 53, @@ -2491,38 +1957,6 @@ 0, "*" ], - [ - 122, - 4, - 1, - 7, - 0, - "CLIP" - ], - [ - 123, - 4, - 1, - 6, - 0, - "CLIP" - ], - [ - 127, - 57, - 0, - 58, - 0, - "*" - ], - [ - 128, - 47, - 0, - 41, - 0, - "*" - ], [ 132, 61, @@ -2555,14 +1989,6 @@ 1, "CONDITIONING" ], - [ - 136, - 24, - 0, - 63, - 0, - "MODEL" - ], [ 137, 6, @@ -2619,14 +2045,6 @@ 3, "LATENT" ], - [ - 144, - 50, - 0, - 63, - 4, - "INT" - ], [ 145, 63, @@ -2707,14 +2125,6 @@ 1, "STRING" ], - [ - 163, - 4, - 1, - 73, - 0, - "CLIP" - ], [ 165, 44, @@ -2748,7 +2158,135 @@ "PHOTOMAKER" ], [ - 170, + 171, + 76, + 0, + 73, + 3, + "INSIGHTFACE" + ], + [ + 356, + 180, + 0, + 28, + 0, + "*" + ], + [ + 415, + 32, + 0, + 195, + 0, + "IMAGE" + ], + [ + 416, + 33, + 0, + 195, + 1, + "IMAGE" + ], + [ + 417, + 195, + 0, + 196, + 0, + "IMAGE" + ], + [ + 427, + 4, + 1, + 7, + 0, + "CLIP" + ], + [ + 428, + 4, + 1, + 6, + 0, + "CLIP" + ], + [ + 429, + 4, + 1, + 73, + 0, + "CLIP" + ], + [ + 430, + 4, + 0, + 53, + 0, + "MODEL" + ], + [ + 433, + 24, + 0, + 3, + 0, + "MODEL" + ], + [ + 435, + 24, + 0, + 63, + 0, + "MODEL" + ], + [ + 442, + 201, + 0, + 20, + 4, + "INT" + ], + [ + 443, + 199, + 0, + 201, + 0, + "*" + ], + [ + 444, + 201, + 0, + 21, + 4, + "INT" + ], + [ + 445, + 201, + 0, + 3, + 4, + "INT" + ], + [ + 446, + 24, + 0, + 21, + 0, + "MODEL" + ], + [ + 447, 4, 0, 20, @@ -2756,20 +2294,28 @@ "MODEL" ], [ - 171, - 76, + 448, + 201, 0, - 73, - 3, - "INSIGHTFACE" + 63, + 4, + "INT" + ], + [ + 454, + 196, + 0, + 44, + 0, + "*" ] ], "groups": [ { "title": "Batch images", "bounding": [ - 28, - 831, + 30, + 600, 762, 997 ], @@ -2777,18 +2323,6 @@ "font_size": 24, "locked": false }, - { - "title": "Prepare images with IP-Adapter nodes", - "bounding": [ - 816, - 831, - 459, - 998 - ], - "color": "#8A8", - "font_size": 24, - "locked": false - }, { "title": "Style strength ratio with start/end steps", "bounding": [ @@ -2804,10 +2338,10 @@ { "title": "Style strength ratio with 1 KSampler", "bounding": [ - 1591, - 804, - 1015, - 634 + 1530, + 740, + 1060, + 640 ], "color": "#8AA", "font_size": 24, @@ -2816,18 +2350,18 @@ ], "config": {}, "extra": { + "ds": { + "scale": 0.6400703650588787, + "offset": [ + 341.7653129241849, + 314.0376190327701 + ] + }, "0246.VERSION": [ 0, 0, 4 - ], - "ds": { - "scale": 0.353115210930506, - "offset": [ - 406.3218081110497, - 717.0892305045404 - ] - } + ] }, "version": 0.4 } \ No newline at end of file