{
  "config": {},
  "extra": {
    "ds": {
      "offset": [
        1006.4422007985179,
        72.61872930398539
      ],
      "scale": 0.5970401764784028
    },
    "frontendVersion": "1.27.10"
  },
  "groups": [
    {
      "bounding": [
        -130,
        -80,
        400,
        610
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 1,
      "title": "Step 1 - Upload models"
    },
    {
      "bounding": [
        -130,
        550,
        400,
        550
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 2,
      "title": "Step 2 - Upload reference image"
    },
    {
      "bounding": [
        290,
        550,
        490,
        550
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 3,
      "title": "Image processing"
    },
    {
      "bounding": [
        290,
        100,
        490,
        430
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 4,
      "title": "Step 3 - Prompt"
    },
    {
      "bounding": [
        290,
        -80,
        490,
        160
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 5,
      "title": "4 steps lightning LoRA"
    }
  ],
  "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb",
  "last_link_id": 149,
  "last_node_id": 83,
  "links": [
    [
      46,
      6,
      0,
      3,
      1,
      "CONDITIONING"
    ],
    [
      52,
      7,
      0,
      3,
      2,
      "CONDITIONING"
    ],
    [
      74,
      38,
      0,
      6,
      0,
      "CLIP"
    ],
    [
      75,
      38,
      0,
      7,
      0,
      "CLIP"
    ],
    [
      76,
      39,
      0,
      8,
      1,
      "VAE"
    ],
    [
      110,
      8,
      0,
      60,
      0,
      "IMAGE"
    ],
    [
      128,
      3,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      129,
      70,
      0,
      69,
      1,
      "MODEL_PATCH"
    ],
    [
      130,
      66,
      0,
      69,
      0,
      "MODEL"
    ],
    [
      131,
      69,
      0,
      3,
      0,
      "MODEL"
    ],
    [
      132,
      39,
      0,
      69,
      2,
      "VAE"
    ],
    [
      135,
      72,
      0,
      69,
      3,
      "IMAGE"
    ],
    [
      136,
      72,
      0,
      73,
      0,
      "IMAGE"
    ],
    [
      140,
      71,
      0,
      75,
      0,
      "IMAGE"
    ],
    [
      141,
      75,
      0,
      72,
      0,
      "IMAGE"
    ],
    [
      142,
      76,
      0,
      3,
      3,
      "LATENT"
    ],
    [
      143,
      75,
      0,
      76,
      0,
      "IMAGE"
    ],
    [
      144,
      39,
      0,
      76,
      1,
      "VAE"
    ],
    [
      145,
      37,
      0,
      80,
      0,
      "MODEL"
    ],
    [
      149,
      80,
      0,
      66,
      0,
      "MODEL"
    ]
  ],
  "nodes": [
    {
      "flags": {},
      "id": 75,
      "inputs": [
        {
          "link": 140,
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 11,
      "outputs": [
        {
          "links": [
            141,
            143
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        -60,
        995
      ],
      "properties": {
        "Node name for S&R": "ImageScaleToTotalPixels",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        270,
        82
      ],
      "type": "ImageScaleToTotalPixels",
      "widgets_values": [
        "area",
        1.68
      ]
    },
    {
      "flags": {},
      "id": 69,
      "inputs": [
        {
          "link": 130,
          "name": "model",
          "type": "MODEL"
        },
        {
          "link": 129,
          "name": "model_patch",
          "type": "MODEL_PATCH"
        },
        {
          "link": 132,
          "name": "vae",
          "type": "VAE"
        },
        {
          "link": 135,
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": null,
          "name": "mask",
          "shape": 7,
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 15,
      "outputs": [
        {
          "links": [
            131
          ],
          "name": "MODEL",
          "type": "MODEL"
        }
      ],
      "pos": [
        810,
        70
      ],
      "properties": {
        "Node name for S&R": "QwenImageDiffsynthControlnet",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        310,
        138
      ],
      "type": "QwenImageDiffsynthControlnet",
      "widgets_values": [
        1
      ]
    },
    {
      "flags": {},
      "id": 66,
      "inputs": [
        {
          "link": 149,
          "name": "model",
          "type": "MODEL"
        }
      ],
      "mode": 0,
      "order": 12,
      "outputs": [
        {
          "links": [
            130
          ],
          "name": "MODEL",
          "type": "MODEL"
        }
      ],
      "pos": [
        810,
        -40
      ],
      "properties": {
        "Node name for S&R": "ModelSamplingAuraFlow",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        310,
        58
      ],
      "type": "ModelSamplingAuraFlow",
      "widgets_values": [
        3.1000000000000005
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 79,
      "inputs": [],
      "mode": 0,
      "order": 0,
      "outputs": [],
      "pos": [
        810,
        760
      ],
      "properties": {},
      "size": [
        310,
        140
      ],
      "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| fp8_e4m3fn             | 20                | 2.5               |\n| fp8_e4m3fn + 4 Steps lightning LoRA    | 4               | 1.0               |\n"
      ]
    },
    {
      "flags": {},
      "id": 8,
      "inputs": [
        {
          "link": 128,
          "name": "samples",
          "type": "LATENT"
        },
        {
          "link": 76,
          "name": "vae",
          "type": "VAE"
        }
      ],
      "mode": 0,
      "order": 18,
      "outputs": [
        {
          "links": [
            110
          ],
          "name": "IMAGE",
          "slot_index": 0,
          "type": "IMAGE"
        }
      ],
      "pos": [
        810,
        950
      ],
      "properties": {
        "Node name for S&R": "VAEDecode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        310,
        46
      ],
      "type": "VAEDecode",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 70,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            129
          ],
          "name": "MODEL_PATCH",
          "type": "MODEL_PATCH"
        }
      ],
      "pos": [
        -120,
        130
      ],
      "properties": {
        "Node name for S&R": "ModelPatchLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "model_patches",
            "name": "qwen_image_canny_diffsynth_controlnet.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Qwen-Image-DiffSynth-ControlNets/resolve/main/split_files/model_patches/qwen_image_canny_diffsynth_controlnet.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        60
      ],
      "type": "ModelPatchLoader",
      "widgets_values": [
        "qwen_image_canny_diffsynth_controlnet.safetensors"
      ]
    },
    {
      "flags": {},
      "id": 39,
      "inputs": [],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            76,
            132,
            144
          ],
          "name": "VAE",
          "slot_index": 0,
          "type": "VAE"
        }
      ],
      "pos": [
        -120,
        400
      ],
      "properties": {
        "Node name for S&R": "VAELoader",
        "cnr_id": "comfy-core",
        "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"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        58
      ],
      "type": "VAELoader",
      "widgets_values": [
        "qwen_image_vae.safetensors"
      ]
    },
    {
      "flags": {},
      "id": 37,
      "inputs": [],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [
            145
          ],
          "name": "MODEL",
          "slot_index": 0,
          "type": "MODEL"
        }
      ],
      "pos": [
        -120,
        0
      ],
      "properties": {
        "Node name for S&R": "UNETLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "diffusion_models",
            "name": "qwen_image_fp8_e4m3fn.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        82
      ],
      "type": "UNETLoader",
      "widgets_values": [
        "qwen_image_fp8_e4m3fn.safetensors",
        "default"
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 76,
      "inputs": [
        {
          "link": 143,
          "name": "pixels",
          "type": "IMAGE"
        },
        {
          "link": 144,
          "name": "vae",
          "type": "VAE"
        }
      ],
      "mode": 0,
      "order": 14,
      "outputs": [
        {
          "links": [
            142
          ],
          "name": "LATENT",
          "type": "LATENT"
        }
      ],
      "pos": [
        640,
        630
      ],
      "properties": {
        "Node name for S&R": "VAEEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        140,
        46
      ],
      "type": "VAEEncode",
      "widgets_values": []
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 68,
      "inputs": [],
      "mode": 0,
      "order": 4,
      "outputs": [],
      "pos": [
        810,
        -180
      ],
      "properties": {},
      "size": [
        310,
        90
      ],
      "type": "Note",
      "widgets_values": [
        "Increase the shift if you get too many blury/dark/bad images. Decrease if you want to try increasing detail."
      ]
    },
    {
      "flags": {},
      "id": 38,
      "inputs": [],
      "mode": 0,
      "order": 5,
      "outputs": [
        {
          "links": [
            74,
            75
          ],
          "name": "CLIP",
          "slot_index": 0,
          "type": "CLIP"
        }
      ],
      "pos": [
        -120,
        240
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader",
        "cnr_id": "comfy-core",
        "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"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        106
      ],
      "type": "CLIPLoader",
      "widgets_values": [
        "qwen_2.5_vl_7b_fp8_scaled.safetensors",
        "qwen_image",
        "default"
      ]
    },
    {
      "flags": {},
      "id": 73,
      "inputs": [
        {
          "link": 136,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 16,
      "outputs": [],
      "pos": [
        340,
        770
      ],
      "properties": {
        "Node name for S&R": "PreviewImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        380,
        320
      ],
      "type": "PreviewImage",
      "widgets_values": []
    },
    {
      "bgcolor": "#533",
      "color": "#322",
      "flags": {},
      "id": 72,
      "inputs": [
        {
          "link": 141,
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 13,
      "outputs": [
        {
          "links": [
            135,
            136
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        340,
        630
      ],
      "properties": {
        "Node name for S&R": "Canny",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        240,
        90
      ],
      "type": "Canny",
      "widgets_values": [
        0.1,
        0.2
      ]
    },
    {
      "flags": {},
      "id": 60,
      "inputs": [
        {
          "link": 110,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 19,
      "outputs": [],
      "pos": [
        1150,
        -40
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        970,
        1030
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "flags": {},
      "id": 80,
      "inputs": [
        {
          "link": 145,
          "name": "model",
          "type": "MODEL"
        }
      ],
      "mode": 4,
      "order": 8,
      "outputs": [
        {
          "links": [
            149
          ],
          "name": "MODEL",
          "type": "MODEL"
        }
      ],
      "pos": [
        320,
        -10
      ],
      "properties": {
        "Node name for S&R": "LoraLoaderModelOnly",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "loras",
            "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"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        430,
        82
      ],
      "type": "LoraLoaderModelOnly",
      "widgets_values": [
        "Qwen-Image-Lightning-4steps-V1.0.safetensors",
        1
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 6,
      "inputs": [
        {
          "link": 74,
          "name": "clip",
          "type": "CLIP"
        }
      ],
      "mode": 0,
      "order": 9,
      "outputs": [
        {
          "links": [
            46
          ],
          "name": "CONDITIONING",
          "slot_index": 0,
          "type": "CONDITIONING"
        }
      ],
      "pos": [
        300,
        170
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        460,
        164.31304931640625
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "type": "CLIPTextEncode",
      "widgets_values": [
        "Conceptual makeup, a fairy girl with pink hair, pink shimmery scales dotted at the corners of her eyes, starry eyeshadow, makeup painting, thin eyebrows, three-dimensional features, a glossy finish, dazzling gold powder, silver fine glitter, a sense of layering and depth in the makeup, decorated with gold ornaments, pearlescent eyeshadow, dreamy makeup, soft pastels and subtle sparkles, a mysterious and fantasy-filled atmosphere, high-end makeup, dappled light on the face, soft lighting, optimal shadows, complex depth of field, dramatic lighting, clear focus, 8k, high quality, Fujifilm filter, surreal, a dreamy pastel wonderland, bright colors, a starry pink background, realistic.\n"
      ]
    },
    {
      "bgcolor": "#335",
      "color": "#223",
      "flags": {},
      "id": 7,
      "inputs": [
        {
          "link": 75,
          "name": "clip",
          "type": "CLIP"
        }
      ],
      "mode": 0,
      "order": 10,
      "outputs": [
        {
          "links": [
            52
          ],
          "name": "CONDITIONING",
          "slot_index": 0,
          "type": "CONDITIONING"
        }
      ],
      "pos": [
        300,
        380
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        460,
        140
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "type": "CLIPTextEncode",
      "widgets_values": [
        " "
      ]
    },
    {
      "flags": {},
      "id": 3,
      "inputs": [
        {
          "link": 131,
          "name": "model",
          "type": "MODEL"
        },
        {
          "link": 46,
          "name": "positive",
          "type": "CONDITIONING"
        },
        {
          "link": 52,
          "name": "negative",
          "type": "CONDITIONING"
        },
        {
          "link": 142,
          "name": "latent_image",
          "type": "LATENT"
        }
      ],
      "mode": 0,
      "order": 17,
      "outputs": [
        {
          "links": [
            128
          ],
          "name": "LATENT",
          "slot_index": 0,
          "type": "LATENT"
        }
      ],
      "pos": [
        810,
        260
      ],
      "properties": {
        "Node name for S&R": "KSampler",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        310,
        430
      ],
      "type": "KSampler",
      "widgets_values": [
        91832422759220,
        "randomize",
        20,
        2.5,
        "euler",
        "simple",
        1
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 78,
      "inputs": [],
      "mode": 0,
      "order": 6,
      "outputs": [],
      "pos": [
        -690,
        -50
      ],
      "properties": {
        "widget_ue_connectable": {}
      },
      "size": [
        540,
        630
      ],
      "title": "Model links",
      "type": "MarkdownNote",
      "widgets_values": [
        "[Tutorial](https://docs.comfy.org/tutorials/image/qwen/qwen-image) \n\n\n## Model links\n\nYou can find all the models on [Huggingface](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main) or [Modelscope](https://modelscope.cn/models/Comfy-Org/Qwen-Image_ComfyUI/files)\n\n**Diffusion model**\n\n- [qwen_image_fp8_e4m3fn.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors)\n\n**Model patches**\n\n- [qwen_image_canny_diffsynth_controlnet.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-DiffSynth-ControlNets/resolve/main/split_files/model_patches/qwen_image_canny_diffsynth_controlnet.safetensors)\n- [qwen_image_depth_diffsynth_controlnet.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-DiffSynth-ControlNets/resolve/main/split_files/model_patches/qwen_image_depth_diffsynth_controlnet.safetensors)\n- [qwen_image_inpaint_diffsynth_controlnet.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-DiffSynth-ControlNets/resolve/main/split_files/model_patches/qwen_image_inpaint_diffsynth_controlnet.safetensors)\n\n**LoRA**\n\n- [Qwen-Image-Lightning-4steps-V1.0.safetensors](https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0.safetensors)\n\n**Text encoder**\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**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│   ├── 📂 diffusion_models/\n│   │   ├── qwen_image_fp8_e4m3fn.safetensors\n│   │   └── qwen_image_distill_full_fp8_e4m3fn.safetensors\n│   ├── 📂 loras/\n│   │   └── Qwen-Image-Lightning-8steps-V1.0.safetensors\n│   ├── 📂 model_patches/ # create one if you can't find it\n│   │   ├── qwen_image_depth_diffsynth_controlnet.safetensors\n│   │   ├── qwen_image_canny_diffsynth_controlnet.safetensors\n│   │   └── qwen_image_inpaint_diffsynth_controlnet.safetensors\n│   ├── 📂 vae/\n│   │   └── qwen_image_vae.safetensors\n│   └── 📂 text_encoders/\n│       └── qwen_2.5_vl_7b_fp8_scaled.safetensors\n```\n"
      ]
    },
    {
      "flags": {},
      "id": 71,
      "inputs": [],
      "mode": 0,
      "order": 7,
      "outputs": [
        {
          "links": [
            140
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        -70,
        635
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        274.080078125,
        314.00006103515625
      ],
      "type": "LoadImage",
      "widgets_values": [
        "image_qwen_image_controlnet_patch_input_image.png",
        "image"
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}