{
  "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb",
  "revision": 0,
  "last_node_id": 109,
  "last_link_id": 205,
  "nodes": [
    {
      "id": 39,
      "type": "VAELoader",
      "pos": [
        -616.6441650390625,
        267.3159484863281
      ],
      "size": [
        330,
        60
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "slot_index": 0,
          "links": [
            76,
            168
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.48",
        "Node name for S&R": "VAELoader",
        "models": [
          {
            "name": "qwen_image_vae.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors",
            "directory": "vae"
          }
        ],
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "qwen_image_vae.safetensors"
      ]
    },
    {
      "id": 108,
      "type": "ReferenceLatent",
      "pos": [
        -56.97652816772461,
        420.1061706542969
      ],
      "size": [
        197.712890625,
        46
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 202
        },
        {
          "name": "latent",
          "shape": 7,
          "type": "LATENT",
          "link": 201
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            203,
            204
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.50",
        "Node name for S&R": "ReferenceLatent"
      },
      "widgets_values": []
    },
    {
      "id": 107,
      "type": "ConditioningZeroOut",
      "pos": [
        -56.97652816772461,
        520.1063232421875
      ],
      "size": [
        197.712890625,
        26
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 204
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            198
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.50",
        "Node name for S&R": "ConditioningZeroOut"
      },
      "widgets_values": []
    },
    {
      "id": 101,
      "type": "UnetLoaderGGUF",
      "pos": [
        -606.6441650390625,
        -12.684345245361328
      ],
      "size": [
        320,
        60
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            188
          ]
        }
      ],
      "properties": {
        "cnr_id": "ComfyUI-GGUF",
        "ver": "0ca2aeb797d20b45e75ba25aa23d37a36954b9e6",
        "Node name for S&R": "UnetLoaderGGUF"
      },
      "widgets_values": [
        "Qwen_Image_Edit-Q4_K_M.gguf"
      ]
    },
    {
      "id": 93,
      "type": "ImageScaleToTotalPixels",
      "pos": [
        -431.16925048828125,
        884.0864868164062
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 177
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            178,
            179,
            205
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.50",
        "Node name for S&R": "ImageScaleToTotalPixels",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "ue_properties": {
          "widget_ue_connectable": {
            "upscale_method": true,
            "megapixels": true
          }
        }
      },
      "widgets_values": [
        "lanczos",
        1
      ]
    },
    {
      "id": 88,
      "type": "VAEEncode",
      "pos": [
        -66.43827819824219,
        643.668701171875
      ],
      "size": [
        140,
        46
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 178
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 168
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            200,
            201
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.50",
        "Node name for S&R": "VAEEncode",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "ue_properties": {
          "widget_ue_connectable": {}
        }
      },
      "widgets_values": []
    },
    {
      "id": 109,
      "type": "PreviewImage",
      "pos": [
        5.6126203536987305,
        749.4707641601562
      ],
      "size": [
        140,
        246
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 205
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.50",
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 102,
      "type": "PathchSageAttentionKJ",
      "pos": [
        -196.9697723388672,
        -85.1628646850586
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 188
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            189
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "876a6dd2929d88ec35c09c7cddc6c360f4b27013",
        "Node name for S&R": "PathchSageAttentionKJ"
      },
      "widgets_values": [
        "auto"
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 103,
      "type": "ModelPatchTorchSettings",
      "pos": [
        98.9437255859375,
        -81.61471557617188
      ],
      "size": [
        307.443359375,
        58
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 189
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            190
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "876a6dd2929d88ec35c09c7cddc6c360f4b27013",
        "Node name for S&R": "ModelPatchTorchSettings"
      },
      "widgets_values": [
        true
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 89,
      "type": "LoraLoaderModelOnly",
      "pos": [
        2.0531837940216064,
        39.461795806884766
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 190
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            185
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.50",
        "Node name for S&R": "LoraLoaderModelOnly",
        "models": [
          {
            "name": "Qwen-Image-Lightning-4steps-V1.0.safetensors",
            "url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0.safetensors",
            "directory": "loras"
          }
        ],
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "ue_properties": {
          "widget_ue_connectable": {
            "lora_name": true,
            "strength_model": true
          }
        }
      },
      "widgets_values": [
        "Qwen-Image-Lightning-4steps-V1.0.safetensors",
        1
      ]
    },
    {
      "id": 66,
      "type": "ModelSamplingAuraFlow",
      "pos": [
        413.9870910644531,
        27.09632110595703
      ],
      "size": [
        290,
        60
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 185
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            141
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.48",
        "Node name for S&R": "ModelSamplingAuraFlow",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        3
      ]
    },
    {
      "id": 75,
      "type": "CFGNorm",
      "pos": [
        418.7178649902344,
        133.54820251464844
      ],
      "size": [
        290,
        60
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 141
        }
      ],
      "outputs": [
        {
          "name": "patched_model",
          "type": "MODEL",
          "links": [
            186
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.50",
        "Node name for S&R": "CFGNorm",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "ue_properties": {
          "widget_ue_connectable": {
            "strength": true
          }
        }
      },
      "widgets_values": [
        1
      ]
    },
    {
      "id": 8,
      "type": "VAEDecode",
      "pos": [
        803.6608276367188,
        23.548154830932617
      ],
      "size": [
        210,
        46
      ],
      "flags": {
        "collapsed": false
      },
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 128
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 76
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            110
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.48",
        "Node name for S&R": "VAEDecode",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 60,
      "type": "SaveImage",
      "pos": [
        798.9299926757812,
        134.73757934570312
      ],
      "size": [
        580,
        650
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 110
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.48",
        "Node name for S&R": "SaveImage",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "%date:yyyy-MM-dd%/qwenedit"
      ]
    },
    {
      "id": 76,
      "type": "TextEncodeQwenImageEdit",
      "pos": [
        -66.97652435302734,
        220.10630798339844
      ],
      "size": [
        360,
        150
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 191
        },
        {
          "name": "vae",
          "shape": 7,
          "type": "VAE",
          "link": null
        },
        {
          "name": "image",
          "shape": 7,
          "type": "IMAGE",
          "link": 179
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            202
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.50",
        "Node name for S&R": "TextEncodeQwenImageEdit",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "ue_properties": {
          "widget_ue_connectable": {
            "prompt": true
          }
        }
      },
      "widgets_values": [
        "Write \"Busted!\" on the woman green top. realistic"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 78,
      "type": "LoadImage",
      "pos": [
        -584.278564453125,
        446.7771911621094
      ],
      "size": [
        274.080078125,
        314.0000305175781
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            177
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.50",
        "Node name for S&R": "LoadImage",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "ue_properties": {
          "widget_ue_connectable": {
            "image": true,
            "upload": true
          }
        }
      },
      "widgets_values": [
        "prompthero-prompt-785f8f32a7c.webp",
        "image"
      ]
    },
    {
      "id": 3,
      "type": "KSampler",
      "pos": [
        417.5350341796875,
        283.7608642578125
      ],
      "size": [
        300,
        474
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 186
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 203
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 198
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 200
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            128
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.48",
        "Node name for S&R": "KSampler",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        495395694579093,
        "randomize",
        4,
        1,
        "euler",
        "normal",
        1
      ]
    },
    {
      "id": 105,
      "type": "CLIPLoaderGGUF",
      "pos": [
        -606.6441650390625,
        117.31562805175781
      ],
      "size": [
        320,
        82
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            191
          ]
        }
      ],
      "properties": {
        "cnr_id": "ComfyUI-GGUF",
        "ver": "0ca2aeb797d20b45e75ba25aa23d37a36954b9e6",
        "Node name for S&R": "CLIPLoaderGGUF"
      },
      "widgets_values": [
        "Qwen2.5-VL-7B-Instruct-Q4_K_M.gguf",
        "qwen_image"
      ]
    }
  ],
  "links": [
    [
      76,
      39,
      0,
      8,
      1,
      "VAE"
    ],
    [
      110,
      8,
      0,
      60,
      0,
      "IMAGE"
    ],
    [
      128,
      3,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      141,
      66,
      0,
      75,
      0,
      "MODEL"
    ],
    [
      168,
      39,
      0,
      88,
      1,
      "VAE"
    ],
    [
      177,
      78,
      0,
      93,
      0,
      "IMAGE"
    ],
    [
      178,
      93,
      0,
      88,
      0,
      "IMAGE"
    ],
    [
      179,
      93,
      0,
      76,
      2,
      "IMAGE"
    ],
    [
      185,
      89,
      0,
      66,
      0,
      "MODEL"
    ],
    [
      186,
      75,
      0,
      3,
      0,
      "MODEL"
    ],
    [
      188,
      101,
      0,
      102,
      0,
      "MODEL"
    ],
    [
      189,
      102,
      0,
      103,
      0,
      "MODEL"
    ],
    [
      190,
      103,
      0,
      89,
      0,
      "MODEL"
    ],
    [
      191,
      105,
      0,
      76,
      0,
      "CLIP"
    ],
    [
      198,
      107,
      0,
      3,
      2,
      "CONDITIONING"
    ],
    [
      200,
      88,
      0,
      3,
      3,
      "LATENT"
    ],
    [
      201,
      88,
      0,
      108,
      1,
      "LATENT"
    ],
    [
      202,
      76,
      0,
      108,
      0,
      "CONDITIONING"
    ],
    [
      203,
      108,
      0,
      3,
      1,
      "CONDITIONING"
    ],
    [
      204,
      108,
      0,
      107,
      0,
      "CONDITIONING"
    ],
    [
      205,
      93,
      0,
      109,
      0,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Step1 - Load models",
      "bounding": [
        -636.6441040039062,
        -102.68428802490234,
        370,
        450
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 2,
      "title": "Step 2 - Upload image for editing",
      "bounding": [
        -634.2784423828125,
        376.7771911621094,
        370,
        400
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 3,
      "title": "Step 3 - Prompt",
      "bounding": [
        -76.97655487060547,
        150.10630798339844,
        380,
        433.6000061035156
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.7686421116384133,
      "offset": [
        1090.7004656064803,
        233.9407209757231
      ]
    },
    "frontendVersion": "1.23.4",
    "ue_links": [],
    "links_added_by_ue": [],
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}