{
  "id": "d8f94747-a5a1-4566-bd84-6b3ca6879516",
  "revision": 0,
  "last_node_id": 150,
  "last_link_id": 236,
  "nodes": [
    {
      "id": 120,
      "type": "Note",
      "pos": [
        874.3525925508615,
        -123.67061675290316
      ],
      "size": [
        441.0268580367202,
        110.5394440270473
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "Use active, clear action verbs (like change, replace, add, or make)"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 109,
      "type": "Krea2EditModelPatch",
      "pos": [
        885.4587267551555,
        37.99240378540544
      ],
      "size": [
        294.5767578125,
        82.66665649414062
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 128
        },
        {
          "name": "source_latent",
          "type": "LATENT",
          "link": 129
        },
        {
          "name": "source_latent_b",
          "shape": 7,
          "type": "LATENT",
          "link": 235
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            132
          ]
        }
      ],
      "properties": {
        "aux_id": "lbouaraba/comfyui-krea2edit",
        "ver": "17af88332728c97ab5c7d26296b2cae59c935976",
        "Node name for S&R": "Krea2EditModelPatch",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": []
    },
    {
      "id": 126,
      "type": "EmptySD3LatentImage",
      "pos": [
        1138.7003596584232,
        570.6656338962172
      ],
      "size": [
        270,
        150
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 220
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 221
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            155
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.26.0",
        "Node name for S&R": "EmptySD3LatentImage",
        "ue_properties": {
          "widget_ue_connectable": {
            "width": true,
            "height": true,
            "batch_size": true
          },
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        1024,
        1024,
        1
      ]
    },
    {
      "id": 113,
      "type": "ConditioningZeroOut",
      "pos": [
        1468.8337949865904,
        626.4160735585247
      ],
      "size": [
        204.134765625,
        26
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 133
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            226
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "Node name for S&R": "ConditioningZeroOut",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": []
    },
    {
      "id": 144,
      "type": "Krea2EditGroundedEncode",
      "pos": [
        1453.810203991538,
        -50.28736663676475
      ],
      "size": [
        546.6667036576705,
        287.27272727272725
      ],
      "flags": {
        "collapsed": true
      },
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 223
        },
        {
          "name": "image",
          "shape": 7,
          "type": "IMAGE",
          "link": 225
        },
        {
          "name": "image_b",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": []
        }
      ],
      "properties": {
        "aux_id": "lbouaraba/comfyui-krea2edit",
        "ver": "17af88332728c97ab5c7d26296b2cae59c935976",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        },
        "Node name for S&R": "Krea2EditGroundedEncode"
      },
      "widgets_values": [
        "",
        768
      ]
    },
    {
      "id": 146,
      "type": "VAEUtils_VAEDecodeTiled",
      "pos": [
        1836.6775803829755,
        98.75694778790837
      ],
      "size": [
        270,
        198
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 228
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 229
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            230
          ]
        }
      ],
      "properties": {
        "aux_id": "spacepxl/ComfyUI-VAE-Utils",
        "ver": "d69e7afaa9edc3cd99096dc063ec37e71b2d1184",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {}
        },
        "Node name for S&R": "VAEUtils_VAEDecodeTiled"
      },
      "widgets_values": [
        -1,
        false,
        512,
        64,
        4096,
        64
      ]
    },
    {
      "id": 140,
      "type": "GetImageSize",
      "pos": [
        664.3840240148695,
        698.9572254372846
      ],
      "size": [
        210,
        160.39695318961947
      ],
      "flags": {
        "collapsed": true
      },
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 222
        }
      ],
      "outputs": [
        {
          "name": "width",
          "type": "INT",
          "links": [
            220
          ]
        },
        {
          "name": "height",
          "type": "INT",
          "links": [
            221
          ]
        },
        {
          "name": "batch_size",
          "type": "INT",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "Node name for S&R": "GetImageSize",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": []
    },
    {
      "id": 108,
      "type": "VAEEncode",
      "pos": [
        787.3455773638833,
        555.3619856490168
      ],
      "size": [
        182.5744748133452,
        81.06132680432938
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 176
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 127
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            129
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "Node name for S&R": "VAEEncode",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": []
    },
    {
      "id": 150,
      "type": "PreviewImage",
      "pos": [
        1239.3651647602665,
        819.5109753645396
      ],
      "size": [
        294.82097026730366,
        421.75764301394634
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 236
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        },
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 125,
      "type": "PreviewImage",
      "pos": [
        874.0398200234887,
        825.0646671635977
      ],
      "size": [
        294.82097026730366,
        421.75764301394634
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 172
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "Node name for S&R": "PreviewImage",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": []
    },
    {
      "id": 73,
      "type": "UNETLoader",
      "pos": [
        263.2859385504199,
        -147.72511695142384
      ],
      "size": [
        462.07164996695525,
        100.21367951039184
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            120
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "Node name for S&R": "UNETLoader",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "krea2_turbo_fp8_scaled.safetensors",
        "default"
      ]
    },
    {
      "id": 129,
      "type": "ResizeImageMaskNode",
      "pos": [
        414.9230348062234,
        502.1322501053092
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "input",
          "type": "IMAGE,MASK",
          "link": 205
        }
      ],
      "outputs": [
        {
          "name": "resized",
          "type": "IMAGE",
          "links": [
            172,
            175,
            176,
            222,
            225
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.26.0",
        "Node name for S&R": "ResizeImageMaskNode",
        "ue_properties": {
          "widget_ue_connectable": {
            "resize_type": true,
            "resize_type.width": true,
            "resize_type.height": true,
            "resize_type.crop": true,
            "scale_method": true
          },
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "scale height",
        1280,
        "area"
      ]
    },
    {
      "id": 147,
      "type": "ResizeImageMaskNode",
      "pos": [
        280.3697655968386,
        978.3744029183829
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "input",
          "type": "IMAGE,MASK",
          "link": 231
        }
      ],
      "outputs": [
        {
          "name": "resized",
          "type": "IMAGE",
          "links": [
            232,
            234,
            236
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.26.0",
        "ue_properties": {
          "widget_ue_connectable": {
            "resize_type": true,
            "resize_type.width": true,
            "resize_type.height": true,
            "resize_type.crop": true,
            "scale_method": true
          },
          "version": "7.8",
          "input_ue_unconnectable": {}
        },
        "Node name for S&R": "ResizeImageMaskNode"
      },
      "widgets_values": [
        "scale height",
        1280,
        "area"
      ]
    },
    {
      "id": 149,
      "type": "VAEEncode",
      "pos": [
        611.666251466727,
        1020.9924134653827
      ],
      "size": [
        182.5744748133452,
        81.06132680432938
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 232
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 233
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            235
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        },
        "Node name for S&R": "VAEEncode"
      },
      "widgets_values": []
    },
    {
      "id": 112,
      "type": "KSampler",
      "pos": [
        1463.1660280653346,
        87.70509788803872
      ],
      "size": [
        324.8533825683594,
        367.6733087158203
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 132
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 135
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 226
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 155
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            228
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "Node name for S&R": "KSampler",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        371588932622016,
        "randomize",
        8,
        1,
        "euler",
        "simple",
        1
      ]
    },
    {
      "id": 74,
      "type": "CLIPLoader",
      "pos": [
        235.33183594788153,
        302.4984835347771
      ],
      "size": [
        431.4325405152375,
        130.7933884297521
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            130,
            223
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "Node name for S&R": "CLIPLoader",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "qwen3vl_4b_fp8_scaled.safetensors",
        "krea2",
        "default"
      ]
    },
    {
      "id": 104,
      "type": "LoadImage",
      "pos": [
        -335.9852655430527,
        485.00481902736203
      ],
      "size": [
        465.10551940917975,
        563.26
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            205
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "Node name for S&R": "LoadImage",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "asdsad.png",
        "image"
      ]
    },
    {
      "id": 110,
      "type": "Krea2EditGroundedEncode",
      "pos": [
        844.0427067348073,
        200.7649980659008
      ],
      "size": [
        546.6667036576705,
        287.27272727272725
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 130
        },
        {
          "name": "image",
          "shape": 7,
          "type": "IMAGE",
          "link": 175
        },
        {
          "name": "image_b",
          "shape": 7,
          "type": "IMAGE",
          "link": 234
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            133,
            135
          ]
        }
      ],
      "properties": {
        "aux_id": "lbouaraba/comfyui-krea2edit",
        "ver": "17af88332728c97ab5c7d26296b2cae59c935976",
        "Node name for S&R": "Krea2EditGroundedEncode",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "completely replace the bright blue daytime sky in image A with the dark night sky and the glowing moon from image B, change the lighting of the jacuzzi and balcony to dark nighttime shadows with soft silver highlights, keep the circular jacuzzi shape exactly the same",
        512
      ]
    },
    {
      "id": 145,
      "type": "SaveImage",
      "pos": [
        2136.2751764950863,
        -144.54557176092658
      ],
      "size": [
        684.5499355990751,
        764.954253025386
      ],
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 230
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        },
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "ComfyUI/Kera2Edit"
      ]
    },
    {
      "id": 75,
      "type": "VAELoader",
      "pos": [
        357.18082919013574,
        771.9509977516547
      ],
      "size": [
        440.39072581290384,
        88.62642436826877
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            127,
            229,
            233
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "Node name for S&R": "VAELoader",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "Wan2.1_VAE_upscale2x_imageonly_real_v1.safetensors"
      ]
    },
    {
      "id": 148,
      "type": "LoadImage",
      "pos": [
        -300.6758464590472,
        1113.115543323056
      ],
      "size": [
        465.10551940917975,
        563.26
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            231
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        },
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "photo-1507502707541-f369a3b18502 (1).jpg",
        "image"
      ]
    },
    {
      "id": 102,
      "type": "LoraLoaderModelOnly",
      "pos": [
        231.21981021407854,
        36.86964467289377
      ],
      "size": [
        483.7741214972882,
        123.87324460872924
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 120
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            128
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.27.1",
        "Node name for S&R": "LoraLoaderModelOnly",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "krea2_identity_edit_v1_1.safetensors",
        0.75
      ]
    }
  ],
  "links": [
    [
      120,
      73,
      0,
      102,
      0,
      "MODEL"
    ],
    [
      127,
      75,
      0,
      108,
      1,
      "VAE"
    ],
    [
      128,
      102,
      0,
      109,
      0,
      "MODEL"
    ],
    [
      129,
      108,
      0,
      109,
      1,
      "LATENT"
    ],
    [
      130,
      74,
      0,
      110,
      0,
      "CLIP"
    ],
    [
      132,
      109,
      0,
      112,
      0,
      "MODEL"
    ],
    [
      133,
      110,
      0,
      113,
      0,
      "CONDITIONING"
    ],
    [
      135,
      110,
      0,
      112,
      1,
      "CONDITIONING"
    ],
    [
      155,
      126,
      0,
      112,
      3,
      "LATENT"
    ],
    [
      172,
      129,
      0,
      125,
      0,
      "IMAGE"
    ],
    [
      175,
      129,
      0,
      110,
      1,
      "IMAGE"
    ],
    [
      176,
      129,
      0,
      108,
      0,
      "IMAGE"
    ],
    [
      205,
      104,
      0,
      129,
      0,
      "IMAGE"
    ],
    [
      220,
      140,
      0,
      126,
      0,
      "INT"
    ],
    [
      221,
      140,
      1,
      126,
      1,
      "INT"
    ],
    [
      222,
      129,
      0,
      140,
      0,
      "IMAGE"
    ],
    [
      223,
      74,
      0,
      144,
      0,
      "CLIP"
    ],
    [
      225,
      129,
      0,
      144,
      1,
      "IMAGE"
    ],
    [
      226,
      113,
      0,
      112,
      2,
      "CONDITIONING"
    ],
    [
      228,
      112,
      0,
      146,
      0,
      "LATENT"
    ],
    [
      229,
      75,
      0,
      146,
      1,
      "VAE"
    ],
    [
      230,
      146,
      0,
      145,
      0,
      "IMAGE"
    ],
    [
      231,
      148,
      0,
      147,
      0,
      "IMAGE"
    ],
    [
      232,
      147,
      0,
      149,
      0,
      "IMAGE"
    ],
    [
      233,
      75,
      0,
      149,
      1,
      "VAE"
    ],
    [
      234,
      147,
      0,
      110,
      2,
      "IMAGE"
    ],
    [
      235,
      149,
      0,
      109,
      2,
      "LATENT"
    ],
    [
      236,
      147,
      0,
      150,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.5754811330319712,
      "offset": [
        1151.2542082174837,
        381.70840836104395
      ]
    },
    "ue_links": [],
    "links_added_by_ue": [],
    "frontendVersion": "1.45.20",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}