{
  "id": "4f0e4b59-a951-4f7d-a885-c5f8cfc385ff",
  "revision": 0,
  "last_node_id": 38,
  "last_link_id": 52,
  "nodes": [
    {
      "id": 13,
      "type": "KSampler",
      "pos": [
        1069.4880000000035,
        131.93499999999975
      ],
      "size": [
        270,
        474
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 10
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 17
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 18
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 16
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            14
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "KSampler",
        "ue_properties": {
          "widget_ue_connectable": {
            "seed": true,
            "steps": true,
            "cfg": true,
            "sampler_name": true,
            "scheduler": true,
            "denoise": true
          },
          "version": "7.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        433781930385919,
        "randomize",
        30,
        5,
        "dpmpp_2m_sde_heun",
        "karras",
        1
      ]
    },
    {
      "id": 14,
      "type": "EmptyLatentImage",
      "pos": [
        919.0849999999997,
        659.6764999999998
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            16
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "EmptyLatentImage",
        "ue_properties": {
          "widget_ue_connectable": {
            "width": true,
            "height": true,
            "batch_size": true
          },
          "version": "7.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        1216,
        832,
        1
      ]
    },
    {
      "id": 15,
      "type": "VAEDecode",
      "pos": [
        1411.5550000000003,
        130.604
      ],
      "size": [
        140,
        46
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 14
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 13
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            20
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "VAEDecode",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": []
    },
    {
      "id": 19,
      "type": "ImageUpscaleWithModel",
      "pos": [
        1472.3937656021994,
        560.8781511943426
      ],
      "size": [
        233.5689453125,
        46
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "upscale_model",
          "type": "UPSCALE_MODEL",
          "link": 19
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 20
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            21
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "ImageUpscaleWithModel"
      },
      "widgets_values": []
    },
    {
      "id": 20,
      "type": "ImageScaleBy",
      "pos": [
        1471.0627656022002,
        656.7101511943418
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 21
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            32
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "ImageScaleBy"
      },
      "widgets_values": [
        "area",
        0.5
      ]
    },
    {
      "id": 21,
      "type": "VAEEncode",
      "pos": [
        1470.7317656022003,
        940.1341511943425
      ],
      "size": [
        140,
        46
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 31
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 23
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            24
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "VAEEncode"
      },
      "widgets_values": []
    },
    {
      "id": 22,
      "type": "KSampler",
      "pos": [
        1799.8197656022003,
        454.39815119434246
      ],
      "size": [
        270,
        474.00000000000006
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 25
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 26
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 27
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 24
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            28
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        506857804710697,
        "randomize",
        30,
        5,
        "dpmpp_2m_sde_heun",
        "normal",
        0.3
      ]
    },
    {
      "id": 25,
      "type": "ImageScaleBy",
      "pos": [
        1472.7193405834169,
        796.3340416526446
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 32
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            31
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "ImageScaleBy"
      },
      "widgets_values": [
        "area",
        0.5
      ]
    },
    {
      "id": 23,
      "type": "VAEDecode",
      "pos": [
        2120.590765602201,
        454.39815119434246
      ],
      "size": [
        140,
        46
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 28
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 29
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            43
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": []
    },
    {
      "id": 12,
      "type": "CLIPTextEncode",
      "pos": [
        485.17899999999855,
        659.0109999999997
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 12
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            18,
            27,
            48
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "CLIPTextEncode",
        "ue_properties": {
          "widget_ue_connectable": {
            "text": true
          },
          "version": "7.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "worst quality, bad quality"
      ]
    },
    {
      "id": 37,
      "type": "UltralyticsDetectorProvider",
      "pos": [
        2082.5438265834164,
        646.0514042526448
      ],
      "size": [
        279.0767578125,
        78
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "BBOX_DETECTOR",
          "type": "BBOX_DETECTOR",
          "links": [
            50
          ]
        },
        {
          "name": "SEGM_DETECTOR",
          "type": "SEGM_DETECTOR",
          "links": [
            49
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-impact-subpack",
        "ver": "50c7b71a6a224734cc9b21963c6d1926816a97f1",
        "Node name for S&R": "UltralyticsDetectorProvider"
      },
      "widgets_values": [
        "bbox/face_yolov8m.pt"
      ]
    },
    {
      "id": 38,
      "type": "SAMLoader",
      "pos": [
        2090.243826583417,
        781.3514042526444
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAM_MODEL",
          "type": "SAM_MODEL",
          "links": [
            51
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-impact-pack",
        "ver": "61bd8397a18e7e7668e6a24e95168967768c2bed",
        "Node name for S&R": "SAMLoader"
      },
      "widgets_values": [
        "sam_vit_b_01ec64.pth",
        "AUTO"
      ]
    },
    {
      "id": 36,
      "type": "FaceDetailer",
      "pos": [
        2390.5732405834165,
        458.2704416526448
      ],
      "size": [
        400,
        1168
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 43
        },
        {
          "name": "model",
          "type": "MODEL",
          "link": 44
        },
        {
          "name": "clip",
          "type": "CLIP",
          "link": 45
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 46
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 47
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 48
        },
        {
          "name": "bbox_detector",
          "type": "BBOX_DETECTOR",
          "link": 50
        },
        {
          "name": "sam_model_opt",
          "shape": 7,
          "type": "SAM_MODEL",
          "link": 51
        },
        {
          "name": "segm_detector_opt",
          "shape": 7,
          "type": "SEGM_DETECTOR",
          "link": 49
        },
        {
          "name": "detailer_hook",
          "shape": 7,
          "type": "DETAILER_HOOK",
          "link": null
        },
        {
          "name": "scheduler_func_opt",
          "shape": 7,
          "type": "SCHEDULER_FUNC",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "links": [
            52
          ]
        },
        {
          "name": "cropped_refined",
          "shape": 6,
          "type": "IMAGE",
          "links": null
        },
        {
          "name": "cropped_enhanced_alpha",
          "shape": 6,
          "type": "IMAGE",
          "links": null
        },
        {
          "name": "mask",
          "type": "MASK",
          "links": null
        },
        {
          "name": "detailer_pipe",
          "type": "DETAILER_PIPE",
          "links": null
        },
        {
          "name": "cnet_images",
          "shape": 6,
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfyui-impact-pack",
        "ver": "61bd8397a18e7e7668e6a24e95168967768c2bed",
        "Node name for S&R": "FaceDetailer"
      },
      "widgets_values": [
        512,
        true,
        1024,
        464900342240556,
        "randomize",
        20,
        8,
        "euler",
        "simple",
        0.5,
        5,
        true,
        true,
        0.5,
        10,
        3,
        "center-1",
        0,
        0.93,
        0,
        0.7,
        "False",
        10,
        "",
        1,
        false,
        20,
        false,
        false
      ]
    },
    {
      "id": 11,
      "type": "CLIPTextEncode",
      "pos": [
        482.516999999999,
        375.5079999999997
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 11
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            17,
            26,
            47
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "CLIPTextEncode",
        "ue_properties": {
          "widget_ue_connectable": {
            "text": true
          },
          "version": "7.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "masterpiece, best quality, realistic, 1girl, 19 y.o, tan skin, blonde hair, large breasts, street path, graffiti, full body,\ngrin, shy"
      ]
    },
    {
      "id": 10,
      "type": "CheckpointLoaderSimple",
      "pos": [
        278.8739999999999,
        161.21699999999996
      ],
      "size": [
        270,
        98
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            10,
            25,
            44
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            11,
            12,
            45
          ]
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            13,
            23,
            29,
            46
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "CheckpointLoaderSimple",
        "ue_properties": {
          "widget_ue_connectable": {
            "ckpt_name": true
          },
          "version": "7.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "illustrijEVO_lvl3.safetensors"
      ]
    },
    {
      "id": 18,
      "type": "UpscaleModelLoader",
      "pos": [
        1404.5127656021998,
        453.06715119434256
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "UPSCALE_MODEL",
          "type": "UPSCALE_MODEL",
          "links": [
            19
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "Node name for S&R": "UpscaleModelLoader"
      },
      "widgets_values": [
        "RealESRGAN_x4plus.pth"
      ]
    },
    {
      "id": 16,
      "type": "SaveImage",
      "pos": [
        2863.6123781999986,
        457.9884727999998
      ],
      "size": [
        270,
        270
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 52
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.4.0",
        "ue_properties": {
          "widget_ue_connectable": {
            "filename_prefix": true
          },
          "version": "7.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "ComfyUI"
      ]
    }
  ],
  "links": [
    [
      10,
      10,
      0,
      13,
      0,
      "MODEL"
    ],
    [
      11,
      10,
      1,
      11,
      0,
      "CLIP"
    ],
    [
      12,
      10,
      1,
      12,
      0,
      "CLIP"
    ],
    [
      13,
      10,
      2,
      15,
      1,
      "VAE"
    ],
    [
      14,
      13,
      0,
      15,
      0,
      "LATENT"
    ],
    [
      16,
      14,
      0,
      13,
      3,
      "LATENT"
    ],
    [
      17,
      11,
      0,
      13,
      1,
      "CONDITIONING"
    ],
    [
      18,
      12,
      0,
      13,
      2,
      "CONDITIONING"
    ],
    [
      19,
      18,
      0,
      19,
      0,
      "UPSCALE_MODEL"
    ],
    [
      20,
      15,
      0,
      19,
      1,
      "IMAGE"
    ],
    [
      21,
      19,
      0,
      20,
      0,
      "IMAGE"
    ],
    [
      23,
      10,
      2,
      21,
      1,
      "VAE"
    ],
    [
      24,
      21,
      0,
      22,
      3,
      "LATENT"
    ],
    [
      25,
      10,
      0,
      22,
      0,
      "MODEL"
    ],
    [
      26,
      11,
      0,
      22,
      1,
      "CONDITIONING"
    ],
    [
      27,
      12,
      0,
      22,
      2,
      "CONDITIONING"
    ],
    [
      28,
      22,
      0,
      23,
      0,
      "LATENT"
    ],
    [
      29,
      10,
      2,
      23,
      1,
      "VAE"
    ],
    [
      31,
      25,
      0,
      21,
      0,
      "IMAGE"
    ],
    [
      32,
      20,
      0,
      25,
      0,
      "IMAGE"
    ],
    [
      43,
      23,
      0,
      36,
      0,
      "IMAGE"
    ],
    [
      44,
      10,
      0,
      36,
      1,
      "MODEL"
    ],
    [
      45,
      10,
      1,
      36,
      2,
      "CLIP"
    ],
    [
      46,
      10,
      2,
      36,
      3,
      "VAE"
    ],
    [
      47,
      11,
      0,
      36,
      4,
      "CONDITIONING"
    ],
    [
      48,
      12,
      0,
      36,
      5,
      "CONDITIONING"
    ],
    [
      49,
      37,
      1,
      36,
      8,
      "SEGM_DETECTOR"
    ],
    [
      50,
      37,
      0,
      36,
      6,
      "BBOX_DETECTOR"
    ],
    [
      51,
      38,
      0,
      36,
      7,
      "SAM_MODEL"
    ],
    [
      52,
      36,
      0,
      16,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.6830134553650707,
      "offset": [
        -429.5359351261345,
        105.79802755985463
      ]
    },
    "frontendVersion": "1.34.9",
    "workflowRendererVersion": "LG",
    "ue_links": [],
    "links_added_by_ue": []
  },
  "version": 0.4
}