{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {
          "workflowRendererVersion": "LG"
        },
        "groups": [
          {
            "bounding": [
              -280,
              -20,
              350,
              433.6000061035156
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 1,
            "title": "Step1 - Load models"
          },
          {
            "bounding": [
              -280,
              430,
              350,
              210
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 2,
            "title": "Step2 - Image size"
          },
          {
            "bounding": [
              90,
              160,
              450,
              470
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 3,
            "title": "Step3 - Prompt"
          },
          {
            "bounding": [
              90,
              -20,
              450,
              170
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 4,
            "title": "Lightx2v 8steps LoRA"
          }
        ],
        "id": "e5cfe5ba-2ae0-4bc4-869f-ab2228cb44d3",
        "inputNode": {
          "bounding": [
            -720,
            370,
            120,
            60
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "846fd1a5-9f4a-4e83-af40-27cafe99e5c6",
            "label": "Positive",
            "linkIds": [
              132
            ],
            "name": "text",
            "pos": [
              -620,
              390
            ],
            "type": "STRING"
          }
        ],
        "links": [
          {
            "id": 74,
            "origin_id": 38,
            "origin_slot": 0,
            "target_id": 6,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 75,
            "origin_id": 38,
            "origin_slot": 0,
            "target_id": 7,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 130,
            "origin_id": 73,
            "origin_slot": 0,
            "target_id": 66,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 129,
            "origin_id": 37,
            "origin_slot": 0,
            "target_id": 73,
            "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": 125,
            "origin_id": 66,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 46,
            "origin_id": 6,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 52,
            "origin_id": 7,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 107,
            "origin_id": 58,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 3,
            "type": "LATENT"
          },
          {
            "id": 110,
            "origin_id": 8,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 132,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 6,
            "target_slot": 1,
            "type": "STRING"
          }
        ],
        "name": "Text to Image (Qwen-Image)",
        "nodes": [
          {
            "flags": {},
            "id": 39,
            "inputs": [],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  76
                ],
                "localized_name": "VAE",
                "name": "VAE",
                "slot_index": 0,
                "type": "VAE"
              }
            ],
            "pos": [
              -270,
              340
            ],
            "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"
            ]
          },
          {
            "flags": {},
            "id": 38,
            "inputs": [],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  74,
                  75
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "slot_index": 0,
                "type": "CLIP"
              }
            ],
            "pos": [
              -270,
              190
            ],
            "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"
            ]
          },
          {
            "flags": {},
            "id": 58,
            "inputs": [],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  107
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "type": "LATENT"
              }
            ],
            "pos": [
              -240,
              510
            ],
            "properties": {
              "Node name for S&R": "EmptySD3LatentImage",
              "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": [
              270,
              106
            ],
            "type": "EmptySD3LatentImage",
            "widgets_values": [
              1328,
              1328,
              1
            ]
          },
          {
            "flags": {},
            "id": 66,
            "inputs": [
              {
                "link": 130,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  125
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              560,
              10
            ],
            "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": [
              300,
              58
            ],
            "type": "ModelSamplingAuraFlow",
            "widgets_values": [
              3.1000000000000005
            ]
          },
          {
            "flags": {},
            "id": 37,
            "inputs": [],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  129
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "slot_index": 0,
                "type": "MODEL"
              }
            ],
            "pos": [
              -270,
              50
            ],
            "properties": {
              "Node name for S&R": "UNETLoader",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "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"
                }
              ],
              "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_fp8_e4m3fn.safetensors",
              "default"
            ]
          },
          {
            "bgcolor": "#353",
            "color": "#232",
            "flags": {},
            "id": 6,
            "inputs": [
              {
                "link": 74,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 132,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": [
                  46
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "slot_index": 0,
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              100,
              240
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "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": [
              422.84503173828125,
              164.31304931640625
            ],
            "title": "CLIP Text Encode (Positive Prompt)",
            "type": "CLIPTextEncode",
            "widgets_values": [
              "\"A vibrant, warm neon-lit street scene in Hong Kong at the afternoon, with a mix of colorful Chinese and English signs glowing brightly. The atmosphere is lively, cinematic, and rain-washed with reflections on the pavement. The colors are vivid, full of pink, blue, red, and green hues. Crowded buildings with overlapping neon signs. 1980s Hong Kong style. Signs include:\n\"龍鳳冰室\" \"金華燒臘\" \"HAPPY HAIR\" \"鴻運茶餐廳\" \"EASY BAR\" \"永發魚蛋粉\" \"添記粥麵\" \"SUNSHINE MOTEL\" \"美都餐室\" \"富記糖水\" \"太平館\" \"雅芳髮型屋\" \"STAR KTV\" \"銀河娛樂城\" \"百樂門舞廳\" \"BUBBLE CAFE\" \"萬豪麻雀館\" \"CITY LIGHTS BAR\" \"瑞祥香燭莊\" \"文記文具\" \"GOLDEN JADE HOTEL\" \"LOVELY BEAUTY\" \"合興百貨\" \"興旺電器\" And the background is warm yellow street and with all stores' lights on."
            ]
          },
          {
            "bgcolor": "#533",
            "color": "#322",
            "flags": {},
            "id": 7,
            "inputs": [
              {
                "link": 75,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  52
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "slot_index": 0,
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              100,
              440
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "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": [
              425.27801513671875,
              180.6060791015625
            ],
            "title": "CLIP Text Encode (Negative Prompt)",
            "type": "CLIPTextEncode",
            "widgets_values": [
              ""
            ]
          },
          {
            "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": [
              890,
              20
            ],
            "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"
          },
          {
            "flags": {},
            "id": 73,
            "inputs": [
              {
                "link": 129,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  130
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              170,
              60
            ],
            "properties": {
              "Node name for S&R": "LoraLoaderModelOnly",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "loras",
                  "name": "Qwen-Image-Lightning-8steps-V1.0.safetensors",
                  "url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-8steps-V1.0.safetensors"
                }
              ],
              "ver": "0.3.49"
            },
            "size": [
              270,
              82
            ],
            "type": "LoraLoaderModelOnly",
            "widgets_values": [
              "Qwen-Image-Lightning-8steps-V1.0.safetensors",
              1
            ]
          },
          {
            "flags": {},
            "id": 3,
            "inputs": [
              {
                "link": 125,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 46,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 52,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 107,
                "localized_name": "latent_image",
                "name": "latent_image",
                "type": "LATENT"
              }
            ],
            "mode": 0,
            "order": 7,
            "outputs": [
              {
                "links": [
                  128
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "slot_index": 0,
                "type": "LATENT"
              }
            ],
            "pos": [
              560,
              120
            ],
            "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": [
              0,
              "randomize",
              8,
              1,
              "euler",
              "simple",
              1
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            1440,
            360,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "2af20250-dc7a-4643-bc84-0a180d9ca62b",
            "linkIds": [
              110
            ],
            "localized_name": "IMAGE",
            "name": "IMAGE",
            "pos": [
              1460,
              380
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 4,
          "lastLinkId": 133,
          "lastNodeId": 74,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        2338.6616425179936,
        593.1712119210159
      ],
      "scale": 0.39948157701765835
    },
    "frontendVersion": "1.37.0",
    "links_added_by_ue": [],
    "ue_links": [],
    "workflowRendererVersion": "LG"
  },
  "groups": [],
  "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb",
  "last_link_id": 132,
  "last_node_id": 76,
  "links": [
    [
      131,
      76,
      0,
      60,
      0,
      "IMAGE"
    ]
  ],
  "nodes": [
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 69,
      "inputs": [],
      "mode": 0,
      "order": 0,
      "outputs": [],
      "pos": [
        -540,
        -220
      ],
      "properties": {
        "widget_ue_connectable": {}
      },
      "size": [
        390,
        180
      ],
      "title": "VRAM Usage",
      "type": "MarkdownNote",
      "widgets_values": [
        "## GPU:RTX4090D 24GB\n\n| Configuration            | VRAM Usage | 1st Generation | 2nd Generation |\n|---------------------|---------------|---------------|-----------------|\n| Fp8_e4m3fn             | 86%                | ≈ 94s               | ≈ 71s                   |\n| With 8steps LoRA    | 86%                | ≈ 55s               | ≈ 34s                  |\n| Distill fp8_e4m3fn   | 86%                | ≈ 69s               | ≈ 36s                  |"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 67,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [],
      "pos": [
        -540,
        10
      ],
      "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## 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\nQwen_image_distill\n\n- [qwen_image_distill_full_fp8_e4m3fn.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/non_official/diffusion_models/qwen_image_distill_full_fp8_e4m3fn.safetensors)\n- [qwen_image_distill_full_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/non_official/diffusion_models/qwen_image_distill_full_bf16.safetensors)\n\n**LoRA**\n\n- [Qwen-Image-Lightning-8steps-V1.0.safetensors](https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-8steps-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\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│   ├── 📂 vae/\n│   │   └── qwen_image_vae.safetensors\n│   └── 📂 text_encoders/\n│       └── qwen_2.5_vl_7b_fp8_scaled.safetensors\n```\n"
      ]
    },
    {
      "flags": {},
      "id": 76,
      "inputs": [
        {
          "label": "Positive",
          "link": null,
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          }
        }
      ],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            131
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        30,
        10
      ],
      "properties": {
        "proxyWidgets": [
          [
            "-1",
            "text"
          ],
          [
            "58",
            "width"
          ],
          [
            "58",
            "height"
          ],
          [
            "3",
            "seed"
          ],
          [
            "3",
            "control_after_generate"
          ]
        ]
      },
      "size": [
        470,
        590
      ],
      "type": "e5cfe5ba-2ae0-4bc4-869f-ab2228cb44d3",
      "widgets_values": [
        "\"A vibrant, warm neon-lit street scene in Hong Kong at the afternoon, with a mix of colorful Chinese and English signs glowing brightly. The atmosphere is lively, cinematic, and rain-washed with reflections on the pavement. The colors are vivid, full of pink, blue, red, and green hues. Crowded buildings with overlapping neon signs. 1980s Hong Kong style. Signs include:\n\"龍鳳冰室\" \"金華燒臘\" \"HAPPY HAIR\" \"鴻運茶餐廳\" \"EASY BAR\" \"永發魚蛋粉\" \"添記粥麵\" \"SUNSHINE MOTEL\" \"美都餐室\" \"富記糖水\" \"太平館\" \"雅芳髮型屋\" \"STAR KTV\" \"銀河娛樂城\" \"百樂門舞廳\" \"BUBBLE CAFE\" \"萬豪麻雀館\" \"CITY LIGHTS BAR\" \"瑞祥香燭莊\" \"文記文具\" \"GOLDEN JADE HOTEL\" \"LOVELY BEAUTY\" \"合興百貨\" \"興旺電器\" And the background is warm yellow street and with all stores' lights on."
      ]
    },
    {
      "flags": {},
      "id": 60,
      "inputs": [
        {
          "link": 131,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 3,
      "outputs": [],
      "pos": [
        530,
        10
      ],
      "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": [
        490,
        600
      ],
      "type": "SaveImage",
      "widgets_values": [
        "Qwen-Image"
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}