{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {
          "workflowRendererVersion": "LG"
        },
        "groups": [
          {
            "bounding": [
              350,
              -30,
              380,
              433.6000061035156
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 3,
            "title": "Step 3 - Prompt"
          },
          {
            "bounding": [
              -50,
              -40,
              370,
              450
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 1,
            "title": "Step1 - Load models"
          },
          {
            "bounding": [
              810,
              -200,
              320,
              293.6
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 4,
            "title": "Original"
          },
          {
            "bounding": [
              810,
              130,
              320,
              423.6
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 5,
            "title": "4steps lightning LoRA"
          },
          {
            "bounding": [
              1210,
              -110,
              290,
              551.6
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 6,
            "title": "Temporarily disabled"
          }
        ],
        "id": "74a8e1e2-9cb8-4112-978e-06ce1b5793f1",
        "inputNode": {
          "bounding": [
            -370,
            350,
            151.744140625,
            180
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "2810a62f-1da1-4ab0-90d0-abf19296b210",
            "linkIds": [
              180,
              178,
              179
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              -238.255859375,
              370
            ],
            "shape": 7,
            "type": "IMAGE"
          },
          {
            "id": "f0ff7fc6-1e80-4beb-9f36-51c1c45e93d6",
            "linkIds": [
              188
            ],
            "name": "prompt",
            "pos": [
              -238.255859375,
              390
            ],
            "type": "STRING"
          },
          {
            "id": "c5454a2c-70f7-4921-8ad9-c235df92f1ac",
            "linkIds": [
              205
            ],
            "name": "unet_name",
            "pos": [
              -238.255859375,
              410
            ],
            "type": "COMBO"
          },
          {
            "id": "05eab32e-d1e9-48b5-9a8c-08e3a44b3509",
            "linkIds": [
              206
            ],
            "name": "clip_name",
            "pos": [
              -238.255859375,
              430
            ],
            "type": "COMBO"
          },
          {
            "id": "c1e3090b-ca99-478f-8214-8157e5f3905e",
            "linkIds": [
              207
            ],
            "name": "vae_name",
            "pos": [
              -238.255859375,
              450
            ],
            "type": "COMBO"
          },
          {
            "id": "769fc7dd-0646-4fa0-8eb1-d50ff83a3221",
            "linkIds": [
              208
            ],
            "name": "lora_name",
            "pos": [
              -238.255859375,
              470
            ],
            "type": "COMBO"
          },
          {
            "id": "011d0c57-901f-4692-a15e-bf1b7c6318fd",
            "label": "enable_turbo_mode",
            "linkIds": [
              209
            ],
            "name": "value",
            "pos": [
              -238.255859375,
              490
            ],
            "type": "BOOLEAN"
          }
        ],
        "links": [
          {
            "id": 132,
            "origin_id": 38,
            "origin_slot": 0,
            "target_id": 77,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 161,
            "origin_id": 39,
            "origin_slot": 0,
            "target_id": 77,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 141,
            "origin_id": 66,
            "origin_slot": 0,
            "target_id": 75,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 128,
            "origin_id": 3,
            "origin_slot": 0,
            "target_id": 8,
            "target_slot": 0,
            "type": "LATENT"
          },
          {
            "id": 76,
            "origin_id": 39,
            "origin_slot": 0,
            "target_id": 8,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 168,
            "origin_id": 39,
            "origin_slot": 0,
            "target_id": 88,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 131,
            "origin_id": 38,
            "origin_slot": 0,
            "target_id": 76,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 162,
            "origin_id": 39,
            "origin_slot": 0,
            "target_id": 76,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 186,
            "origin_id": 75,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 164,
            "origin_id": 76,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 163,
            "origin_id": 77,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 170,
            "origin_id": 88,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 3,
            "type": "LATENT"
          },
          {
            "id": 184,
            "origin_id": 37,
            "origin_slot": 0,
            "target_id": 89,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 180,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 77,
            "target_slot": 2,
            "type": "IMAGE"
          },
          {
            "id": 178,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 88,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 179,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 76,
            "target_slot": 2,
            "type": "IMAGE"
          },
          {
            "id": 110,
            "origin_id": 8,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 188,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 76,
            "target_slot": 3,
            "type": "STRING"
          },
          {
            "id": 191,
            "origin_id": 89,
            "origin_slot": 0,
            "target_id": 108,
            "target_slot": 1,
            "type": "MODEL"
          },
          {
            "id": 192,
            "origin_id": 37,
            "origin_slot": 0,
            "target_id": 108,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 194,
            "origin_id": 105,
            "origin_slot": 0,
            "target_id": 109,
            "target_slot": 1,
            "type": "FLOAT"
          },
          {
            "id": 196,
            "origin_id": 106,
            "origin_slot": 0,
            "target_id": 110,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 197,
            "origin_id": 103,
            "origin_slot": 0,
            "target_id": 110,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 198,
            "origin_id": 107,
            "origin_slot": 0,
            "target_id": 109,
            "target_slot": 0,
            "type": "FLOAT"
          },
          {
            "id": 201,
            "origin_id": 111,
            "origin_slot": 0,
            "target_id": 108,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 202,
            "origin_id": 111,
            "origin_slot": 0,
            "target_id": 110,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 203,
            "origin_id": 111,
            "origin_slot": 0,
            "target_id": 109,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 205,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 37,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 206,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 38,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 207,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 39,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 208,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 89,
            "target_slot": 1,
            "type": "COMBO"
          },
          {
            "id": 209,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 111,
            "target_slot": 0,
            "type": "BOOLEAN"
          },
          {
            "id": 210,
            "origin_id": 109,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 5,
            "type": "FLOAT"
          },
          {
            "id": 211,
            "origin_id": 110,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 4,
            "type": "INT"
          },
          {
            "id": 212,
            "origin_id": 108,
            "origin_slot": 0,
            "target_id": 66,
            "target_slot": 0,
            "type": "MODEL"
          }
        ],
        "name": "Qwen-Image-Edit",
        "nodes": [
          {
            "flags": {},
            "id": 39,
            "inputs": [
              {
                "link": 207,
                "localized_name": "vae_name",
                "name": "vae_name",
                "type": "COMBO",
                "widget": {
                  "name": "vae_name"
                }
              }
            ],
            "mode": 0,
            "order": 12,
            "outputs": [
              {
                "links": [
                  76,
                  161,
                  162,
                  168
                ],
                "localized_name": "VAE",
                "name": "VAE",
                "slot_index": 0,
                "type": "VAE"
              }
            ],
            "pos": [
              -30,
              330
            ],
            "properties": {
              "Node name for S&R": "VAELoader",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "models": [
                {
                  "directory": "vae",
                  "name": "qwen_image_vae.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors"
                }
              ],
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.48",
              "widget_ue_connectable": {}
            },
            "size": [
              330,
              60
            ],
            "type": "VAELoader",
            "widgets_values": [
              "qwen_image_vae.safetensors"
            ]
          },
          {
            "bgcolor": "#335",
            "color": "#223",
            "flags": {},
            "id": 77,
            "inputs": [
              {
                "link": 132,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 161,
                "localized_name": "vae",
                "name": "vae",
                "shape": 7,
                "type": "VAE"
              },
              {
                "link": 180,
                "localized_name": "image",
                "name": "image",
                "shape": 7,
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 16,
            "outputs": [
              {
                "links": [
                  163
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              360,
              240
            ],
            "properties": {
              "Node name for S&R": "TextEncodeQwenImageEdit",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ue_properties": {
                "widget_ue_connectable": {
                  "prompt": true
                }
              },
              "ver": "0.3.50"
            },
            "size": [
              360,
              150
            ],
            "type": "TextEncodeQwenImageEdit",
            "widgets_values": [
              ""
            ]
          },
          {
            "flags": {},
            "id": 75,
            "inputs": [
              {
                "link": 141,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              }
            ],
            "mode": 0,
            "order": 14,
            "outputs": [
              {
                "links": [
                  186
                ],
                "localized_name": "patched_model",
                "name": "patched_model",
                "type": "MODEL"
              }
            ],
            "pos": [
              1640,
              80
            ],
            "properties": {
              "Node name for S&R": "CFGNorm",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ue_properties": {
                "widget_ue_connectable": {
                  "strength": true
                }
              },
              "ver": "0.3.50"
            },
            "size": [
              290,
              60
            ],
            "type": "CFGNorm",
            "widgets_values": [
              1
            ]
          },
          {
            "flags": {},
            "id": 66,
            "inputs": [
              {
                "link": 212,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              }
            ],
            "mode": 0,
            "order": 13,
            "outputs": [
              {
                "links": [
                  141
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              1640,
              -30
            ],
            "properties": {
              "Node name for S&R": "ModelSamplingAuraFlow",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.48",
              "widget_ue_connectable": {}
            },
            "size": [
              290,
              60
            ],
            "type": "ModelSamplingAuraFlow",
            "widgets_values": [
              3
            ]
          },
          {
            "flags": {
              "collapsed": false
            },
            "id": 8,
            "inputs": [
              {
                "link": 128,
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              },
              {
                "link": 76,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              }
            ],
            "mode": 0,
            "order": 9,
            "outputs": [
              {
                "links": [
                  110
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "slot_index": 0,
                "type": "IMAGE"
              }
            ],
            "pos": [
              1980,
              -30
            ],
            "properties": {
              "Node name for S&R": "VAEDecode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.48",
              "widget_ue_connectable": {}
            },
            "size": [
              210,
              46
            ],
            "type": "VAEDecode",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 38,
            "inputs": [
              {
                "link": 206,
                "localized_name": "clip_name",
                "name": "clip_name",
                "type": "COMBO",
                "widget": {
                  "name": "clip_name"
                }
              }
            ],
            "mode": 0,
            "order": 11,
            "outputs": [
              {
                "links": [
                  131,
                  132
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "slot_index": 0,
                "type": "CLIP"
              }
            ],
            "pos": [
              -30,
              170
            ],
            "properties": {
              "Node name for S&R": "CLIPLoader",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "models": [
                {
                  "directory": "text_encoders",
                  "name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors"
                }
              ],
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.48",
              "widget_ue_connectable": {}
            },
            "size": [
              330,
              110
            ],
            "type": "CLIPLoader",
            "widgets_values": [
              "qwen_2.5_vl_7b_fp8_scaled.safetensors",
              "qwen_image",
              "default"
            ]
          },
          {
            "bgcolor": "#353",
            "color": "#232",
            "flags": {},
            "id": 76,
            "inputs": [
              {
                "link": 131,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 162,
                "localized_name": "vae",
                "name": "vae",
                "shape": 7,
                "type": "VAE"
              },
              {
                "link": 179,
                "localized_name": "image",
                "name": "image",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 188,
                "localized_name": "prompt",
                "name": "prompt",
                "type": "STRING",
                "widget": {
                  "name": "prompt"
                }
              }
            ],
            "mode": 0,
            "order": 15,
            "outputs": [
              {
                "links": [
                  164
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              360,
              40
            ],
            "properties": {
              "Node name for S&R": "TextEncodeQwenImageEdit",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ue_properties": {
                "widget_ue_connectable": {
                  "prompt": true
                }
              },
              "ver": "0.3.50"
            },
            "size": [
              360,
              150
            ],
            "type": "TextEncodeQwenImageEdit",
            "widgets_values": [
              "Remove all UI text elements from the image. Keep the feeling that the characters and scene are in water. Also, remove the green UI elements at the bottom."
            ]
          },
          {
            "flags": {},
            "id": 88,
            "inputs": [
              {
                "link": 178,
                "localized_name": "pixels",
                "name": "pixels",
                "type": "IMAGE"
              },
              {
                "link": 168,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              }
            ],
            "mode": 0,
            "order": 17,
            "outputs": [
              {
                "links": [
                  170
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "type": "LATENT"
              }
            ],
            "pos": [
              -20,
              500
            ],
            "properties": {
              "Node name for S&R": "VAEEncode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ue_properties": {
                "widget_ue_connectable": {}
              },
              "ver": "0.3.50"
            },
            "size": [
              140,
              46
            ],
            "type": "VAEEncode",
            "widgets_values": []
          },
          {
            "bgcolor": "#653",
            "color": "#432",
            "flags": {},
            "id": 97,
            "inputs": [],
            "mode": 0,
            "order": 0,
            "outputs": [],
            "pos": [
              1640,
              730
            ],
            "properties": {},
            "size": [
              300,
              190
            ],
            "title": "KSampler settings",
            "type": "MarkdownNote",
            "widgets_values": [
              "You can test and find the best setting by yourself. The following table is for reference.\n\n| Model            | Steps | CFG |\n|---------------------|---------------|---------------|\n| Offical             | 50               | 4.0               \n| comfy             | 20                | 2.5               |\n| fp8_e4m3fn + 4steps LoRA    | 4               | 1.0               |\n"
            ]
          },
          {
            "flags": {},
            "id": 89,
            "inputs": [
              {
                "link": 184,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 208,
                "localized_name": "lora_name",
                "name": "lora_name",
                "type": "COMBO",
                "widget": {
                  "name": "lora_name"
                }
              }
            ],
            "mode": 0,
            "order": 18,
            "outputs": [
              {
                "links": [
                  191
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              820,
              200
            ],
            "properties": {
              "Node name for S&R": "LoraLoaderModelOnly",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "models": [
                {
                  "directory": "loras",
                  "name": "Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors",
                  "url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors"
                }
              ],
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ue_properties": {
                "widget_ue_connectable": {
                  "lora_name": true,
                  "strength_model": true
                }
              },
              "ver": "0.3.50"
            },
            "size": [
              300,
              82
            ],
            "type": "LoraLoaderModelOnly",
            "widgets_values": [
              "Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors",
              1
            ]
          },
          {
            "flags": {},
            "id": 37,
            "inputs": [
              {
                "link": 205,
                "localized_name": "unet_name",
                "name": "unet_name",
                "type": "COMBO",
                "widget": {
                  "name": "unet_name"
                }
              }
            ],
            "mode": 0,
            "order": 10,
            "outputs": [
              {
                "links": [
                  184,
                  192
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "slot_index": 0,
                "type": "MODEL"
              }
            ],
            "pos": [
              -30,
              30
            ],
            "properties": {
              "Node name for S&R": "UNETLoader",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "models": [
                {
                  "directory": "diffusion_models",
                  "name": "qwen_image_edit_fp8_e4m3fn.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_fp8_e4m3fn.safetensors"
                }
              ],
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.48",
              "widget_ue_connectable": {}
            },
            "size": [
              330,
              90
            ],
            "type": "UNETLoader",
            "widgets_values": [
              "qwen_image_edit_fp8_e4m3fn.safetensors",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 105,
            "inputs": [],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  194
                ],
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              }
            ],
            "pos": [
              820,
              480
            ],
            "properties": {
              "Node name for S&R": "PrimitiveFloat",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.16.4"
            },
            "size": [
              300,
              60
            ],
            "title": "CFG",
            "type": "PrimitiveFloat",
            "widgets_values": [
              1
            ]
          },
          {
            "flags": {},
            "id": 106,
            "inputs": [],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  196
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              820,
              -130
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.16.4"
            },
            "size": [
              300,
              90
            ],
            "title": "Steps",
            "type": "PrimitiveInt",
            "widgets_values": [
              20,
              "fixed"
            ]
          },
          {
            "flags": {},
            "id": 103,
            "inputs": [],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  197
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              820,
              330
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.16.4"
            },
            "size": [
              300,
              90
            ],
            "title": "Steps",
            "type": "PrimitiveInt",
            "widgets_values": [
              4,
              "fixed"
            ]
          },
          {
            "flags": {},
            "id": 107,
            "inputs": [],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  198
                ],
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              }
            ],
            "pos": [
              820,
              20
            ],
            "properties": {
              "Node name for S&R": "PrimitiveFloat",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.16.4"
            },
            "size": [
              300,
              60
            ],
            "title": "CFG",
            "type": "PrimitiveFloat",
            "widgets_values": [
              2.5
            ]
          },
          {
            "flags": {},
            "id": 111,
            "inputs": [
              {
                "link": 209,
                "localized_name": "value",
                "name": "value",
                "type": "BOOLEAN",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  201,
                  202,
                  203
                ],
                "localized_name": "BOOLEAN",
                "name": "BOOLEAN",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              830,
              630
            ],
            "properties": {
              "Node name for S&R": "PrimitiveBoolean",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.16.4"
            },
            "size": [
              290,
              60
            ],
            "title": "Enable 4steps LoRA",
            "type": "PrimitiveBoolean",
            "widgets_values": [
              false
            ]
          },
          {
            "flags": {},
            "id": 3,
            "inputs": [
              {
                "link": 186,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 164,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 163,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 170,
                "localized_name": "latent_image",
                "name": "latent_image",
                "type": "LATENT"
              },
              {
                "link": 211,
                "localized_name": "steps",
                "name": "steps",
                "type": "INT",
                "widget": {
                  "name": "steps"
                }
              },
              {
                "link": 210,
                "localized_name": "cfg",
                "name": "cfg",
                "type": "FLOAT",
                "widget": {
                  "name": "cfg"
                }
              }
            ],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": [
                  128
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "slot_index": 0,
                "type": "LATENT"
              }
            ],
            "pos": [
              1640,
              190
            ],
            "properties": {
              "Node name for S&R": "KSampler",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.48",
              "widget_ue_connectable": {}
            },
            "size": [
              300,
              474
            ],
            "type": "KSampler",
            "widgets_values": [
              344147753686358,
              "randomize",
              4,
              1,
              "euler",
              "simple",
              1
            ]
          },
          {
            "flags": {},
            "id": 109,
            "inputs": [
              {
                "link": 198,
                "localized_name": "on_false",
                "name": "on_false",
                "type": "FLOAT"
              },
              {
                "link": 194,
                "localized_name": "on_true",
                "name": "on_true",
                "type": "FLOAT"
              },
              {
                "link": 203,
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                }
              }
            ],
            "mode": 0,
            "order": 7,
            "outputs": [
              {
                "links": [
                  210
                ],
                "localized_name": "output",
                "name": "output",
                "type": "FLOAT"
              }
            ],
            "pos": [
              1220,
              350
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.16.4"
            },
            "size": [
              270,
              78
            ],
            "title": "Switch (CFG)",
            "type": "ComfySwitchNode",
            "widgets_values": [
              false
            ]
          },
          {
            "flags": {},
            "id": 110,
            "inputs": [
              {
                "link": 196,
                "localized_name": "on_false",
                "name": "on_false",
                "type": "INT"
              },
              {
                "link": 197,
                "localized_name": "on_true",
                "name": "on_true",
                "type": "INT"
              },
              {
                "link": 202,
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                }
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  211
                ],
                "localized_name": "output",
                "name": "output",
                "type": "INT"
              }
            ],
            "pos": [
              1220,
              130
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.16.4"
            },
            "size": [
              270,
              78
            ],
            "title": "Switch (Steps)",
            "type": "ComfySwitchNode",
            "widgets_values": [
              false
            ]
          },
          {
            "flags": {},
            "id": 108,
            "inputs": [
              {
                "link": 192,
                "localized_name": "on_false",
                "name": "on_false",
                "type": "MODEL"
              },
              {
                "link": 191,
                "localized_name": "on_true",
                "name": "on_true",
                "type": "MODEL"
              },
              {
                "link": 201,
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                }
              }
            ],
            "mode": 0,
            "order": 19,
            "outputs": [
              {
                "links": [
                  212
                ],
                "localized_name": "output",
                "name": "output",
                "type": "MODEL"
              }
            ],
            "pos": [
              1220,
              -40
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.16.4"
            },
            "size": [
              270,
              78
            ],
            "title": "Switch (model)",
            "type": "ComfySwitchNode",
            "widgets_values": [
              false
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            2250,
            380,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "a3de4846-5db7-4f56-a578-b9d17c93e2eb",
            "linkIds": [
              110
            ],
            "localized_name": "IMAGE",
            "name": "IMAGE",
            "pos": [
              2270,
              400
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 6,
          "lastLinkId": 212,
          "lastNodeId": 111,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        561.7578795605084,
        391.5759692656272
      ],
      "scale": 0.86656007358279
    },
    "frontendVersion": "1.41.16",
    "links_added_by_ue": [],
    "ue_links": [],
    "workflowRendererVersion": "LG"
  },
  "groups": [],
  "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb",
  "last_link_id": 212,
  "last_node_id": 111,
  "links": [
    [
      177,
      78,
      0,
      93,
      0,
      "IMAGE"
    ],
    [
      189,
      78,
      0,
      102,
      0,
      "IMAGE"
    ],
    [
      190,
      102,
      0,
      60,
      0,
      "IMAGE"
    ]
  ],
  "nodes": [
    {
      "flags": {},
      "id": 93,
      "inputs": [
        {
          "link": 177,
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        -230,
        390
      ],
      "properties": {
        "Node name for S&R": "ImageScaleToTotalPixels",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ue_properties": {
          "widget_ue_connectable": {
            "megapixels": true,
            "upscale_method": true
          }
        },
        "ver": "0.3.50"
      },
      "size": [
        270,
        106
      ],
      "type": "ImageScaleToTotalPixels",
      "widgets_values": [
        "lanczos",
        1.5,
        1
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 99,
      "inputs": [],
      "mode": 0,
      "order": 0,
      "outputs": [],
      "pos": [
        -830,
        -10
      ],
      "properties": {
        "widget_ue_connectable": {}
      },
      "size": [
        540,
        550
      ],
      "title": "For Local User",
      "type": "MarkdownNote",
      "widgets_values": [
        "[Tutorial](https://docs.comfy.org/tutorials/image/qwen/qwen-image-edit)\n\n\n## Model links\n\n**text_encoders**\n\n- [qwen_2.5_vl_7b_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors)\n\n**loras**\n\n- [Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors](https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors)\n\n**diffusion_models**\n\n- [qwen_image_edit_fp8_e4m3fn.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_fp8_e4m3fn.safetensors)\n\n**vae**\n\n- [qwen_image_vae.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors)\n\n\nModel Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│   ├── 📂 text_encoders/\n│   │      └── qwen_2.5_vl_7b_fp8_scaled.safetensors\n│   ├── 📂 loras/\n│   │      └── Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors\n│   ├── 📂 diffusion_models/\n│   │      └── qwen_image_edit_fp8_e4m3fn.safetensors\n│   └── 📂 vae/\n│          └── qwen_image_vae.safetensors\n```\n\n## Report issue\n\nIf you have any problems running this workflow, please report template-related issues via this link: [report the template issue here](https://github.com/Comfy-Org/workflow_templates/issues)\n"
      ]
    },
    {
      "flags": {},
      "id": 78,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            177,
            189
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        -240,
        0
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ue_properties": {
          "widget_ue_connectable": {
            "image": true,
            "upload": true
          }
        },
        "ver": "0.3.50"
      },
      "size": [
        274.080078125,
        314.0000305175781
      ],
      "type": "LoadImage",
      "widgets_values": [
        "image_qwen_image_edit_input_image.png",
        "image"
      ]
    },
    {
      "flags": {},
      "id": 60,
      "inputs": [
        {
          "link": 190,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 5,
      "outputs": [],
      "pos": [
        550,
        0
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.3.48",
        "widget_ue_connectable": {}
      },
      "size": [
        540,
        480
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 96,
      "inputs": [],
      "mode": 0,
      "order": 2,
      "outputs": [],
      "pos": [
        -230,
        550
      ],
      "properties": {},
      "size": [
        280,
        88
      ],
      "type": "MarkdownNote",
      "widgets_values": [
        "This node is to avoid poor output results caused by excessively large input image sizes."
      ]
    },
    {
      "flags": {},
      "id": 102,
      "inputs": [
        {
          "link": 189,
          "name": "image",
          "type": "IMAGE"
        },
        {
          "label": "enable_turbo_mode",
          "link": null,
          "name": "value",
          "type": "BOOLEAN",
          "widget": {
            "name": "value"
          }
        }
      ],
      "mode": 0,
      "order": 4,
      "outputs": [
        {
          "links": [
            190
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        90,
        0
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "proxyWidgets": [
          [
            "3",
            "seed"
          ],
          [
            "3",
            "control_after_generate"
          ],
          [
            "76",
            "prompt"
          ],
          [
            "37",
            "unet_name"
          ],
          [
            "38",
            "clip_name"
          ],
          [
            "39",
            "vae_name"
          ],
          [
            "89",
            "lora_name"
          ],
          [
            "111",
            "value"
          ]
        ],
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.16.4"
      },
      "size": [
        400,
        470
      ],
      "type": "74a8e1e2-9cb8-4112-978e-06ce1b5793f1",
      "widgets_values": []
    }
  ],
  "revision": 0,
  "version": 0.4
}