{
  "last_node_id": 62,
  "last_link_id": 213,
  "nodes": [
    {
      "id": 14,
      "type": "LeReS-DepthMapPreprocessor",
      "pos": [
        240.88893296983525,
        -124.26661173502609
      ],
      "size": {
        "0": 365.4157409667969,
        "1": 130
      },
      "flags": {
        "collapsed": false
      },
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 202,
          "slot_index": 0
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            157,
            194
          ],
          "shape": 3,
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "LeReS-DepthMapPreprocessor"
      },
      "widgets_values": [
        0,
        0,
        "disable",
        512
      ]
    },
    {
      "id": 17,
      "type": "DWPreprocessor",
      "pos": [
        650.8889329698349,
        -114.26661173502607
      ],
      "size": {
        "0": 316.25665283203125,
        "1": 198
      },
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 201,
          "slot_index": 0
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            63,
            87
          ],
          "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",
        512,
        "yolox_l.onnx",
        "dw-ll_ucoco_384.onnx"
      ]
    },
    {
      "id": 52,
      "type": "PreviewImage",
      "pos": [
        1060.8889329698357,
        165.73338826497388
      ],
      "size": {
        "0": 226.6756591796875,
        "1": 246
      },
      "flags": {
        "collapsed": false
      },
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 175,
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 29,
      "type": "PreviewImage",
      "pos": [
        690.8889329698349,
        165.73338826497388
      ],
      "size": {
        "0": 226.6756591796875,
        "1": 246
      },
      "flags": {
        "collapsed": false
      },
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 87
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 28,
      "type": "PreviewImage",
      "pos": [
        310.88893296983525,
        165.73338826497388
      ],
      "size": {
        "0": 226.6756591796875,
        "1": 246
      },
      "flags": {
        "collapsed": false
      },
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 157
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 39,
      "type": "LatentUpscale",
      "pos": [
        1520,
        -60
      ],
      "size": {
        "0": 315,
        "1": 130
      },
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 96
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            99
          ],
          "shape": 3,
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "LatentUpscale"
      },
      "widgets_values": [
        "nearest-exact",
        512,
        0,
        "disabled"
      ]
    },
    {
      "id": 37,
      "type": "VAEEncode",
      "pos": [
        1570,
        -190
      ],
      "size": {
        "0": 210,
        "1": 46
      },
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 188,
          "slot_index": 0
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 127,
          "slot_index": 1
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            96
          ],
          "shape": 3,
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "VAEEncode"
      }
    },
    {
      "id": 8,
      "type": "VAEDecode",
      "pos": [
        1590,
        -300
      ],
      "size": {
        "0": 210,
        "1": 46
      },
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 7
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 133,
          "slot_index": 1
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            186
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      }
    },
    {
      "id": 57,
      "type": "ImageScale",
      "pos": [
        -1258.3850052818661,
        -375.9384817188217
      ],
      "size": {
        "0": 315,
        "1": 130
      },
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 190
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            188
          ],
          "shape": 3,
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "ImageScale"
      },
      "widgets_values": [
        "nearest-exact",
        512,
        0,
        "disabled"
      ]
    },
    {
      "id": 7,
      "type": "CLIPTextEncode",
      "pos": [
        -309.6004993168994,
        -140.1230505741004
      ],
      "size": {
        "0": 414.95196533203125,
        "1": 76
      },
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 5
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            61
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "drawing,paiting,crayon,sketch,graphite,impressionist,noisy,blurry,soft,deformed,ugly,lowers,bad anatomy,bad hands,text,error,missing fingers,extra digit,fewer digits,cropped,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,username,(monochrome,greyscale,old photo), text"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 40,
      "type": "VAELoader",
      "pos": [
        -770,
        -150
      ],
      "size": {
        "0": 315,
        "1": 58
      },
      "flags": {},
      "order": 0,
      "mode": 0,
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            127,
            133
          ],
          "shape": 3,
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "VAELoader"
      },
      "widgets_values": [
        "vae-ft-mse-840000-ema-pruned.safetensors"
      ]
    },
    {
      "id": 20,
      "type": "ControlNetLoader",
      "pos": [
        -770,
        -30
      ],
      "size": {
        "0": 315,
        "1": 58
      },
      "flags": {
        "collapsed": false
      },
      "order": 1,
      "mode": 0,
      "outputs": [
        {
          "name": "CONTROL_NET",
          "type": "CONTROL_NET",
          "links": [
            191
          ],
          "shape": 3,
          "slot_index": 0
        }
      ],
      "title": "Load ControlNet Model (for Depth Map)",
      "properties": {
        "Node name for S&R": "ControlNetLoader"
      },
      "widgets_values": [
        "control_v11f1p_sd15_depth.pth"
      ]
    },
    {
      "id": 22,
      "type": "ControlNetLoader",
      "pos": [
        -770,
        80
      ],
      "size": {
        "0": 315,
        "1": 58
      },
      "flags": {},
      "order": 2,
      "mode": 0,
      "outputs": [
        {
          "name": "CONTROL_NET",
          "type": "CONTROL_NET",
          "links": [
            67
          ],
          "shape": 3,
          "slot_index": 0
        }
      ],
      "title": "Load ControlNet Model (for DWPose)",
      "properties": {
        "Node name for S&R": "ControlNetLoader"
      },
      "widgets_values": [
        "control_v11p_sd15_openpose.pth"
      ]
    },
    {
      "id": 50,
      "type": "ControlNetLoader",
      "pos": [
        -770,
        200
      ],
      "size": {
        "0": 378,
        "1": 58
      },
      "flags": {},
      "order": 3,
      "mode": 0,
      "outputs": [
        {
          "name": "CONTROL_NET",
          "type": "CONTROL_NET",
          "links": [
            174
          ],
          "shape": 3,
          "slot_index": 0
        }
      ],
      "title": "Load ControlNet Model (for Realistic LineArt)",
      "properties": {
        "Node name for S&R": "ControlNetLoader"
      },
      "widgets_values": [
        "control_v11p_sd15_lineart.pth"
      ]
    },
    {
      "id": 24,
      "type": "ControlNetApplyAdvanced",
      "pos": [
        247.88893296983522,
        -345.2666117350261
      ],
      "size": {
        "0": 355.4087829589844,
        "1": 166
      },
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 59
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 61
        },
        {
          "name": "control_net",
          "type": "CONTROL_NET",
          "link": 191,
          "slot_index": 2
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 194,
          "slot_index": 3
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            56
          ],
          "shape": 3,
          "slot_index": 0
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            57
          ],
          "shape": 3,
          "slot_index": 1
        }
      ],
      "properties": {
        "Node name for S&R": "ControlNetApplyAdvanced"
      },
      "widgets_values": [
        0.4,
        0,
        1
      ]
    },
    {
      "id": 25,
      "type": "ControlNetApplyAdvanced",
      "pos": [
        652.8889329698349,
        -349.2666117350261
      ],
      "size": {
        "0": 315,
        "1": 166
      },
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 56
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 57
        },
        {
          "name": "control_net",
          "type": "CONTROL_NET",
          "link": 67,
          "slot_index": 2
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 63,
          "slot_index": 3
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            165
          ],
          "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": [
        1,
        0,
        1
      ]
    },
    {
      "id": 43,
      "type": "LineArtPreprocessor",
      "pos": [
        1020.888932969835,
        -105.26661173502607
      ],
      "size": {
        "0": 315,
        "1": 82
      },
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 203,
          "slot_index": 0
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            173,
            175
          ],
          "shape": 3,
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "LineArtPreprocessor"
      },
      "widgets_values": [
        "disable",
        512
      ]
    },
    {
      "id": 41,
      "type": "ReActorFaceSwap",
      "pos": [
        1902,
        -267
      ],
      "size": {
        "0": 315,
        "1": 358
      },
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [
        {
          "name": "input_image",
          "type": "IMAGE",
          "link": 186
        },
        {
          "name": "source_image",
          "type": "IMAGE",
          "link": 208,
          "slot_index": 1
        },
        {
          "name": "face_model",
          "type": "FACE_MODEL",
          "link": null
        },
        {
          "name": "face_boost",
          "type": "FACE_BOOST",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            213
          ],
          "shape": 3,
          "slot_index": 0
        },
        {
          "name": "FACE_MODEL",
          "type": "FACE_MODEL",
          "links": null,
          "shape": 3,
          "slot_index": 1
        }
      ],
      "properties": {
        "Node name for S&R": "ReActorFaceSwap"
      },
      "widgets_values": [
        true,
        "inswapper_128.onnx",
        "retinaface_resnet50",
        "codeformer.pth",
        1,
        1,
        "no",
        "no",
        "0,1,2,3,4,5,6,7,8,9",
        "0,1,2,3,4,5,6,7,8,9",
        1
      ]
    },
    {
      "id": 61,
      "type": "PreviewImage",
      "pos": [
        2396,
        -353
      ],
      "size": [
        686.6279907226562,
        701.0338134765625
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 213
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      },
      "locked": true
    },
    {
      "id": 51,
      "type": "ControlNetApplyAdvanced",
      "pos": [
        1022.8889329698351,
        -348.2666117350261
      ],
      "size": {
        "0": 315,
        "1": 166
      },
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 165
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 167
        },
        {
          "name": "control_net",
          "type": "CONTROL_NET",
          "link": 174,
          "slot_index": 2
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 173,
          "slot_index": 3
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            169
          ],
          "shape": 3,
          "slot_index": 0
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            171
          ],
          "shape": 3,
          "slot_index": 1
        }
      ],
      "properties": {
        "Node name for S&R": "ControlNetApplyAdvanced"
      },
      "widgets_values": [
        0.8,
        0,
        1
      ]
    },
    {
      "id": 13,
      "type": "LoadImage",
      "pos": [
        -1402,
        -193
      ],
      "size": {
        "0": 480.3741760253906,
        "1": 506.4440612792969
      },
      "flags": {},
      "order": 4,
      "mode": 0,
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            190,
            201,
            202,
            203,
            208
          ],
          "shape": 3,
          "slot_index": 0
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null,
          "shape": 3
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "30219326455.jpg",
        "image"
      ]
    },
    {
      "id": 6,
      "type": "CLIPTextEncode",
      "pos": [
        -314.6004993168994,
        -284.12305057410043
      ],
      "size": {
        "0": 420,
        "1": 76
      },
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 3
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            59
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "2 pretty girls wearing colorful dresses"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 3,
      "type": "KSampler",
      "pos": [
        1518,
        -322
      ],
      "size": [
        338.0687561035156,
        490.14715576171875
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 169
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 171
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 99
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            7
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        817346977444170,
        "randomize",
        20,
        5,
        "dpmpp_2m_sde",
        "karras",
        0.6
      ],
      "locked": true
    },
    {
      "id": 4,
      "type": "CheckpointLoaderSimple",
      "pos": [
        -760,
        -310
      ],
      "size": {
        "0": 315,
        "1": 98
      },
      "flags": {},
      "order": 5,
      "mode": 0,
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            1
          ],
          "slot_index": 0
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            3,
            5
          ],
          "slot_index": 1
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": [],
          "slot_index": 2
        }
      ],
      "properties": {
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "epicphotogasm_v1.safetensors"
      ]
    }
  ],
  "links": [
    [
      1,
      4,
      0,
      3,
      0,
      "MODEL"
    ],
    [
      3,
      4,
      1,
      6,
      0,
      "CLIP"
    ],
    [
      5,
      4,
      1,
      7,
      0,
      "CLIP"
    ],
    [
      7,
      3,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      56,
      24,
      0,
      25,
      0,
      "CONDITIONING"
    ],
    [
      57,
      24,
      1,
      25,
      1,
      "CONDITIONING"
    ],
    [
      59,
      6,
      0,
      24,
      0,
      "CONDITIONING"
    ],
    [
      61,
      7,
      0,
      24,
      1,
      "CONDITIONING"
    ],
    [
      63,
      17,
      0,
      25,
      3,
      "IMAGE"
    ],
    [
      67,
      22,
      0,
      25,
      2,
      "CONTROL_NET"
    ],
    [
      87,
      17,
      0,
      29,
      0,
      "IMAGE"
    ],
    [
      96,
      37,
      0,
      39,
      0,
      "LATENT"
    ],
    [
      99,
      39,
      0,
      3,
      3,
      "LATENT"
    ],
    [
      127,
      40,
      0,
      37,
      1,
      "VAE"
    ],
    [
      133,
      40,
      0,
      8,
      1,
      "VAE"
    ],
    [
      157,
      14,
      0,
      28,
      0,
      "IMAGE"
    ],
    [
      165,
      25,
      0,
      51,
      0,
      "CONDITIONING"
    ],
    [
      167,
      25,
      1,
      51,
      1,
      "CONDITIONING"
    ],
    [
      169,
      51,
      0,
      3,
      1,
      "CONDITIONING"
    ],
    [
      171,
      51,
      1,
      3,
      2,
      "CONDITIONING"
    ],
    [
      173,
      43,
      0,
      51,
      3,
      "IMAGE"
    ],
    [
      174,
      50,
      0,
      51,
      2,
      "CONTROL_NET"
    ],
    [
      175,
      43,
      0,
      52,
      0,
      "IMAGE"
    ],
    [
      186,
      8,
      0,
      41,
      0,
      "IMAGE"
    ],
    [
      188,
      57,
      0,
      37,
      0,
      "IMAGE"
    ],
    [
      190,
      13,
      0,
      57,
      0,
      "IMAGE"
    ],
    [
      191,
      20,
      0,
      24,
      2,
      "CONTROL_NET"
    ],
    [
      194,
      14,
      0,
      24,
      3,
      "IMAGE"
    ],
    [
      201,
      13,
      0,
      17,
      0,
      "IMAGE"
    ],
    [
      202,
      13,
      0,
      14,
      0,
      "IMAGE"
    ],
    [
      203,
      13,
      0,
      43,
      0,
      "IMAGE"
    ],
    [
      208,
      13,
      0,
      41,
      1,
      "IMAGE"
    ],
    [
      213,
      41,
      0,
      61,
      0,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "title": "1 - Load Image Here",
      "bounding": [
        -1476,
        -438,
        618,
        808
      ],
      "color": "#3f789e",
      "font_size": 24,
      "locked": false
    },
    {
      "title": "2 - Set the Models Here",
      "bounding": [
        -814,
        -438,
        436,
        759
      ],
      "color": "#3f789e",
      "font_size": 24,
      "locked": false
    },
    {
      "title": "3 - Write a Prompt Here",
      "bounding": [
        -328,
        -436,
        453,
        447
      ],
      "color": "#3f789e",
      "font_size": 24,
      "locked": false
    },
    {
      "title": "4 - ControlNet Here",
      "bounding": [
        177,
        -430,
        1234,
        899
      ],
      "color": "#3f789e",
      "font_size": 24,
      "locked": false
    },
    {
      "title": "5 - Generation and Sampling Setting Here",
      "bounding": [
        1488,
        -423,
        790,
        718
      ],
      "color": "#3f789e",
      "font_size": 24,
      "locked": false
    },
    {
      "title": "6 - Preview Here",
      "bounding": [
        2353,
        -416,
        774,
        814
      ],
      "color": "#3f789e",
      "font_size": 24,
      "locked": false
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.5989500000000068,
      "offset": {
        "0": 138.2313270587702,
        "1": 599.8035579863283
      }
    }
  },
  "version": 0.4
}