{ "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb", "revision": 1, "last_node_id": 469, "last_link_id": 743, "nodes": [ { "id": 99, "type": "MarkdownNote", "pos": [ -1010, -160 ], "size": [ 550, 870 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [], "title": "Model links", "properties": { "widget_ue_connectable": {} }, "widgets_values": [ "**Input Assets**\n- [image_qwen_image_edit_2509_input_image.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/image_qwen_image_edit_2509_input_image.png) — required workflow input (`input/image_qwen_image_edit_2509_input_image.png`)\n\n[Tutorial](https://docs.comfy.org/tutorials/image/qwen/qwen-image-edit)\n\n## Model links\n\n- [Hugging Face:Comfy-Org/Qwen-Image_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI)\n\n**ModelScope mirrors** (alternative repo location)\n\n- [ModelScope:Comfy-Org/Qwen-Image-Edit_ComfyUI](https://modelscope.cn/models/Comfy-Org/Qwen-Image-Edit_ComfyUI)\n- [ModelScope:Comfy-Org/Qwen-Image_ComfyUI](https://modelscope.cn/models/Comfy-Org/Qwen-Image_ComfyUI)\n\nYou can find all the models on [Comfy-Org/Qwen-Image_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main) and [Comfy-Org/Qwen-Image-Edit_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI) \n\n**Diffusion model**\n\n- [qwen_image_edit_2509_fp8_e4m3fn.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors) (19.03 GB)\n\n**LoRA**\n\n- [Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors](https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors) (810.2 MB)\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) (8.74 GB)\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) (242 MB)\n\nModel Storage Location\n\n```\nšŸ“‚ ComfyUI/\nā”œā”€ā”€ šŸ“‚ models/\n│ ā”œā”€ā”€ šŸ“‚ diffusion_models/\n│ │ └── qwen_image_edit_2509_fp8_e4m3fn.safetensors\n│ ā”œā”€ā”€ šŸ“‚ loras/\n│ │ └── Qwen-Image-Lightning-4steps-V1.0.safetensors\n│ ā”œā”€ā”€ šŸ“‚ vae/\n│ │ └── qwen_image_vae.safetensors\n│ └── šŸ“‚ text_encoders/\n│ └── qwen_2.5_vl_7b_fp8_scaled.safetensors\n```\n\n## Report issue\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" ], "color": "#222", "bgcolor": "#000" }, { "id": 78, "type": "LoadImage", "pos": [ -420, -160 ], "size": [ 460, 570 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 695 ] }, { "name": "MASK", "type": "MASK", "links": null } ], "properties": { "Node name for S&R": "LoadImage", "cnr_id": "comfy-core", "ver": "0.3.50", "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": [ "image_qwen_image_edit_2509_input_image.png", "image" ] }, { "id": 433, "type": "eba40a3a-f6c5-48ac-b58e-55525d06b373", "pos": [ 90, -160 ], "size": [ 390, 760 ], "flags": {}, "order": 2, "mode": 0, "inputs": [ { "label": "image", "name": "image", "type": "IMAGE", "link": 695 }, { "label": "image2 (optional)", "name": "image2", "shape": 7, "type": "IMAGE", "link": null }, { "label": "image3 (optional)", "name": "image3", "shape": 7, "type": "IMAGE", "link": null }, { "label": "positive_prompt", "name": "prompt", "type": "STRING", "widget": { "name": "prompt" }, "link": null }, { "name": "lora_name", "type": "COMBO", "link": null }, { "label": "negative_prompt", "name": "prompt_1", "type": "STRING", "widget": { "name": "prompt_1" }, "link": null }, { "label": "seed", "name": "seed_1", "type": "INT", "widget": { "name": "seed_1" }, "link": null }, { "label": "unet_name", "name": "unet_name_1", "type": "COMBO", "widget": { "name": "unet_name_1" }, "link": null }, { "label": "clip_name", "name": "clip_name_1", "type": "COMBO", "widget": { "name": "clip_name_1" }, "link": null }, { "label": "vae_name", "name": "vae_name_1", "type": "COMBO", "widget": { "name": "vae_name_1" }, "link": null }, { "label": "enable_turbo_mode", "name": "value", "type": "BOOLEAN", "widget": { "name": "value" }, "link": null }, { "label": "lightning_lora", "name": "lora_name_1", "type": "COMBO", "widget": { "name": "lora_name_1" }, "link": null } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 743 ] } ], "properties": { "proxyWidgets": [ [ "111", "prompt" ], [ "110", "prompt" ], [ "3", "seed" ], [ "37", "unet_name" ], [ "38", "clip_name" ], [ "39", "vae_name" ], [ "443", "value" ], [ "89", "lora_name" ], [ "3", "control_after_generate" ] ], "cnr_id": "comfy-core", "ver": "0.3.62" }, "widgets_values": [] }, { "id": 469, "type": "SaveImageAdvanced", "pos": [ 520, -160 ], "size": [ 850, 760 ], "flags": {}, "order": 3, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 743 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": null } ], "properties": { "Node name for S&R": "SaveImageAdvanced" }, "widgets_values": [ "Qwen_Image_2509", "png", "8-bit", "sRGB" ] } ], "links": [ [ 695, 78, 0, 433, 0, "IMAGE" ], [ 743, 433, 0, 469, 0, "IMAGE" ] ], "groups": [], "definitions": { "subgraphs": [ { "id": "eba40a3a-f6c5-48ac-b58e-55525d06b373", "version": 1, "state": { "lastGroupId": 51, "lastNodeId": 469, "lastLinkId": 743, "lastRerouteId": 0 }, "revision": 0, "config": {}, "name": "Image Edit (Qwen 2509)", "inputNode": { "id": -10, "bounding": [ -1160, 280, 159.744140625, 288 ] }, "outputNode": { "id": -20, "bounding": [ 2030, -20, 128, 68 ] }, "inputs": [ { "id": "d5089bd3-63bc-4a24-b478-6565ed2364e3", "name": "image", "type": "IMAGE", "linkIds": [ 248 ], "label": "image", "pos": [ -1024.255859375, 304 ] }, { "id": "9e80fff0-ed0a-439f-a16e-a4a6cc1eb601", "name": "image2", "type": "IMAGE", "linkIds": [ 235, 236 ], "label": "image2 (optional)", "pos": [ -1024.255859375, 324 ] }, { "id": "49d98fd6-01b5-440b-8603-579252fd7fef", "name": "image3", "type": "IMAGE", "linkIds": [ 237, 238 ], "label": "image3 (optional)", "pos": [ -1024.255859375, 344 ] }, { "id": "5de32f24-a7b5-4423-b772-72824005f585", "name": "prompt", "type": "STRING", "linkIds": [ 244 ], "label": "positive_prompt", "pos": [ -1024.255859375, 364 ] }, { "id": "efdf572f-032d-437d-85af-5951db7a621a", "name": "lora_name", "type": "COMBO", "linkIds": [], "pos": [ -1024.255859375, 384 ] }, { "id": "4648a8d2-0beb-4159-be03-81a05b056d0d", "name": "prompt_1", "type": "STRING", "linkIds": [ 735 ], "label": "negative_prompt", "pos": [ -1024.255859375, 404 ] }, { "id": "5990933b-c965-41a4-bec4-8ddfdc7fb4c0", "name": "seed_1", "type": "INT", "linkIds": [ 736 ], "label": "seed", "pos": [ -1024.255859375, 424 ] }, { "id": "e697447c-54eb-4268-afad-b657e6f34474", "name": "unet_name_1", "type": "COMBO", "linkIds": [ 737 ], "label": "unet_name", "pos": [ -1024.255859375, 444 ] }, { "id": "d230cd55-3de8-4326-ba22-844bac68292d", "name": "clip_name_1", "type": "COMBO", "linkIds": [ 738 ], "label": "clip_name", "pos": [ -1024.255859375, 464 ] }, { "id": "4c936a5f-1b6f-429d-8049-3c6ad783cf59", "name": "vae_name_1", "type": "COMBO", "linkIds": [ 739 ], "label": "vae_name", "pos": [ -1024.255859375, 484 ] }, { "id": "63197b14-6f54-4097-bddc-91267d21b4c7", "name": "value", "type": "BOOLEAN", "linkIds": [ 740 ], "label": "enable_turbo_mode", "pos": [ -1024.255859375, 504 ] }, { "id": "28003019-9145-4e52-b466-7615c77a592f", "name": "lora_name_1", "type": "COMBO", "linkIds": [ 742 ], "label": "lightning_lora", "pos": [ -1024.255859375, 524 ] } ], "outputs": [ { "id": "c4ebfc18-de83-4361-8e42-767c3c8c25c0", "name": "IMAGE", "type": "IMAGE", "linkIds": [ 110 ], "localized_name": "IMAGE", "pos": [ 2054, 4 ] } ], "widgets": [], "nodes": [ { "id": 75, "type": "CFGNorm", "pos": [ 1080, 30 ], "size": [ 290, 132 ], "flags": {}, "order": 11, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 141 } ], "outputs": [ { "localized_name": "patched_model", "name": "patched_model", "type": "MODEL", "links": [ 186 ] } ], "properties": { "Node name for S&R": "CFGNorm", "cnr_id": "comfy-core", "ver": "0.3.50", "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, false ] }, { "id": 39, "type": "VAELoader", "pos": [ -730, 410 ], "size": [ 330, 110 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "localized_name": "vae_name", "name": "vae_name", "type": "COMBO", "widget": { "name": "vae_name" }, "link": 739 } ], "outputs": [ { "localized_name": "VAE", "name": "VAE", "type": "VAE", "slot_index": 0, "links": [ 76, 168, 206, 207 ] } ], "properties": { "Node name for S&R": "VAELoader", "cnr_id": "comfy-core", "ver": "0.3.48", "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": 38, "type": "CLIPLoader", "pos": [ -730, 150 ], "size": [ 330, 168 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "localized_name": "clip_name", "name": "clip_name", "type": "COMBO", "widget": { "name": "clip_name" }, "link": 738 } ], "outputs": [ { "localized_name": "CLIP", "name": "CLIP", "type": "CLIP", "slot_index": 0, "links": [ 204, 205 ] } ], "properties": { "Node name for S&R": "CLIPLoader", "cnr_id": "comfy-core", "ver": "0.3.48", "models": [ { "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", "directory": "text_encoders" } ], "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "widget_ue_connectable": {} }, "widgets_values": [ "qwen_2.5_vl_7b_fp8_scaled.safetensors", "qwen_image", "default" ] }, { "id": 37, "type": "UNETLoader", "pos": [ -730, -60 ], "size": [ 330, 136 ], "flags": {}, "order": 7, "mode": 0, "inputs": [ { "localized_name": "unet_name", "name": "unet_name", "type": "COMBO", "widget": { "name": "unet_name" }, "link": 737 } ], "outputs": [ { "localized_name": "MODEL", "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 184, 710 ] } ], "properties": { "Node name for S&R": "UNETLoader", "cnr_id": "comfy-core", "ver": "0.3.48", "models": [ { "name": "qwen_image_edit_2509_fp8_e4m3fn.safetensors", "url": "https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors", "directory": "diffusion_models" } ], "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "widget_ue_connectable": {} }, "widgets_values": [ "qwen_image_edit_2509_fp8_e4m3fn.safetensors", "default" ] }, { "id": 110, "type": "TextEncodeQwenImageEditPlus", "pos": [ -240, 320 ], "size": [ 400, 240 ], "flags": {}, "order": 14, "mode": 0, "inputs": [ { "localized_name": "clip", "name": "clip", "type": "CLIP", "link": 204 }, { "localized_name": "vae", "name": "vae", "shape": 7, "type": "VAE", "link": 206 }, { "localized_name": "image1", "name": "image1", "shape": 7, "type": "IMAGE", "link": 251 }, { "localized_name": "image2", "name": "image2", "shape": 7, "type": "IMAGE", "link": 236 }, { "localized_name": "image3", "name": "image3", "shape": 7, "type": "IMAGE", "link": 238 }, { "localized_name": "prompt", "name": "prompt", "type": "STRING", "widget": { "name": "prompt" }, "link": 735 } ], "outputs": [ { "localized_name": "CONDITIONING", "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 210 ] } ], "properties": { "Node name for S&R": "TextEncodeQwenImageEditPlus", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "" ], "color": "#223", "bgcolor": "#335" }, { "id": 66, "type": "ModelSamplingAuraFlow", "pos": [ 1070, -120 ], "size": [ 290, 110 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 708 } ], "outputs": [ { "localized_name": "MODEL", "name": "MODEL", "type": "MODEL", "links": [ 141 ] } ], "properties": { "Node name for S&R": "ModelSamplingAuraFlow", "cnr_id": "comfy-core", "ver": "0.3.48", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "widget_ue_connectable": {} }, "widgets_values": [ 3 ] }, { "id": 111, "type": "TextEncodeQwenImageEditPlus", "pos": [ -250, -70 ], "size": [ 410, 330 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "localized_name": "clip", "name": "clip", "type": "CLIP", "link": 205 }, { "localized_name": "vae", "name": "vae", "shape": 7, "type": "VAE", "link": 207 }, { "localized_name": "image1", "name": "image1", "shape": 7, "type": "IMAGE", "link": 250 }, { "localized_name": "image2", "name": "image2", "shape": 7, "type": "IMAGE", "link": 235 }, { "localized_name": "image3", "name": "image3", "shape": 7, "type": "IMAGE", "link": 237 }, { "localized_name": "prompt", "name": "prompt", "type": "STRING", "widget": { "name": "prompt" }, "link": 244 } ], "outputs": [ { "localized_name": "CONDITIONING", "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 211 ] } ], "properties": { "Node name for S&R": "TextEncodeQwenImageEditPlus", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "Replace the cat with a dalmatian, keeping the environment and scene consistent" ], "color": "#232", "bgcolor": "#353" }, { "id": 88, "type": "VAEEncode", "pos": [ -70, 640 ], "size": [ 230, 100 ], "flags": {}, "order": 12, "mode": 0, "inputs": [ { "localized_name": "pixels", "name": "pixels", "type": "IMAGE", "link": 249 }, { "localized_name": "vae", "name": "vae", "type": "VAE", "link": 168 } ], "outputs": [ { "localized_name": "LATENT", "name": "LATENT", "type": "LATENT", "links": [ 246 ] } ], "properties": { "Node name for S&R": "VAEEncode", "cnr_id": "comfy-core", "ver": "0.3.50", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "ue_properties": { "widget_ue_connectable": {} } }, "widgets_values": [] }, { "id": 8, "type": "VAEDecode", "pos": [ 1590, -60 ], "size": [ 230, 100 ], "flags": { "collapsed": false }, "order": 6, "mode": 0, "inputs": [ { "localized_name": "samples", "name": "samples", "type": "LATENT", "link": 128 }, { "localized_name": "vae", "name": "vae", "type": "VAE", "link": 76 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 110 ] } ], "properties": { "Node name for S&R": "VAEDecode", "cnr_id": "comfy-core", "ver": "0.3.48", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "widget_ue_connectable": {} }, "widgets_values": [] }, { "id": 89, "type": "LoraLoaderModelOnly", "pos": [ 320, 300 ], "size": [ 300, 140 ], "flags": {}, "order": 13, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 184 }, { "localized_name": "lora_name", "name": "lora_name", "type": "COMBO", "widget": { "name": "lora_name" }, "link": 742 } ], "outputs": [ { "localized_name": "MODEL", "name": "MODEL", "type": "MODEL", "links": [ 709 ] } ], "properties": { "Node name for S&R": "LoraLoaderModelOnly", "cnr_id": "comfy-core", "ver": "0.3.50", "models": [ { "name": "Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors", "url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.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-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors", 1 ] }, { "id": 117, "type": "FluxKontextImageScale", "pos": [ -680, 630 ], "size": [ 230, 80 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 248 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ 249, 250, 251 ] } ], "properties": { "Node name for S&R": "FluxKontextImageScale" }, "widgets_values": [] }, { "id": 3, "type": "KSampler", "pos": [ 1070, 210 ], "size": [ 300, 590 ], "flags": {}, "order": 5, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 186 }, { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "link": 211 }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "link": 210 }, { "localized_name": "latent_image", "name": "latent_image", "type": "LATENT", "link": 246 }, { "localized_name": "seed", "name": "seed", "type": "INT", "widget": { "name": "seed" }, "link": 736 }, { "localized_name": "steps", "name": "steps", "type": "INT", "widget": { "name": "steps" }, "link": 707 }, { "localized_name": "cfg", "name": "cfg", "type": "FLOAT", "widget": { "name": "cfg" }, "link": 706 } ], "outputs": [ { "localized_name": "LATENT", "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 128 ] } ], "properties": { "Node name for S&R": "KSampler", "cnr_id": "comfy-core", "ver": "0.3.48", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "widget_ue_connectable": {} }, "widgets_values": [ 362225868152841, "randomize", 4, 1, "euler", "simple", 1 ] }, { "id": 436, "type": "PrimitiveInt", "pos": [ 320, 500 ], "size": [ 270, 110 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "localized_name": "INT", "name": "INT", "type": "INT", "links": [ 713 ] } ], "title": "Stpes", "properties": { "Node name for S&R": "PrimitiveInt" }, "widgets_values": [ 4, "fixed" ] }, { "id": 437, "type": "PrimitiveFloat", "pos": [ 320, 670 ], "size": [ 270, 110 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "localized_name": "FLOAT", "name": "FLOAT", "type": "FLOAT", "links": [ 714 ] } ], "title": "CFG", "properties": { "Node name for S&R": "PrimitiveFloat" }, "widgets_values": [ 1 ] }, { "id": 438, "type": "PrimitiveInt", "pos": [ 320, -100 ], "size": [ 270, 110 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "localized_name": "INT", "name": "INT", "type": "INT", "links": [ 711 ] } ], "title": "Steps", "properties": { "Node name for S&R": "PrimitiveInt" }, "widgets_values": [ 20, "fixed" ] }, { "id": 439, "type": "PrimitiveFloat", "pos": [ 320, 70 ], "size": [ 270, 110 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "localized_name": "FLOAT", "name": "FLOAT", "type": "FLOAT", "links": [ 712 ] } ], "title": "CFG", "properties": { "Node name for S&R": "PrimitiveFloat" }, "widgets_values": [ 4 ] }, { "id": 440, "type": "ComfySwitchNode", "pos": [ 750, -80 ], "size": [ 270, 130 ], "flags": {}, "order": 17, "mode": 0, "inputs": [ { "localized_name": "on_false", "name": "on_false", "type": "MODEL", "link": 710 }, { "localized_name": "on_true", "name": "on_true", "type": "MODEL", "link": 709 }, { "localized_name": "switch", "name": "switch", "type": "BOOLEAN", "widget": { "name": "switch" }, "link": 715 } ], "outputs": [ { "localized_name": "output", "name": "output", "type": "MODEL", "links": [ 708 ] } ], "title": "Switch (Model)", "properties": { "Node name for S&R": "ComfySwitchNode" }, "widgets_values": [ false ] }, { "id": 441, "type": "ComfySwitchNode", "pos": [ 730, 340 ], "size": [ 270, 130 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "localized_name": "on_false", "name": "on_false", "type": "INT", "link": 711 }, { "localized_name": "on_true", "name": "on_true", "type": "INT", "link": 713 }, { "localized_name": "switch", "name": "switch", "type": "BOOLEAN", "widget": { "name": "switch" }, "link": 716 } ], "outputs": [ { "localized_name": "output", "name": "output", "type": "INT", "links": [ 707 ] } ], "title": "Switch (Steps)", "properties": { "Node name for S&R": "ComfySwitchNode" }, "widgets_values": [ false ] }, { "id": 442, "type": "ComfySwitchNode", "pos": [ 730, 520 ], "size": [ 270, 130 ], "flags": {}, "order": 19, "mode": 0, "inputs": [ { "localized_name": "on_false", "name": "on_false", "type": "FLOAT", "link": 712 }, { "localized_name": "on_true", "name": "on_true", "type": "FLOAT", "link": 714 }, { "localized_name": "switch", "name": "switch", "type": "BOOLEAN", "widget": { "name": "switch" }, "link": 717 } ], "outputs": [ { "localized_name": "output", "name": "output", "type": "FLOAT", "links": [ 706 ] } ], "title": "Switch (CFG)", "properties": { "Node name for S&R": "ComfySwitchNode" }, "widgets_values": [ false ] }, { "id": 443, "type": "PrimitiveBoolean", "pos": [ 330, 850 ], "size": [ 270, 100 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "localized_name": "value", "name": "value", "type": "BOOLEAN", "widget": { "name": "value" }, "link": 740 } ], "outputs": [ { "localized_name": "BOOLEAN", "name": "BOOLEAN", "type": "BOOLEAN", "links": [ 715, 716, 717 ] } ], "title": "Enable Lightning LoRA", "properties": { "Node name for S&R": "PrimitiveBoolean" }, "widgets_values": [ true ] }, { "id": 444, "type": "MarkdownNote", "pos": [ 260, -530 ], "size": [ 450, 310 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [], "title": "Note: KSampler settings", "properties": {}, "widgets_values": [ "You can test and find the best setting by yourself. The following table is for reference.\n| Parameters | Qwen Team | Comfy Original | with 4steps LoRA |\n|--------|---------|------------|---------------------------|\n| Steps | 50 | 20 | 4 |\n| CFG | 4.0 | 2.5 | 1.0 |" ], "color": "#432", "bgcolor": "#000" } ], "groups": [ { "id": 1, "title": "Step1 - Load models", "bounding": [ -770, -170, 410, 750 ], "color": "#3f789e", "flags": {} }, { "id": 3, "title": "Step 4 - Prompt", "bounding": [ -330, -170, 570, 750 ], "color": "#3f789e", "flags": {} }, { "id": 50, "title": "Ligtning LoRA", "bounding": [ 270, 220, 390, 570 ], "color": "#3f789e", "flags": {} }, { "id": 51, "title": "Original Settings", "bounding": [ 270, -170, 390, 360 ], "color": "#3f789e", "flags": {} } ], "links": [ { "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": 184, "origin_id": 37, "origin_slot": 0, "target_id": 89, "target_slot": 0, "type": "MODEL" }, { "id": 186, "origin_id": 75, "origin_slot": 0, "target_id": 3, "target_slot": 0, "type": "MODEL" }, { "id": 211, "origin_id": 111, "origin_slot": 0, "target_id": 3, "target_slot": 1, "type": "CONDITIONING" }, { "id": 210, "origin_id": 110, "origin_slot": 0, "target_id": 3, "target_slot": 2, "type": "CONDITIONING" }, { "id": 168, "origin_id": 39, "origin_slot": 0, "target_id": 88, "target_slot": 1, "type": "VAE" }, { "id": 204, "origin_id": 38, "origin_slot": 0, "target_id": 110, "target_slot": 0, "type": "CLIP" }, { "id": 206, "origin_id": 39, "origin_slot": 0, "target_id": 110, "target_slot": 1, "type": "VAE" }, { "id": 205, "origin_id": 38, "origin_slot": 0, "target_id": 111, "target_slot": 0, "type": "CLIP" }, { "id": 207, "origin_id": 39, "origin_slot": 0, "target_id": 111, "target_slot": 1, "type": "VAE" }, { "id": 110, "origin_id": 8, "origin_slot": 0, "target_id": -20, "target_slot": 0, "type": "IMAGE" }, { "id": 235, "origin_id": -10, "origin_slot": 1, "target_id": 111, "target_slot": 3, "type": "IMAGE" }, { "id": 236, "origin_id": -10, "origin_slot": 1, "target_id": 110, "target_slot": 3, "type": "IMAGE" }, { "id": 237, "origin_id": -10, "origin_slot": 2, "target_id": 111, "target_slot": 4, "type": "IMAGE" }, { "id": 238, "origin_id": -10, "origin_slot": 2, "target_id": 110, "target_slot": 4, "type": "IMAGE" }, { "id": 244, "origin_id": -10, "origin_slot": 3, "target_id": 111, "target_slot": 5, "type": "STRING" }, { "id": 246, "origin_id": 88, "origin_slot": 0, "target_id": 3, "target_slot": 3, "type": "LATENT" }, { "id": 248, "origin_id": -10, "origin_slot": 0, "target_id": 117, "target_slot": 0, "type": "IMAGE" }, { "id": 249, "origin_id": 117, "origin_slot": 0, "target_id": 88, "target_slot": 0, "type": "IMAGE" }, { "id": 250, "origin_id": 117, "origin_slot": 0, "target_id": 111, "target_slot": 2, "type": "IMAGE" }, { "id": 251, "origin_id": 117, "origin_slot": 0, "target_id": 110, "target_slot": 2, "type": "IMAGE" }, { "id": 706, "origin_id": 442, "origin_slot": 0, "target_id": 3, "target_slot": 6, "type": "FLOAT" }, { "id": 707, "origin_id": 441, "origin_slot": 0, "target_id": 3, "target_slot": 5, "type": "INT" }, { "id": 708, "origin_id": 440, "origin_slot": 0, "target_id": 66, "target_slot": 0, "type": "MODEL" }, { "id": 709, "origin_id": 89, "origin_slot": 0, "target_id": 440, "target_slot": 1, "type": "MODEL" }, { "id": 710, "origin_id": 37, "origin_slot": 0, "target_id": 440, "target_slot": 0, "type": "MODEL" }, { "id": 711, "origin_id": 438, "origin_slot": 0, "target_id": 441, "target_slot": 0, "type": "INT" }, { "id": 712, "origin_id": 439, "origin_slot": 0, "target_id": 442, "target_slot": 0, "type": "FLOAT" }, { "id": 713, "origin_id": 436, "origin_slot": 0, "target_id": 441, "target_slot": 1, "type": "INT" }, { "id": 714, "origin_id": 437, "origin_slot": 0, "target_id": 442, "target_slot": 1, "type": "FLOAT" }, { "id": 715, "origin_id": 443, "origin_slot": 0, "target_id": 440, "target_slot": 2, "type": "BOOLEAN" }, { "id": 716, "origin_id": 443, "origin_slot": 0, "target_id": 441, "target_slot": 2, "type": "BOOLEAN" }, { "id": 717, "origin_id": 443, "origin_slot": 0, "target_id": 442, "target_slot": 2, "type": "BOOLEAN" }, { "id": 735, "origin_id": -10, "origin_slot": 5, "target_id": 110, "target_slot": 5, "type": "STRING" }, { "id": 736, "origin_id": -10, "origin_slot": 6, "target_id": 3, "target_slot": 4, "type": "INT" }, { "id": 737, "origin_id": -10, "origin_slot": 7, "target_id": 37, "target_slot": 0, "type": "COMBO" }, { "id": 738, "origin_id": -10, "origin_slot": 8, "target_id": 38, "target_slot": 0, "type": "COMBO" }, { "id": 739, "origin_id": -10, "origin_slot": 9, "target_id": 39, "target_slot": 0, "type": "COMBO" }, { "id": 740, "origin_id": -10, "origin_slot": 10, "target_id": 443, "target_slot": 0, "type": "BOOLEAN" }, { "id": 742, "origin_id": -10, "origin_slot": 11, "target_id": 89, "target_slot": 1, "type": "COMBO" } ], "extra": { "workflowRendererVersion": "LG" } } ] }, "config": {}, "extra": { "ds": { "scale": 0.4954982393061967, "offset": [ 1469.7211586909966, 548.9995651598313 ] }, "frontendVersion": "1.45.15", "workflowRendererVersion": "LG", "ue_links": [], "links_added_by_ue": [], "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, "VHS_KeepIntermediate": true }, "version": 0.4 }