{
  "last_node_id": 10,
  "last_link_id": 12,
  "nodes": [
    {
      "id": 1,
      "type": "UnetLoaderGGUF",
      "pos": [
        50,
        100
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            1
          ]
        }
      ],
      "title": "Load Qwen Image Edit Model",
      "properties": {
        "Node name for S&R": "UnetLoaderGGUF"
      },
      "widgets_values": [
        "Qwen_Image_Edit-Q6_K.gguf"
      ]
    },
    {
      "id": 2,
      "type": "CLIPLoader",
      "pos": [
        50,
        200
      ],
      "size": [
        315,
        82
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            2
          ]
        }
      ],
      "title": "Load Qwen 2.5 VL CLIP",
      "properties": {
        "Node name for S&R": "CLIPLoader"
      },
      "widgets_values": [
        "qwen_2.5_vl_7b_fp8_scaled.safetensors",
        "qwen_image",
        "default"
      ]
    },
    {
      "id": 3,
      "type": "VAELoader",
      "pos": [
        50,
        320
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            3,
            4,
            5
          ]
        }
      ],
      "title": "Load Qwen VAE",
      "properties": {
        "Node name for S&R": "VAELoader"
      },
      "widgets_values": [
        "qwen_image_vae.safetensors"
      ]
    },
    {
      "id": 4,
      "type": "LoadImage",
      "pos": [
        450,
        100
      ],
      "size": [
        315,
        314
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            6,
            7
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "title": "Load Reference Image",
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "reference_image.png",
        "image"
      ]
    },
    {
      "id": 5,
      "type": "VAEEncode",
      "pos": [
        450,
        200
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 7
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 5
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            8
          ]
        }
      ],
      "title": "Encode Reference Image (Appearance)",
      "properties": {
        "Node name for S&R": "VAEEncode"
      }
    },
    {
      "id": 6,
      "type": "TextEncodeQwenImageEdit",
      "pos": [
        850,
        100
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 2
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 4
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 6
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            9,
            10
          ]
        }
      ],
      "title": "Qwen Image Edit Conditioning",
      "properties": {
        "Node name for S&R": "TextEncodeQwenImageEdit"
      },
      "widgets_values": [
        "Turn the cat into a dog",
        [
          false,
          true
        ]
      ]
    },
    {
      "id": 7,
      "type": "KSampler",
      "pos": [
        850,
        350
      ],
      "size": [
        315,
        262
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 9
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 10
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 8
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            11
          ]
        }
      ],
      "title": "KSampler",
      "properties": {
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        42,
        "randomize",
        20,
        2.5,
        "euler",
        "simple",
        1
      ]
    },
    {
      "id": 8,
      "type": "VAEDecode",
      "pos": [
        1250,
        350
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 11
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 3
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            12
          ]
        }
      ],
      "title": "VAE Decode",
      "properties": {
        "Node name for S&R": "VAEDecode"
      }
    },
    {
      "id": 9,
      "type": "SaveImage",
      "pos": [
        1250,
        100
      ],
      "size": [
        315,
        270
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 12
        }
      ],
      "title": "Save Output",
      "properties": {
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "qwen-image-edit-output"
      ]
    },
    {
      "id": 10,
      "type": "Note",
      "pos": [
        1250,
        50
      ],
      "size": [
        300,
        200
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Notes",
      "properties": {
        "Node name for S&R": "Note"
      },
      "widgets_values": [
        "Qwen Image Edit Workflow\n\nKey Nodes:\n- UnetLoaderGGUF: Qwen Image Edit model\n- CLIPLoader (qwen_image): Qwen 2.5 VL\n- TextEncodeQwenImageEdit: Main conditioning\n- VAEEncode: Appearance conditioning\n\nSettings:\n- Steps: 20\n- CFG: 2.5\n- Sampler: euler\n- Scheduler: simple\n\nModel Files Required:\n- Qwen_Image_Edit-Q6_K.gguf\n- qwen_2.5_vl_7b_fp8_scaled.safetensors\n- qwen_image_vae.safetensors"
      ]
    }
  ],
  "links": [
    [
      1,
      1,
      0,
      7,
      0,
      "MODEL"
    ],
    [
      2,
      2,
      0,
      6,
      0,
      "CLIP"
    ],
    [
      3,
      3,
      1,
      8,
      1,
      "VAE"
    ],
    [
      4,
      3,
      0,
      6,
      1,
      "VAE"
    ],
    [
      5,
      3,
      0,
      5,
      1,
      "VAE"
    ],
    [
      6,
      4,
      0,
      6,
      2,
      "IMAGE"
    ],
    [
      7,
      4,
      0,
      5,
      0,
      "IMAGE"
    ],
    [
      8,
      5,
      0,
      7,
      3,
      "LATENT"
    ],
    [
      9,
      6,
      0,
      7,
      1,
      "CONDITIONING"
    ],
    [
      10,
      6,
      1,
      7,
      2,
      "CONDITIONING"
    ],
    [
      11,
      7,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      12,
      8,
      0,
      9,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 1.0,
      "offset": [
        0,
        0
      ]
    }
  },
  "version": 0.4
}