{
  "last_node_id": 13,
  "last_link_id": 17,
  "nodes": [
    {
      "id": 4,
      "type": "CheckpointLoaderSimple",
      "pos": [
        0,
        0
      ],
      "size": [
        260,
        120
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            1
          ],
          "slot_index": 0
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            5,
            6
          ],
          "slot_index": 1
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            4,
            9,
            16
          ],
          "slot_index": 2
        }
      ],
      "properties": {
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "v1-5-pruned-emaonly.safetensors"
      ]
    },
    {
      "id": 10,
      "type": "LoadAndApplyICLightUnet",
      "pos": [
        300,
        0
      ],
      "size": [
        260,
        120
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            11
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "LoadAndApplyICLightUnet"
      },
      "widgets_values": [
        "iclight_sd15_fc.safetensors"
      ]
    },
    {
      "id": 1,
      "type": "LoadImage",
      "pos": [
        600,
        0
      ],
      "size": [
        260,
        120
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            2
          ],
          "slot_index": 0
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": [],
          "slot_index": 1
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "portrait_src.png"
      ]
    },
    {
      "id": 11,
      "type": "ImageScale",
      "pos": [
        900,
        0
      ],
      "size": [
        260,
        120
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 2
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            3
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "ImageScale"
      },
      "widgets_values": [
        "lanczos",
        512,
        768,
        "center"
      ]
    },
    {
      "id": 12,
      "type": "VAEEncode",
      "pos": [
        1200,
        0
      ],
      "size": [
        260,
        120
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 3
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 4
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            10
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "VAEEncode"
      },
      "widgets_values": []
    },
    {
      "id": 6,
      "type": "CLIPTextEncode",
      "pos": [
        1500,
        0
      ],
      "size": [
        260,
        120
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 5
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            7
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "dramatic cinematic lighting, warm golden sunset light from the left side, soft rim light on the cheek, deep shadows on the right, moody atmosphere, photorealistic portrait"
      ]
    },
    {
      "id": 7,
      "type": "CLIPTextEncode",
      "pos": [
        0,
        360
      ],
      "size": [
        260,
        120
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 6
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            8
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "flat lighting, overexposed, washed out, cartoon, illustration, deformed, watermark"
      ]
    },
    {
      "id": 13,
      "type": "ICLightConditioning",
      "pos": [
        300,
        360
      ],
      "size": [
        260,
        120
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 7
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 8
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 9
        },
        {
          "name": "foreground",
          "type": "LATENT",
          "link": 10
        },
        {
          "name": "opt_background",
          "type": "LATENT",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            12
          ],
          "slot_index": 0
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            13
          ],
          "slot_index": 1
        },
        {
          "name": "empty_latent",
          "type": "LATENT",
          "links": [
            14
          ],
          "slot_index": 2
        }
      ],
      "properties": {
        "Node name for S&R": "ICLightConditioning"
      },
      "widgets_values": [
        0.18215
      ]
    },
    {
      "id": 3,
      "type": "KSampler",
      "pos": [
        600,
        360
      ],
      "size": [
        260,
        120
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 11
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 12
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 13
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 14
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            15
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        55,
        "fixed",
        25,
        2.0,
        "dpmpp_2m",
        "karras",
        1.0
      ]
    },
    {
      "id": 8,
      "type": "VAEDecode",
      "pos": [
        900,
        360
      ],
      "size": [
        260,
        120
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 15
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 16
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            17
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": []
    },
    {
      "id": 9,
      "type": "SaveImage",
      "pos": [
        1200,
        360
      ],
      "size": [
        260,
        120
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 17
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "iclight_relight"
      ]
    }
  ],
  "links": [
    [
      1,
      4,
      0,
      10,
      0,
      "MODEL"
    ],
    [
      2,
      1,
      0,
      11,
      0,
      "IMAGE"
    ],
    [
      3,
      11,
      0,
      12,
      0,
      "IMAGE"
    ],
    [
      4,
      4,
      2,
      12,
      1,
      "VAE"
    ],
    [
      5,
      4,
      1,
      6,
      0,
      "CLIP"
    ],
    [
      6,
      4,
      1,
      7,
      0,
      "CLIP"
    ],
    [
      7,
      6,
      0,
      13,
      0,
      "CONDITIONING"
    ],
    [
      8,
      7,
      0,
      13,
      1,
      "CONDITIONING"
    ],
    [
      9,
      4,
      2,
      13,
      2,
      "VAE"
    ],
    [
      10,
      12,
      0,
      13,
      3,
      "LATENT"
    ],
    [
      11,
      10,
      0,
      3,
      0,
      "MODEL"
    ],
    [
      12,
      13,
      0,
      3,
      1,
      "CONDITIONING"
    ],
    [
      13,
      13,
      1,
      3,
      2,
      "CONDITIONING"
    ],
    [
      14,
      13,
      2,
      3,
      3,
      "LATENT"
    ],
    [
      15,
      3,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      16,
      4,
      2,
      8,
      1,
      "VAE"
    ],
    [
      17,
      8,
      0,
      9,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {},
  "version": 0.4
}