{ "last_node_id": 131, "last_link_id": 215, "nodes": [ { "id": 93, "type": "UNETLoader", "pos": [ -265.5894775390625, 1531.7340087890625 ], "size": [ 315, 82 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 171 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "UNETLoader" }, "widgets_values": [ "flux1-dev.safetensors", "default" ] }, { "id": 44, "type": "PulidFluxModelLoader", "pos": [ -262.90264892578125, 1662.658447265625 ], "size": [ 315, 58 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "PULIDFLUX", "type": "PULIDFLUX", "links": [ 77 ] } ], "properties": { "Node name for S&R": "PulidFluxModelLoader" }, "widgets_values": [ "pulid_flux_v0.9.1.safetensors" ] }, { "id": 45, "type": "PulidFluxEvaClipLoader", "pos": [ -294.8002624511719, 1774.585693359375 ], "size": [ 362.79498291015625, 38.76161575317383 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "EVA_CLIP", "type": "EVA_CLIP", "links": [ 78 ] } ], "properties": { "Node name for S&R": "PulidFluxEvaClipLoader" }, "widgets_values": [] }, { "id": 46, "type": "PulidFluxInsightFaceLoader", "pos": [ -300.94317626953125, 1863.1434326171875 ], "size": [ 365.4000244140625, 58 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "FACEANALYSIS", "type": "FACEANALYSIS", "links": [ 79 ] } ], "properties": { "Node name for S&R": "PulidFluxInsightFaceLoader" }, "widgets_values": [ "CUDA" ] }, { "id": 95, "type": "VAELoader", "pos": [ -265.02642822265625, 1410.9061279296875 ], "size": [ 315, 58 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 160 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "VAELoader" }, "widgets_values": [ "FLUX1/ae.safetensors" ] }, { "id": 94, "type": "DualCLIPLoader", "pos": [ -274.0904235839844, 1235.6214599609375 ], "size": [ 315, 122.00001525878906 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "links": [ 172, 173 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "DualCLIPLoader" }, "widgets_values": [ "t5xxl_fp16.safetensors", "clip_l.safetensors", "flux", "default" ] }, { "id": 105, "type": "Reroute", "pos": [ 81.75617980957031, 771.7276611328125 ], "size": [ 75, 26 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 176 } ], "outputs": [ { "name": "", "type": "IMAGE", "links": [ 175, 199 ], "slot_index": 0 } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 50, "type": "KSamplerSelect", "pos": [ 1312.514404296875, 1212.9171142578125 ], "size": [ 315, 58 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [ { "name": "SAMPLER", "type": "SAMPLER", "links": [ 70 ] } ], "properties": { "Node name for S&R": "KSamplerSelect" }, "widgets_values": [ "euler" ] }, { "id": 97, "type": "Reroute", "pos": [ 621.4758911132812, 1410.3482666015625 ], "size": [ 75, 26 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 160 } ], "outputs": [ { "name": "", "type": "VAE", "links": [ 157, 158, 191 ], "slot_index": 0 } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 123, "type": "Image Comparer (rgthree)", "pos": [ 2166.79833984375, 1418.202880859375 ], "size": [ 476.6938171386719, 546.7750854492188 ], "flags": {}, "order": 29, "mode": 0, "inputs": [ { "name": "image_a", "type": "IMAGE", "dir": 3, "link": 206 }, { "name": "image_b", "type": "IMAGE", "dir": 3, "link": 208 } ], "outputs": [], "properties": { "comparer_mode": "Slide" }, "widgets_values": [ [ { "name": "A", "selected": true, "url": "/api/view?filename=rgthree.compare._temp_myvmc_00007_.png&type=temp&subfolder=&rand=0.6300855264758487" }, { "name": "B", "selected": true, "url": "/api/view?filename=rgthree.compare._temp_myvmc_00008_.png&type=temp&subfolder=&rand=0.46445824593894125" } ] ] }, { "id": 118, "type": "FaceAnalysisModels", "pos": [ 1311.7503662109375, 2008.2781982421875 ], "size": [ 315, 82 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [ { "name": "ANALYSIS_MODELS", "type": "ANALYSIS_MODELS", "links": [ 196 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "FaceAnalysisModels" }, "widgets_values": [ "insightface", "CUDA" ] }, { "id": 98, "type": "Reroute", "pos": [ 367.4774475097656, 728.5109252929688 ], "size": [ 75, 26 ], "flags": {}, "order": 19, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 163 } ], "outputs": [ { "name": "", "type": "IMAGE", "links": [ 161, 162, 206 ], "slot_index": 0 } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 126, "type": "Note", "pos": [ -596.5314331054688, 188.32418823242188 ], "size": [ 230.86343383789062, 88 ], "flags": {}, "order": 8, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "The target image to face enhance" ], "color": "#432", "bgcolor": "#653" }, { "id": 125, "type": "Note", "pos": [ -593.9556884765625, 772.0499877929688 ], "size": [ 230.86343383789062, 88 ], "flags": {}, "order": 9, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "The reference face image" ], "color": "#432", "bgcolor": "#653" }, { "id": 127, "type": "Note", "pos": [ -538.2857666015625, 1239.5035400390625 ], "size": [ 230.86343383789062, 88 ], "flags": {}, "order": 10, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "Positive/negative prompts are optional" ], "color": "#432", "bgcolor": "#653" }, { "id": 124, "type": "Reroute", "pos": [ 2035.27978515625, 1079.953125 ], "size": [ 75, 26 ], "flags": {}, "order": 28, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 207 } ], "outputs": [ { "name": "", "type": "IMAGE", "links": [ 208, 210, 211 ], "slot_index": 0 } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 122, "type": "BasicGuider", "pos": [ 1313.324462890625, 981.9154052734375 ], "size": [ 241.79998779296875, 46 ], "flags": {}, "order": 24, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 204 }, { "name": "conditioning", "type": "CONDITIONING", "link": 203 } ], "outputs": [ { "name": "GUIDER", "type": "GUIDER", "links": [ 202 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "BasicGuider" }, "widgets_values": [] }, { "id": 41, "type": "SetUnionControlNetType", "pos": [ 200.7367706298828, 1973.8323974609375 ], "size": [ 315, 58 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "name": "control_net", "type": "CONTROL_NET", "link": 94 } ], "outputs": [ { "name": "CONTROL_NET", "type": "CONTROL_NET", "links": [ 89 ] } ], "properties": { "Node name for S&R": "SetUnionControlNetType" }, "widgets_values": [ "tile" ] }, { "id": 49, "type": "ControlNetLoader", "pos": [ -299.92938232421875, 1973.3970947265625 ], "size": [ 370.503173828125, 62.10068130493164 ], "flags": {}, "order": 11, "mode": 0, "inputs": [], "outputs": [ { "name": "CONTROL_NET", "type": "CONTROL_NET", "links": [ 94 ] } ], "properties": { "Node name for S&R": "ControlNetLoader" }, "widgets_values": [ "Flux_Dev_ControlNet_Union_Pro_ShakkerLabs.safetensors" ] }, { "id": 42, "type": "CLIPTextEncode", "pos": [ 224.627685546875, 1002.7890014648438 ], "size": [ 400, 200 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 172 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 87 ] } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "" ] }, { "id": 37, "type": "ControlNetApplyAdvanced", "pos": [ 837.775634765625, 1001.7030029296875 ], "size": [ 315, 186 ], "flags": {}, "order": 22, "mode": 0, "inputs": [ { "name": "positive", "type": "CONDITIONING", "link": 87 }, { "name": "negative", "type": "CONDITIONING", "link": 88 }, { "name": "control_net", "type": "CONTROL_NET", "link": 89 }, { "name": "image", "type": "IMAGE", "link": 162 }, { "name": "vae", "type": "VAE", "shape": 7, "link": 157 } ], "outputs": [ { "name": "positive", "type": "CONDITIONING", "links": [ 203 ], "slot_index": 0 }, { "name": "negative", "type": "CONDITIONING", "links": [] } ], "properties": { "Node name for S&R": "ControlNetApplyAdvanced" }, "widgets_values": [ 1, 0.1, 0.8 ] }, { "id": 35, "type": "VAEEncode", "pos": [ 1320.22705078125, 888.8261108398438 ], "size": [ 210, 46 ], "flags": {}, "order": 21, "mode": 0, "inputs": [ { "name": "pixels", "type": "IMAGE", "link": 161 }, { "name": "vae", "type": "VAE", "link": 158 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 72 ] } ], "properties": { "Node name for S&R": "VAEEncode" }, "widgets_values": [] }, { "id": 23, "type": "CLIPTextEncode", "pos": [ 228.5153350830078, 1266.098388671875 ], "size": [ 400, 200 ], "flags": { "collapsed": true }, "order": 17, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 173 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 88 ] } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "" ] }, { "id": 128, "type": "SaveImage", "pos": [ 2184.40869140625, 882.2232666015625 ], "size": [ 440.4703063964844, 463.7738952636719 ], "flags": {}, "order": 31, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 211 } ], "outputs": [], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "FaceEnhanced" ] }, { "id": 117, "type": "FaceEmbedDistance", "pos": [ 1792.0877685546875, 2008.6629638671875 ], "size": [ 315, 170 ], "flags": {}, "order": 30, "mode": 0, "inputs": [ { "name": "analysis_models", "type": "ANALYSIS_MODELS", "link": 196 }, { "name": "reference", "type": "IMAGE", "link": 199 }, { "name": "image", "type": "IMAGE", "link": 210 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 212 ], "slot_index": 0 }, { "name": "distance", "type": "FLOAT", "links": [ 201 ], "slot_index": 1 } ], "properties": { "Node name for S&R": "FaceEmbedDistance" }, "widgets_values": [ "cosine", 100, 0, true ] }, { "id": 121, "type": "Display Any (rgthree)", "pos": [ 2242.676513671875, 2028.4595947265625 ], "size": [ 264.5999755859375, 88 ], "flags": {}, "order": 33, "mode": 0, "inputs": [ { "name": "source", "type": "*", "dir": 3, "link": 201 } ], "outputs": [], "properties": { "Node name for S&R": "Display Any (rgthree)" }, "widgets_values": [ "" ] }, { "id": 129, "type": "SaveImage", "pos": [ 2185.483154296875, 2173.050537109375 ], "size": [ 440.4703063964844, 463.7738952636719 ], "flags": {}, "order": 32, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 212 } ], "outputs": [], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "FaceEmbedDist" ] }, { "id": 40, "type": "LoadImage", "pos": [ -351.87322998046875, 188.0283966064453 ], "size": [ 433.580322265625, 523.640869140625 ], "flags": {}, "order": 12, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 163 ], "slot_index": 0 }, { "name": "MASK", "type": "MASK", "links": null } ], "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "chatgpt_elon.png", "image" ] }, { "id": 24, "type": "LoadImage", "pos": [ -352.1936340332031, 770.800537109375 ], "size": [ 404.0055236816406, 404.2244567871094 ], "flags": {}, "order": 13, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 176 ], "slot_index": 0 }, { "name": "MASK", "type": "MASK", "links": null } ], "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "elon (1).jpg", "image" ] }, { "id": 31, "type": "ApplyPulidFlux", "pos": [ 221.46853637695312, 1532.384033203125 ], "size": [ 315, 346 ], "flags": {}, "order": 23, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 171 }, { "name": "pulid_flux", "type": "PULIDFLUX", "link": 77 }, { "name": "eva_clip", "type": "EVA_CLIP", "link": 78 }, { "name": "face_analysis", "type": "FACEANALYSIS", "link": 79 }, { "name": "image", "type": "IMAGE", "link": 175 }, { "name": "attn_mask", "type": "MASK", "shape": 7, "link": null }, { "name": "prior_image", "type": "IMAGE", "shape": 7, "link": null } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 204, 215 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "ApplyPulidFlux" }, "widgets_values": [ 0.75, 0.1, 1, "mean", 1, 0, 1000, true ] }, { "id": 131, "type": "BasicScheduler", "pos": [ 1313.8270263671875, 1318.2603759765625 ], "size": [ 315, 106 ], "flags": {}, "order": 25, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 215 } ], "outputs": [ { "name": "SIGMAS", "type": "SIGMAS", "links": [ 214 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "BasicScheduler" }, "widgets_values": [ "beta", 28, 0.75 ] }, { "id": 39, "type": "RandomNoise", "pos": [ 1311.832763671875, 1088.896728515625 ], "size": [ 315, 82 ], "flags": {}, "order": 14, "mode": 0, "inputs": [], "outputs": [ { "name": "NOISE", "type": "NOISE", "links": [ 68 ] } ], "properties": { "Node name for S&R": "RandomNoise" }, "widgets_values": [ 1, "fixed" ] }, { "id": 1, "type": "SamplerCustomAdvanced", "pos": [ 1767.5123291015625, 874.9805908203125 ], "size": [ 355.20001220703125, 106 ], "flags": {}, "order": 26, "mode": 0, "inputs": [ { "name": "noise", "type": "NOISE", "link": 68 }, { "name": "guider", "type": "GUIDER", "link": 202 }, { "name": "sampler", "type": "SAMPLER", "link": 70 }, { "name": "sigmas", "type": "SIGMAS", "link": 214 }, { "name": "latent_image", "type": "LATENT", "link": 72 } ], "outputs": [ { "name": "output", "type": "LATENT", "links": [ 190 ], "slot_index": 0 }, { "name": "denoised_output", "type": "LATENT", "links": null } ], "properties": { "Node name for S&R": "SamplerCustomAdvanced" }, "widgets_values": [] }, { "id": 114, "type": "VAEDecode", "pos": [ 1771.2335205078125, 1040.572021484375 ], "size": [ 210, 46 ], "flags": {}, "order": 27, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 190 }, { "name": "vae", "type": "VAE", "link": 191 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 207 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "VAEDecode" }, "widgets_values": [] } ], "links": [ [ 68, 39, 0, 1, 0, "NOISE" ], [ 70, 50, 0, 1, 2, "SAMPLER" ], [ 72, 35, 0, 1, 4, "LATENT" ], [ 77, 44, 0, 31, 1, "PULIDFLUX" ], [ 78, 45, 0, 31, 2, "EVA_CLIP" ], [ 79, 46, 0, 31, 3, "FACEANALYSIS" ], [ 87, 42, 0, 37, 0, "CONDITIONING" ], [ 88, 23, 0, 37, 1, "CONDITIONING" ], [ 89, 41, 0, 37, 2, "CONTROL_NET" ], [ 94, 49, 0, 41, 0, "CONTROL_NET" ], [ 157, 97, 0, 37, 4, "VAE" ], [ 158, 97, 0, 35, 1, "VAE" ], [ 160, 95, 0, 97, 0, "*" ], [ 161, 98, 0, 35, 0, "IMAGE" ], [ 162, 98, 0, 37, 3, "IMAGE" ], [ 163, 40, 0, 98, 0, "*" ], [ 171, 93, 0, 31, 0, "MODEL" ], [ 172, 94, 0, 42, 0, "CLIP" ], [ 173, 94, 0, 23, 0, "CLIP" ], [ 175, 105, 0, 31, 4, "IMAGE" ], [ 176, 24, 0, 105, 0, "*" ], [ 190, 1, 0, 114, 0, "LATENT" ], [ 191, 97, 0, 114, 1, "VAE" ], [ 196, 118, 0, 117, 0, "ANALYSIS_MODELS" ], [ 199, 105, 0, 117, 1, "IMAGE" ], [ 201, 117, 1, 121, 0, "*" ], [ 202, 122, 0, 1, 1, "GUIDER" ], [ 203, 37, 0, 122, 1, "CONDITIONING" ], [ 204, 31, 0, 122, 0, "MODEL" ], [ 206, 98, 0, 123, 0, "IMAGE" ], [ 207, 114, 0, 124, 0, "*" ], [ 208, 124, 0, 123, 1, "IMAGE" ], [ 210, 124, 0, 117, 2, "IMAGE" ], [ 211, 124, 0, 128, 0, "IMAGE" ], [ 212, 117, 0, 129, 0, "IMAGE" ], [ 214, 131, 0, 1, 3, "SIGMAS" ], [ 215, 31, 0, 131, 0, "MODEL" ] ], "groups": [], "config": {}, "extra": { "ds": { "scale": 0.4594972986357322, "offset": [ 946.7575830609429, -566.8107983375609 ] }, "node_versions": { "comfy-core": "0.3.26", "ComfyUI-PuLID-Flux-Enhanced": "04e1b52320f1f14383afe18959349703623c5b88", "rgthree-comfy": "1.0.0", "comfyui_faceanalysis": "4919e4e931db0edb219ba5086b3c10b8af750631" }, "ue_links": [] }, "version": 0.4 }