ComfyPilotComfyPilot
工作流 / 图像 / Qwen千问-图像:文生图
Qwen千问-图像:文生图

Qwen千问-图像:文生图

Qwen-Image: Text to Image

使用 Qwen-Image 20B MMDiT 模型生成图像,支持卓越的多语言文字渲染与编辑。

图像 5 个节点 15 次使用 ComfyUI ≥ 0.4.0 ComfyUI 46 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

需要的权重

这个工作流引用了 4 个权重文件,其中 4 个能在本站模型库里找到。

Qwen-Image-Lightning-8steps-V1.0.safetensors 在模型库查看
qwen_2.5_vl_7b_fp8_scaled.safetensors 在模型库查看
qwen_image_fp8_e4m3fn.safetensors 在模型库查看
qwen_image_vae.safetensors 在模型库查看

节点构成

MarkdownNote × 3
e5cfe5ba-2ae0-4bc4-869f-ab2228cb44d3 × 1
SaveImage × 1

官方标注的模型

Qwen-Image

工作流 JSON

和上面「下载工作流 JSON」是同一份文件。

1{
2 "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb",
3 "revision": 0,
4 "last_node_id": 87,
5 "last_link_id": 153,
6 "nodes": [
7 {
8 "id": 69,
9 "type": "MarkdownNote",
10 "pos": [
11 -540.0000557745723,
12 929.9999388400536
13 ],
14 "size": [
15 540,
16 320.578125
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [],
23 "title": "VRAM Usage",
24 "properties": {
25 "widget_ue_connectable": []
26 },
27 "widgets_values": [
28 "## 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 |"
29 ],
30 "color": "#222",
31 "bgcolor": "#000"
32 },
33 {
34 "id": 67,
35 "type": "MarkdownNote",
36 "pos": [
37 -540.0000107788293,
38 10.000012173583428
39 ],
40 "size": [
41 540,
42 862.75
43 ],
44 "flags": [],
45 "order": 1,
46 "mode": 0,
47 "inputs": [],
48 "outputs": [],
49 "title": "Model links",
50 "properties": {
51 "widget_ue_connectable": []
52 },
53 "widgets_values": [
54 "[Tutorial](https://docs.comfy.org/tutorials/image/qwen/qwen-image) \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_ComfyUI](https://modelscope.cn/models/Comfy-Org/Qwen-Image_ComfyUI)\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) (19.03 GB)\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) (19.03 GB)\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) (38.05 GB)\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) (1.58 GB)\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_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"
55 ],
56 "color": "#222",
57 "bgcolor": "#000"
58 },
59 {
60 "id": 76,
61 "type": "e5cfe5ba-2ae0-4bc4-869f-ab2228cb44d3",
62 "pos": [
63 30.00003328866842,
64 10.0000121735834
65 ],
66 "size": [
67 470,
68 656
69 ],
70 "flags": [],
71 "order": 2,
72 "mode": 0,
73 "inputs": [
74 {
75 "label": "prompt",
76 "name": "text",
77 "type": "STRING",
78 "widget": {
79 "name": "text"
80 },
81 "link": null
82 },
83 {
84 "label": "lightning_lora",
85 "name": "lora_name",
86 "type": "COMBO",
87 "widget": {
88 "name": "lora_name"
89 },
90 "link": null
91 },
92 {
93 "label": "enable_turbo_mode",
94 "name": "value",
95 "type": "BOOLEAN",
96 "widget": {
97 "name": "value"
98 },
99 "link": null
100 }
101 ],
102 "outputs": [
103 {
104 "name": "IMAGE",
105 "type": "IMAGE",
106 "links": [
107 131
108 ]
109 }
110 ],
111 "properties": {
112 "proxyWidgets": [
113 [
114 "6",
115 "text"
116 ],
117 [
118 "58",
119 "width"
120 ],
121 [
122 "58",
123 "height"
124 ],
125 [
126 "3",
127 "seed"
128 ],
129 [
130 "37",
131 "unet_name"
132 ],
133 [
134 "38",
135 "clip_name"
136 ],
137 [
138 "39",
139 "vae_name"
140 ],
141 [
142 "73",
143 "lora_name"
144 ],
145 [
146 "86",
147 "value"
148 ],
149 [
150 "3",
151 "control_after_generate"
152 ]
153 ]
154 },
155 "widgets_values": []
156 },
157 {
158 "id": 60,
159 "type": "SaveImage",
160 "pos": [
161 530.0000341593963,
162 10.000010258300335
163 ],
164 "size": [
165 610,
166 690
167 ],
168 "flags": [],
169 "order": 4,
170 "mode": 0,
171 "inputs": [
172 {
173 "name": "images",
174 "type": "IMAGE",
175 "link": 131
176 }
177 ],
178 "outputs": [],
179 "properties": {
180 "Node name for S&R": "SaveImage",
181 "cnr_id": "comfy-core",
182 "ver": "0.3.48",
183 "enableTabs": false,
184 "tabWidth": 65,
185 "tabXOffset": 10,
186 "hasSecondTab": false,
187 "secondTabText": "Send Back",
188 "secondTabOffset": 80,
189 "secondTabWidth": 65,
190 "widget_ue_connectable": []
191 },
192 "widgets_values": [
193 "Qwen-Image"
194 ]
195 },
196 {
197 "id": 77,
198 "type": "MarkdownNote",
199 "pos": [
200 -540.0000557745723,
201 1309.9999682183854
202 ],
203 "size": [
204 550,
205 370
206 ],
207 "flags": [],
208 "order": 3,
209 "mode": 0,
210 "inputs": [],
211 "outputs": [],
212 "title": "Aspect Ratio Resolutions",
213 "properties": [],
214 "widgets_values": [
215 "| Aspect Ratio | Resolution (Width, Height) |\n|--------------|-----------------------------|\n| 1:1 | (1328, 1328) |\n| 16:9 | (1664, 928) |\n| 9:16 | (928, 1664) |\n| 4:3 | (1472, 1140) |\n| 3:4 | (1140, 1472) |\n| 3:2 | (1584, 1056) |\n| 2:3 | (1056, 1584) |"
216 ],
217 "color": "#222",
218 "bgcolor": "#000"
219 }
220 ],
221 "links": [
222 [
223 131,
224 76,
225 0,
226 60,
227 0,
228 "IMAGE"
229 ]
230 ],
231 "groups": [],
232 "definitions": {
233 "subgraphs": [
234 {
235 "id": "e5cfe5ba-2ae0-4bc4-869f-ab2228cb44d3",
236 "version": 1,
237 "state": {
238 "lastGroupId": 5,
239 "lastNodeId": 87,
240 "lastLinkId": 153,
241 "lastRerouteId": 0
242 },
243 "revision": 0,
244 "config": [],
245 "name": "Text to Image (Qwen-Image)",
246 "inputNode": {
247 "id": -10,
248 "bounding": [
249 -810,
250 290,
251 151.744140625,
252 220
253 ]
254 },
255 "outputNode": {
256 "id": -20,
257 "bounding": [
258 2580,
259 340,
260 120,
261 60
262 ]
263 },
264 "inputs": [
265 {
266 "id": "846fd1a5-9f4a-4e83-af40-27cafe99e5c6",
267 "name": "text",
268 "type": "STRING",
269 "linkIds": [
270 132
271 ],
272 "label": "prompt",
273 "pos": [
274 -678.255859375,
275 310
276 ]
277 },
278 {
279 "id": "e941d29f-bb7f-4001-a956-90a9b29ae9f9",
280 "name": "width",
281 "type": "INT",
282 "linkIds": [
283 134
284 ],
285 "pos": [
286 -678.255859375,
287 330
288 ]
289 },
290 {
291 "id": "df798f50-87ba-481b-b847-ca8b7c7efff3",
292 "name": "height",
293 "type": "INT",
294 "linkIds": [
295 135
296 ],
297 "pos": [
298 -678.255859375,
299 350
300 ]
301 },
302 {
303 "id": "3fcf7667-f697-43ee-bdee-0d3fed39e777",
304 "name": "seed",
305 "type": "INT",
306 "linkIds": [
307 136
308 ],
309 "pos": [
310 -678.255859375,
311 370
312 ]
313 },
314 {
315 "id": "e8d70f26-d9f5-4633-a39e-0bf6cf93d566",
316 "name": "unet_name",
317 "type": "COMBO",
318 "linkIds": [
319 137
320 ],
321 "pos": [
322 -678.255859375,
323 390
324 ]
325 },
326 {
327 "id": "8c9b537a-c6c9-4365-96ad-dbbb82d917e0",
328 "name": "clip_name",
329 "type": "COMBO",
330 "linkIds": [
331 138
332 ],
333 "pos": [
334 -678.255859375,
335 410
336 ]
337 },
338 {
339 "id": "7cc2f92b-6e2f-4e4e-a316-b61f58ed1442",
340 "name": "vae_name",
341 "type": "COMBO",
342 "linkIds": [
343 139
344 ],
345 "pos": [
346 -678.255859375,
347 430
348 ]
349 },
350 {
351 "id": "3cb1ba7c-583c-4f92-afc1-71463161e2a4",
352 "name": "lora_name",
353 "type": "COMBO",
354 "linkIds": [
355 140
356 ],
357 "label": "lightning_lora",
358 "pos": [
359 -678.255859375,
360 450
361 ]
362 },
363 {
364 "id": "4278102d-766c-4c6b-af2e-0fb9f26bbb27",
365 "name": "value",
366 "type": "BOOLEAN",
367 "linkIds": [
368 153
369 ],
370 "label": "enable_turbo_mode",
371 "pos": [
372 -678.255859375,
373 470
374 ]
375 }
376 ],
377 "outputs": [
378 {
379 "id": "2af20250-dc7a-4643-bc84-0a180d9ca62b",
380 "name": "IMAGE",
381 "type": "IMAGE",
382 "linkIds": [
383 110
384 ],
385 "localized_name": "IMAGE",
386 "pos": [
387 2600,
388 360
389 ]
390 }
391 ],
392 "widgets": [],
393 "nodes": [
394 {
395 "id": 39,
396 "type": "VAELoader",
397 "pos": [
398 -259.9999984622457,
399 510.00001270110874
400 ],
401 "size": [
402 330,
403 110
404 ],
405 "flags": [],
406 "order": 11,
407 "mode": 0,
408 "inputs": [
409 {
410 "localized_name": "vae_name",
411 "name": "vae_name",
412 "type": "COMBO",
413 "widget": {
414 "name": "vae_name"
415 },
416 "link": 139
417 }
418 ],
419 "outputs": [
420 {
421 "localized_name": "VAE",
422 "name": "VAE",
423 "type": "VAE",
424 "slot_index": 0,
425 "links": [
426 76
427 ]
428 }
429 ],
430 "properties": {
431 "Node name for S&R": "VAELoader",
432 "cnr_id": "comfy-core",
433 "ver": "0.3.48",
434 "models": [
435 {
436 "name": "qwen_image_vae.safetensors",
437 "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors",
438 "directory": "vae"
439 }
440 ],
441 "enableTabs": false,
442 "tabWidth": 65,
443 "tabXOffset": 10,
444 "hasSecondTab": false,
445 "secondTabText": "Send Back",
446 "secondTabOffset": 80,
447 "secondTabWidth": 65,
448 "widget_ue_connectable": []
449 },
450 "widgets_values": [
451 "qwen_image_vae.safetensors"
452 ]
453 },
454 {
455 "id": 38,
456 "type": "CLIPLoader",
457 "pos": [
458 -259.9999984622457,
459 280.0000208577346
460 ],
461 "size": [
462 330,
463 142.65625
464 ],
465 "flags": [],
466 "order": 10,
467 "mode": 0,
468 "inputs": [
469 {
470 "localized_name": "clip_name",
471 "name": "clip_name",
472 "type": "COMBO",
473 "widget": {
474 "name": "clip_name"
475 },
476 "link": 138
477 }
478 ],
479 "outputs": [
480 {
481 "localized_name": "CLIP",
482 "name": "CLIP",
483 "type": "CLIP",
484 "slot_index": 0,
485 "links": [
486 74,
487 75
488 ]
489 }
490 ],
491 "properties": {
492 "Node name for S&R": "CLIPLoader",
493 "cnr_id": "comfy-core",
494 "ver": "0.3.48",
495 "models": [
496 {
497 "name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
498 "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
499 "directory": "text_encoders"
500 }
501 ],
502 "enableTabs": false,
503 "tabWidth": 65,
504 "tabXOffset": 10,
505 "hasSecondTab": false,
506 "secondTabText": "Send Back",
507 "secondTabOffset": 80,
508 "secondTabWidth": 65,
509 "widget_ue_connectable": []
510 },
511 "widgets_values": [
512 "qwen_2.5_vl_7b_fp8_scaled.safetensors",
513 "qwen_image",
514 "default"
515 ]
516 },
517 {
518 "id": 58,
519 "type": "EmptySD3LatentImage",
520 "pos": [
521 -240,
522 810
523 ],
524 "size": [
525 270,
526 168
527 ],
528 "flags": [],
529 "order": 12,
530 "mode": 0,
531 "inputs": [
532 {
533 "localized_name": "width",
534 "name": "width",
535 "type": "INT",
536 "widget": {
537 "name": "width"
538 },
539 "link": 134
540 },
541 {
542 "localized_name": "height",
543 "name": "height",
544 "type": "INT",
545 "widget": {
546 "name": "height"
547 },
548 "link": 135
549 }
550 ],
551 "outputs": [
552 {
553 "localized_name": "LATENT",
554 "name": "LATENT",
555 "type": "LATENT",
556 "links": [
557 107
558 ]
559 }
560 ],
561 "properties": {
562 "Node name for S&R": "EmptySD3LatentImage",
563 "cnr_id": "comfy-core",
564 "ver": "0.3.48",
565 "enableTabs": false,
566 "tabWidth": 65,
567 "tabXOffset": 10,
568 "hasSecondTab": false,
569 "secondTabText": "Send Back",
570 "secondTabOffset": 80,
571 "secondTabWidth": 65,
572 "widget_ue_connectable": []
573 },
574 "widgets_values": [
575 1328,
576 1328,
577 1
578 ]
579 },
580 {
581 "id": 66,
582 "type": "ModelSamplingAuraFlow",
583 "pos": [
584 1780,
585 180
586 ],
587 "size": [
588 300,
589 104
590 ],
591 "flags": [],
592 "order": 13,
593 "mode": 0,
594 "inputs": [
595 {
596 "localized_name": "model",
597 "name": "model",
598 "type": "MODEL",
599 "link": 147
600 }
601 ],
602 "outputs": [
603 {
604 "localized_name": "MODEL",
605 "name": "MODEL",
606 "type": "MODEL",
607 "links": [
608 125
609 ]
610 }
611 ],
612 "properties": {
613 "Node name for S&R": "ModelSamplingAuraFlow",
614 "cnr_id": "comfy-core",
615 "ver": "0.3.48",
616 "enableTabs": false,
617 "tabWidth": 65,
618 "tabXOffset": 10,
619 "hasSecondTab": false,
620 "secondTabText": "Send Back",
621 "secondTabOffset": 80,
622 "secondTabWidth": 65,
623 "widget_ue_connectable": []
624 },
625 "widgets_values": [
626 3.1000000000000005
627 ]
628 },
629 {
630 "id": 37,
631 "type": "UNETLoader",
632 "pos": [
633 -259.9999984622457,
634 80.00002003120608
635 ],
636 "size": [
637 330,
638 108
639 ],
640 "flags": [],
641 "order": 9,
642 "mode": 0,
643 "inputs": [
644 {
645 "localized_name": "unet_name",
646 "name": "unet_name",
647 "type": "COMBO",
648 "widget": {
649 "name": "unet_name"
650 },
651 "link": 137
652 }
653 ],
654 "outputs": [
655 {
656 "localized_name": "MODEL",
657 "name": "MODEL",
658 "type": "MODEL",
659 "slot_index": 0,
660 "links": [
661 129,
662 142
663 ]
664 }
665 ],
666 "properties": {
667 "Node name for S&R": "UNETLoader",
668 "cnr_id": "comfy-core",
669 "ver": "0.3.48",
670 "models": [
671 {
672 "name": "qwen_image_fp8_e4m3fn.safetensors",
673 "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors",
674 "directory": "diffusion_models"
675 }
676 ],
677 "enableTabs": false,
678 "tabWidth": 65,
679 "tabXOffset": 10,
680 "hasSecondTab": false,
681 "secondTabText": "Send Back",
682 "secondTabOffset": 80,
683 "secondTabWidth": 65,
684 "widget_ue_connectable": []
685 },
686 "widgets_values": [
687 "qwen_image_fp8_e4m3fn.safetensors",
688 "default"
689 ]
690 },
691 {
692 "id": 6,
693 "type": "CLIPTextEncode",
694 "pos": [
695 120.45788550113468,
696 60.523200489620876
697 ],
698 "size": [
699 440,
700 340
701 ],
702 "flags": [],
703 "order": 6,
704 "mode": 0,
705 "inputs": [
706 {
707 "localized_name": "clip",
708 "name": "clip",
709 "type": "CLIP",
710 "link": 74
711 },
712 {
713 "localized_name": "text",
714 "name": "text",
715 "type": "STRING",
716 "widget": {
717 "name": "text"
718 },
719 "link": 132
720 }
721 ],
722 "outputs": [
723 {
724 "localized_name": "CONDITIONING",
725 "name": "CONDITIONING",
726 "type": "CONDITIONING",
727 "slot_index": 0,
728 "links": [
729 46
730 ]
731 }
732 ],
733 "title": "CLIP Text Encode (Positive Prompt)",
734 "properties": {
735 "Node name for S&R": "CLIPTextEncode",
736 "cnr_id": "comfy-core",
737 "ver": "0.3.48",
738 "enableTabs": false,
739 "tabWidth": 65,
740 "tabXOffset": 10,
741 "hasSecondTab": false,
742 "secondTabText": "Send Back",
743 "secondTabOffset": 80,
744 "secondTabWidth": 65,
745 "widget_ue_connectable": []
746 },
747 "widgets_values": [
748 "\"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."
749 ],
750 "color": "#232",
751 "bgcolor": "#353"
752 },
753 {
754 "id": 7,
755 "type": "CLIPTextEncode",
756 "pos": [
757 130.00009725653229,
758 480.0000216842632
759 ],
760 "size": [
761 430,
762 180
763 ],
764 "flags": [],
765 "order": 7,
766 "mode": 0,
767 "inputs": [
768 {
769 "localized_name": "clip",
770 "name": "clip",
771 "type": "CLIP",
772 "link": 75
773 }
774 ],
775 "outputs": [
776 {
777 "localized_name": "CONDITIONING",
778 "name": "CONDITIONING",
779 "type": "CONDITIONING",
780 "slot_index": 0,
781 "links": [
782 52
783 ]
784 }
785 ],
786 "title": "CLIP Text Encode (Negative Prompt)",
787 "properties": {
788 "Node name for S&R": "CLIPTextEncode",
789 "cnr_id": "comfy-core",
790 "ver": "0.3.48",
791 "enableTabs": false,
792 "tabWidth": 65,
793 "tabXOffset": 10,
794 "hasSecondTab": false,
795 "secondTabText": "Send Back",
796 "secondTabOffset": 80,
797 "secondTabWidth": 65,
798 "widget_ue_connectable": []
799 },
800 "widgets_values": [
801 ""
802 ],
803 "color": "#322",
804 "bgcolor": "#533"
805 },
806 {
807 "id": 8,
808 "type": "VAEDecode",
809 "pos": [
810 2190,
811 350
812 ],
813 "size": [
814 225,
815 96
816 ],
817 "flags": {
818 "collapsed": false
819 },
820 "order": 8,
821 "mode": 0,
822 "inputs": [
823 {
824 "localized_name": "samples",
825 "name": "samples",
826 "type": "LATENT",
827 "link": 128
828 },
829 {
830 "localized_name": "vae",
831 "name": "vae",
832 "type": "VAE",
833 "link": 76
834 }
835 ],
836 "outputs": [
837 {
838 "localized_name": "IMAGE",
839 "name": "IMAGE",
840 "type": "IMAGE",
841 "slot_index": 0,
842 "links": [
843 110
844 ]
845 }
846 ],
847 "properties": {
848 "Node name for S&R": "VAEDecode",
849 "cnr_id": "comfy-core",
850 "ver": "0.3.48",
851 "enableTabs": false,
852 "tabWidth": 65,
853 "tabXOffset": 10,
854 "hasSecondTab": false,
855 "secondTabText": "Send Back",
856 "secondTabOffset": 80,
857 "secondTabWidth": 65,
858 "widget_ue_connectable": []
859 },
860 "widgets_values": []
861 },
862 {
863 "id": 73,
864 "type": "LoraLoaderModelOnly",
865 "pos": [
866 670,
867 500
868 ],
869 "size": [
870 400,
871 140
872 ],
873 "flags": [],
874 "order": 14,
875 "mode": 0,
876 "inputs": [
877 {
878 "localized_name": "model",
879 "name": "model",
880 "type": "MODEL",
881 "link": 129
882 },
883 {
884 "localized_name": "lora_name",
885 "name": "lora_name",
886 "type": "COMBO",
887 "widget": {
888 "name": "lora_name"
889 },
890 "link": 140
891 }
892 ],
893 "outputs": [
894 {
895 "localized_name": "MODEL",
896 "name": "MODEL",
897 "type": "MODEL",
898 "links": [
899 141
900 ]
901 }
902 ],
903 "properties": {
904 "Node name for S&R": "LoraLoaderModelOnly",
905 "cnr_id": "comfy-core",
906 "ver": "0.3.49",
907 "models": [
908 {
909 "name": "Qwen-Image-Lightning-8steps-V1.0.safetensors",
910 "url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-8steps-V1.0.safetensors",
911 "directory": "loras"
912 }
913 ]
914 },
915 "widgets_values": [
916 "Qwen-Image-Lightning-8steps-V1.0.safetensors",
917 1
918 ]
919 },
920 {
921 "id": 3,
922 "type": "KSampler",
923 "pos": [
924 1780,
925 330
926 ],
927 "size": [
928 300,
929 480
930 ],
931 "flags": [],
932 "order": 5,
933 "mode": 0,
934 "inputs": [
935 {
936 "localized_name": "model",
937 "name": "model",
938 "type": "MODEL",
939 "link": 125
940 },
941 {
942 "localized_name": "positive",
943 "name": "positive",
944 "type": "CONDITIONING",
945 "link": 46
946 },
947 {
948 "localized_name": "negative",
949 "name": "negative",
950 "type": "CONDITIONING",
951 "link": 52
952 },
953 {
954 "localized_name": "latent_image",
955 "name": "latent_image",
956 "type": "LATENT",
957 "link": 107
958 },
959 {
960 "localized_name": "seed",
961 "name": "seed",
962 "type": "INT",
963 "widget": {
964 "name": "seed"
965 },
966 "link": 136
967 },
968 {
969 "localized_name": "steps",
970 "name": "steps",
971 "type": "INT",
972 "widget": {
973 "name": "steps"
974 },
975 "link": 148
976 },
977 {
978 "localized_name": "cfg",
979 "name": "cfg",
980 "type": "FLOAT",
981 "widget": {
982 "name": "cfg"
983 },
984 "link": 149
985 }
986 ],
987 "outputs": [
988 {
989 "localized_name": "LATENT",
990 "name": "LATENT",
991 "type": "LATENT",
992 "slot_index": 0,
993 "links": [
994 128
995 ]
996 }
997 ],
998 "properties": {
999 "Node name for S&R": "KSampler",
1000 "cnr_id": "comfy-core",
1001 "ver": "0.3.48",
1002 "enableTabs": false,
1003 "tabWidth": 65,
1004 "tabXOffset": 10,
1005 "hasSecondTab": false,
1006 "secondTabText": "Send Back",
1007 "secondTabOffset": 80,
1008 "secondTabWidth": 65,
1009 "widget_ue_connectable": []
1010 },
1011 "widgets_values": [
1012 50347169638278,
1013 "randomize",
1014 8,
1015 1,
1016 "euler",
1017 "simple",
1018 1
1019 ]
1020 },
1021 {
1022 "id": 78,
1023 "type": "ComfySwitchNode",
1024 "pos": [
1025 1320,
1026 180
1027 ],
1028 "size": [
1029 270,
1030 124
1031 ],
1032 "flags": [],
1033 "order": 15,
1034 "mode": 0,
1035 "inputs": [
1036 {
1037 "localized_name": "on_false",
1038 "name": "on_false",
1039 "type": "MODEL",
1040 "link": 142
1041 },
1042 {
1043 "localized_name": "on_true",
1044 "name": "on_true",
1045 "type": "MODEL",
1046 "link": 141
1047 },
1048 {
1049 "localized_name": "switch",
1050 "name": "switch",
1051 "type": "BOOLEAN",
1052 "widget": {
1053 "name": "switch"
1054 },
1055 "link": 150
1056 }
1057 ],
1058 "outputs": [
1059 {
1060 "localized_name": "output",
1061 "name": "output",
1062 "type": "MODEL",
1063 "links": [
1064 147
1065 ]
1066 }
1067 ],
1068 "title": "Switch (Model)",
1069 "properties": {
1070 "Node name for S&R": "ComfySwitchNode"
1071 },
1072 "widgets_values": [
1073 false
1074 ]
1075 },
1076 {
1077 "id": 79,
1078 "type": "PrimitiveInt",
1079 "pos": [
1080 679.9999672919754,
1081 709.9998727222855
1082 ],
1083 "size": [
1084 270,
1085 104
1086 ],
1087 "flags": [],
1088 "order": 0,
1089 "mode": 0,
1090 "inputs": [],
1091 "outputs": [
1092 {
1093 "localized_name": "INT",
1094 "name": "INT",
1095 "type": "INT",
1096 "links": [
1097 143
1098 ]
1099 }
1100 ],
1101 "title": "Steps",
1102 "properties": {
1103 "Node name for S&R": "PrimitiveInt"
1104 },
1105 "widgets_values": [
1106 8,
1107 "fixed"
1108 ]
1109 },
1110 {
1111 "id": 81,
1112 "type": "PrimitiveFloat",
1113 "pos": [
1114 680,
1115 870
1116 ],
1117 "size": [
1118 270,
1119 104
1120 ],
1121 "flags": [],
1122 "order": 1,
1123 "mode": 0,
1124 "inputs": [],
1125 "outputs": [
1126 {
1127 "localized_name": "FLOAT",
1128 "name": "FLOAT",
1129 "type": "FLOAT",
1130 "links": [
1131 144
1132 ]
1133 }
1134 ],
1135 "title": "CFG",
1136 "properties": {
1137 "Node name for S&R": "PrimitiveFloat"
1138 },
1139 "widgets_values": [
1140 1
1141 ]
1142 },
1143 {
1144 "id": 82,
1145 "type": "ComfySwitchNode",
1146 "pos": [
1147 1319.9998857134347,
1148 399.9999595451162
1149 ],
1150 "size": [
1151 270,
1152 124
1153 ],
1154 "flags": [],
1155 "order": 16,
1156 "mode": 0,
1157 "inputs": [
1158 {
1159 "localized_name": "on_false",
1160 "name": "on_false",
1161 "type": "INT",
1162 "link": 146
1163 },
1164 {
1165 "localized_name": "on_true",
1166 "name": "on_true",
1167 "type": "INT",
1168 "link": 143
1169 },
1170 {
1171 "localized_name": "switch",
1172 "name": "switch",
1173 "type": "BOOLEAN",
1174 "widget": {
1175 "name": "switch"
1176 },
1177 "link": 151
1178 }
1179 ],
1180 "outputs": [
1181 {
1182 "localized_name": "output",
1183 "name": "output",
1184 "type": "INT",
1185 "links": [
1186 148
1187 ]
1188 }
1189 ],
1190 "title": "Switch (Steps)",
1191 "properties": {
1192 "Node name for S&R": "ComfySwitchNode"
1193 },
1194 "widgets_values": [
1195 false
1196 ]
1197 },
1198 {
1199 "id": 83,
1200 "type": "ComfySwitchNode",
1201 "pos": [
1202 1319.9999453763571,
1203 600.0000749949303
1204 ],
1205 "size": [
1206 270,
1207 124
1208 ],
1209 "flags": [],
1210 "order": 17,
1211 "mode": 0,
1212 "inputs": [
1213 {
1214 "localized_name": "on_false",
1215 "name": "on_false",
1216 "type": "FLOAT",
1217 "link": 145
1218 },
1219 {
1220 "localized_name": "on_true",
1221 "name": "on_true",
1222 "type": "FLOAT",
1223 "link": 144
1224 },
1225 {
1226 "localized_name": "switch",
1227 "name": "switch",
1228 "type": "BOOLEAN",
1229 "widget": {
1230 "name": "switch"
1231 },
1232 "link": 152
1233 }
1234 ],
1235 "outputs": [
1236 {
1237 "localized_name": "output",
1238 "name": "output",
1239 "type": "FLOAT",
1240 "links": [
1241 149
1242 ]
1243 }
1244 ],
1245 "title": "Switch (CFG)",
1246 "properties": {
1247 "Node name for S&R": "ComfySwitchNode"
1248 },
1249 "widgets_values": [
1250 false
1251 ]
1252 },
1253 {
1254 "id": 84,
1255 "type": "PrimitiveInt",
1256 "pos": [
1257 680,
1258 60
1259 ],
1260 "size": [
1261 270,
1262 104
1263 ],
1264 "flags": [],
1265 "order": 2,
1266 "mode": 0,
1267 "inputs": [],
1268 "outputs": [
1269 {
1270 "localized_name": "INT",
1271 "name": "INT",
1272 "type": "INT",
1273 "links": [
1274 146
1275 ]
1276 }
1277 ],
1278 "title": "Steps",
1279 "properties": {
1280 "Node name for S&R": "PrimitiveInt"
1281 },
1282 "widgets_values": [
1283 20,
1284 "fixed"
1285 ]
1286 },
1287 {
1288 "id": 85,
1289 "type": "PrimitiveFloat",
1290 "pos": [
1291 680,
1292 230
1293 ],
1294 "size": [
1295 270,
1296 104
1297 ],
1298 "flags": [],
1299 "order": 3,
1300 "mode": 0,
1301 "inputs": [],
1302 "outputs": [
1303 {
1304 "localized_name": "FLOAT",
1305 "name": "FLOAT",
1306 "type": "FLOAT",
1307 "links": [
1308 145
1309 ]
1310 }
1311 ],
1312 "title": "CFG",
1313 "properties": {
1314 "Node name for S&R": "PrimitiveFloat"
1315 },
1316 "widgets_values": [
1317 4
1318 ]
1319 },
1320 {
1321 "id": 86,
1322 "type": "PrimitiveBoolean",
1323 "pos": [
1324 710,
1325 1070
1326 ],
1327 "size": [
1328 270,
1329 100
1330 ],
1331 "flags": [],
1332 "order": 18,
1333 "mode": 0,
1334 "inputs": [
1335 {
1336 "localized_name": "value",
1337 "name": "value",
1338 "type": "BOOLEAN",
1339 "widget": {
1340 "name": "value"
1341 },
1342 "link": 153
1343 }
1344 ],
1345 "outputs": [
1346 {
1347 "localized_name": "BOOLEAN",
1348 "name": "BOOLEAN",
1349 "type": "BOOLEAN",
1350 "links": [
1351 150,
1352 151,
1353 152
1354 ]
1355 }
1356 ],
1357 "title": "Enable Lightning LoRA",
1358 "properties": {
1359 "Node name for S&R": "PrimitiveBoolean"
1360 },
1361 "widgets_values": [
1362 false
1363 ]
1364 },
1365 {
1366 "id": 87,
1367 "type": "MarkdownNote",
1368 "pos": [
1369 619.999869192166,
1370 -159.99999133635487
1371 ],
1372 "size": [
1373 500,
1374 120
1375 ],
1376 "flags": [],
1377 "order": 4,
1378 "mode": 0,
1379 "inputs": [],
1380 "outputs": [],
1381 "properties": [],
1382 "widgets_values": [
1383 "Try 50 steps, if you want original the [qwen image](https://huggingface.co/Qwen/Qwen-Image)'s setting, but it will takes longer"
1384 ],
1385 "color": "#222",
1386 "bgcolor": "#000"
1387 }
1388 ],
1389 "groups": [
1390 {
1391 "id": 1,
1392 "title": "Step1 - Load models",
1393 "bounding": [
1394 -280,
1395 -20,
1396 360,
1397 700
1398 ],
1399 "color": "#3f789e",
1400 "font_size": 24,
1401 "flags": []
1402 },
1403 {
1404 "id": 2,
1405 "title": "Step2 - Image size",
1406 "bounding": [
1407 -280,
1408 710,
1409 360,
1410 300
1411 ],
1412 "color": "#3f789e",
1413 "font_size": 24,
1414 "flags": []
1415 },
1416 {
1417 "id": 3,
1418 "title": "Step3 - Prompt",
1419 "bounding": [
1420 110,
1421 -20,
1422 470,
1423 700
1424 ],
1425 "color": "#3f789e",
1426 "font_size": 24,
1427 "flags": []
1428 },
1429 {
1430 "id": 4,
1431 "title": "Lightx2v 8steps LoRA",
1432 "bounding": [
1433 610,
1434 390,
1435 520,
1436 620
1437 ],
1438 "color": "#3f789e",
1439 "font_size": 24,
1440 "flags": []
1441 },
1442 {
1443 "id": 5,
1444 "title": "Original Settings",
1445 "bounding": [
1446 610,
1447 -20,
1448 520,
1449 380
1450 ],
1451 "color": "#3f789e",
1452 "font_size": 24,
1453 "flags": []
1454 }
1455 ],
1456 "links": [
1457 {
1458 "id": 74,
1459 "origin_id": 38,
1460 "origin_slot": 0,
1461 "target_id": 6,
1462 "target_slot": 0,
1463 "type": "CLIP"
1464 },
1465 {
1466 "id": 75,
1467 "origin_id": 38,
1468 "origin_slot": 0,
1469 "target_id": 7,
1470 "target_slot": 0,
1471 "type": "CLIP"
1472 },
1473 {
1474 "id": 129,
1475 "origin_id": 37,
1476 "origin_slot": 0,
1477 "target_id": 73,
1478 "target_slot": 0,
1479 "type": "MODEL"
1480 },
1481 {
1482 "id": 128,
1483 "origin_id": 3,
1484 "origin_slot": 0,
1485 "target_id": 8,
1486 "target_slot": 0,
1487 "type": "LATENT"
1488 },
1489 {
1490 "id": 76,
1491 "origin_id": 39,
1492 "origin_slot": 0,
1493 "target_id": 8,
1494 "target_slot": 1,
1495 "type": "VAE"
1496 },
1497 {
1498 "id": 125,
1499 "origin_id": 66,
1500 "origin_slot": 0,
1501 "target_id": 3,
1502 "target_slot": 0,
1503 "type": "MODEL"
1504 },
1505 {
1506 "id": 46,
1507 "origin_id": 6,
1508 "origin_slot": 0,
1509 "target_id": 3,
1510 "target_slot": 1,
1511 "type": "CONDITIONING"
1512 },
1513 {
1514 "id": 52,
1515 "origin_id": 7,
1516 "origin_slot": 0,
1517 "target_id": 3,
1518 "target_slot": 2,
1519 "type": "CONDITIONING"
1520 },
1521 {
1522 "id": 107,
1523 "origin_id": 58,
1524 "origin_slot": 0,
1525 "target_id": 3,
1526 "target_slot": 3,
1527 "type": "LATENT"
1528 },
1529 {
1530 "id": 110,
1531 "origin_id": 8,
1532 "origin_slot": 0,
1533 "target_id": -20,
1534 "target_slot": 0,
1535 "type": "IMAGE"
1536 },
1537 {
1538 "id": 132,
1539 "origin_id": -10,
1540 "origin_slot": 0,
1541 "target_id": 6,
1542 "target_slot": 1,
1543 "type": "STRING"
1544 },
1545 {
1546 "id": 134,
1547 "origin_id": -10,
1548 "origin_slot": 1,
1549 "target_id": 58,
1550 "target_slot": 0,
1551 "type": "INT"
1552 },
1553 {
1554 "id": 135,
1555 "origin_id": -10,
1556 "origin_slot": 2,
1557 "target_id": 58,
1558 "target_slot": 1,
1559 "type": "INT"
1560 },
1561 {
1562 "id": 136,
1563 "origin_id": -10,
1564 "origin_slot": 3,
1565 "target_id": 3,
1566 "target_slot": 4,
1567 "type": "INT"
1568 },
1569 {
1570 "id": 137,
1571 "origin_id": -10,
1572 "origin_slot": 4,
1573 "target_id": 37,
1574 "target_slot": 0,
1575 "type": "COMBO"
1576 },
1577 {
1578 "id": 138,
1579 "origin_id": -10,
1580 "origin_slot": 5,
1581 "target_id": 38,
1582 "target_slot": 0,
1583 "type": "COMBO"
1584 },
1585 {
1586 "id": 139,
1587 "origin_id": -10,
1588 "origin_slot": 6,
1589 "target_id": 39,
1590 "target_slot": 0,
1591 "type": "COMBO"
1592 },
1593 {
1594 "id": 140,
1595 "origin_id": -10,
1596 "origin_slot": 7,
1597 "target_id": 73,
1598 "target_slot": 1,
1599 "type": "COMBO"
1600 },
1601 {
1602 "id": 141,
1603 "origin_id": 73,
1604 "origin_slot": 0,
1605 "target_id": 78,
1606 "target_slot": 1,
1607 "type": "MODEL"
1608 },
1609 {
1610 "id": 142,
1611 "origin_id": 37,
1612 "origin_slot": 0,
1613 "target_id": 78,
1614 "target_slot": 0,
1615 "type": "MODEL"
1616 },
1617 {
1618 "id": 143,
1619 "origin_id": 79,
1620 "origin_slot": 0,
1621 "target_id": 82,
1622 "target_slot": 1,
1623 "type": "INT"
1624 },
1625 {
1626 "id": 144,
1627 "origin_id": 81,
1628 "origin_slot": 0,
1629 "target_id": 83,
1630 "target_slot": 1,
1631 "type": "FLOAT"
1632 },
1633 {
1634 "id": 145,
1635 "origin_id": 85,
1636 "origin_slot": 0,
1637 "target_id": 83,
1638 "target_slot": 0,
1639 "type": "FLOAT"
1640 },
1641 {
1642 "id": 146,
1643 "origin_id": 84,
1644 "origin_slot": 0,
1645 "target_id": 82,
1646 "target_slot": 0,
1647 "type": "INT"
1648 },
1649 {
1650 "id": 147,
1651 "origin_id": 78,
1652 "origin_slot": 0,
1653 "target_id": 66,
1654 "target_slot": 0,
1655 "type": "MODEL"
1656 },
1657 {
1658 "id": 148,
1659 "origin_id": 82,
1660 "origin_slot": 0,
1661 "target_id": 3,
1662 "target_slot": 5,
1663 "type": "INT"
1664 },
1665 {
1666 "id": 149,
1667 "origin_id": 83,
1668 "origin_slot": 0,
1669 "target_id": 3,
1670 "target_slot": 6,
1671 "type": "FLOAT"
1672 },
1673 {
1674 "id": 150,
1675 "origin_id": 86,
1676 "origin_slot": 0,
1677 "target_id": 78,
1678 "target_slot": 2,
1679 "type": "BOOLEAN"
1680 },
1681 {
1682 "id": 151,
1683 "origin_id": 86,
1684 "origin_slot": 0,
1685 "target_id": 82,
1686 "target_slot": 2,
1687 "type": "BOOLEAN"
1688 },
1689 {
1690 "id": 152,
1691 "origin_id": 86,
1692 "origin_slot": 0,
1693 "target_id": 83,
1694 "target_slot": 2,
1695 "type": "BOOLEAN"
1696 },
1697 {
1698 "id": 153,
1699 "origin_id": -10,
1700 "origin_slot": 8,
1701 "target_id": 86,
1702 "target_slot": 0,
1703 "type": "BOOLEAN"
1704 }
1705 ],
1706 "extra": {
1707 "workflowRendererVersion": "LG"
1708 }
1709 }
1710 ]
1711 },
1712 "config": [],
1713 "extra": {
1714 "ds": {
1715 "scale": 0.4533427943753648,
1716 "offset": [
1717 1424.5341826223153,
1718 471.1223262382217
1719 ]
1720 },
1721 "frontendVersion": "1.41.13",
1722 "workflowRendererVersion": "LG",
1723 "ue_links": [],
1724 "links_added_by_ue": [],
1725 "VHS_latentpreview": false,
1726 "VHS_latentpreviewrate": 0,
1727 "VHS_MetadataImage": true,
1728 "VHS_KeepIntermediate": true
1729 },
1730 "version": 0.4
1731}