ComfyPilotComfyPilot
工作流 / 图像 / Qwen千问图像局部重绘ControlNet
Qwen千问图像局部重绘ControlNet

Qwen千问图像局部重绘ControlNet

Qwen-Image InstantX Inpainting ControlNet

使用Qwen千问Image InstantX ControlNet进行专业的局部重绘和图像编辑。支持对象替换、文本修改、背景更改和扩图。

图像 48 个节点 1 个输入 168 次使用 ComfyUI ≥ 0.3.57 ComfyUI 73 KB

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

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

需要的权重

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

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

节点构成

MarkdownNote × 5
CLIPTextEncode × 4
SaveImage × 4
CLIPLoader × 2
UNETLoader × 2
ControlNetLoader × 2
VAELoader × 2
ModelSamplingAuraFlow × 2
ControlNetInpaintingAliMamaApply × 2
Note × 2
VAEEncode × 2
MaskPreview × 2
LoraLoaderModelOnly × 2
VAEDecode × 2
ImageCompositeMasked × 2
KSampler × 2

官方标注的模型

Qwen-Image

工作流 JSON

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

1{
2 "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb",
3 "revision": 0,
4 "last_node_id": 223,
5 "last_link_id": 387,
6 "nodes": [
7 {
8 "id": 38,
9 "type": "CLIPLoader",
10 "pos": [
11 -90,
12 70
13 ],
14 "size": [
15 380,
16 106
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "CLIP",
25 "type": "CLIP",
26 "slot_index": 0,
27 "links": [
28 74,
29 75
30 ]
31 }
32 ],
33 "properties": {
34 "Node name for S&R": "CLIPLoader",
35 "cnr_id": "comfy-core",
36 "ver": "0.3.51",
37 "models": [
38 {
39 "name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
40 "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
41 "directory": "text_encoders"
42 }
43 ]
44 },
45 "widgets_values": [
46 "qwen_2.5_vl_7b_fp8_scaled.safetensors",
47 "qwen_image",
48 "default"
49 ]
50 },
51 {
52 "id": 37,
53 "type": "UNETLoader",
54 "pos": [
55 -90,
56 -60
57 ],
58 "size": [
59 380,
60 82
61 ],
62 "flags": [],
63 "order": 1,
64 "mode": 0,
65 "inputs": [],
66 "outputs": [
67 {
68 "name": "MODEL",
69 "type": "MODEL",
70 "slot_index": 0,
71 "links": [
72 145
73 ]
74 }
75 ],
76 "properties": {
77 "Node name for S&R": "UNETLoader",
78 "cnr_id": "comfy-core",
79 "ver": "0.3.51",
80 "models": [
81 {
82 "name": "qwen_image_fp8_e4m3fn.safetensors",
83 "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors",
84 "directory": "diffusion_models"
85 }
86 ]
87 },
88 "widgets_values": [
89 "qwen_image_fp8_e4m3fn.safetensors",
90 "default"
91 ]
92 },
93 {
94 "id": 7,
95 "type": "CLIPTextEncode",
96 "pos": [
97 330,
98 320
99 ],
100 "size": [
101 460,
102 140
103 ],
104 "flags": [],
105 "order": 18,
106 "mode": 0,
107 "inputs": [
108 {
109 "name": "clip",
110 "type": "CLIP",
111 "link": 75
112 }
113 ],
114 "outputs": [
115 {
116 "name": "CONDITIONING",
117 "type": "CONDITIONING",
118 "slot_index": 0,
119 "links": [
120 191
121 ]
122 }
123 ],
124 "title": "CLIP Text Encode (Negative Prompt)",
125 "properties": {
126 "Node name for S&R": "CLIPTextEncode",
127 "cnr_id": "comfy-core",
128 "ver": "0.3.51"
129 },
130 "widgets_values": [
131 " "
132 ],
133 "color": "#223",
134 "bgcolor": "#335"
135 },
136 {
137 "id": 84,
138 "type": "ControlNetLoader",
139 "pos": [
140 -90,
141 340
142 ],
143 "size": [
144 380,
145 58
146 ],
147 "flags": [],
148 "order": 2,
149 "mode": 0,
150 "inputs": [],
151 "outputs": [
152 {
153 "name": "CONTROL_NET",
154 "type": "CONTROL_NET",
155 "links": [
156 192
157 ]
158 }
159 ],
160 "properties": {
161 "Node name for S&R": "ControlNetLoader",
162 "cnr_id": "comfy-core",
163 "ver": "0.3.51",
164 "models": [
165 {
166 "name": "Qwen-Image-InstantX-ControlNet-Inpainting.safetensors",
167 "url": "https://huggingface.co/Comfy-Org/Qwen-Image-InstantX-ControlNets/resolve/main/split_files/controlnet/Qwen-Image-InstantX-ControlNet-Inpainting.safetensors",
168 "directory": "controlnet"
169 }
170 ]
171 },
172 "widgets_values": [
173 "Qwen-Image-InstantX-ControlNet-Inpainting.safetensors"
174 ]
175 },
176 {
177 "id": 39,
178 "type": "VAELoader",
179 "pos": [
180 -90,
181 230
182 ],
183 "size": [
184 380,
185 58
186 ],
187 "flags": [],
188 "order": 3,
189 "mode": 0,
190 "inputs": [],
191 "outputs": [
192 {
193 "name": "VAE",
194 "type": "VAE",
195 "slot_index": 0,
196 "links": [
197 76,
198 144,
199 193
200 ]
201 }
202 ],
203 "properties": {
204 "Node name for S&R": "VAELoader",
205 "cnr_id": "comfy-core",
206 "ver": "0.3.51",
207 "models": [
208 {
209 "name": "qwen_image_vae.safetensors",
210 "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors",
211 "directory": "vae"
212 }
213 ]
214 },
215 "widgets_values": [
216 "qwen_image_vae.safetensors"
217 ]
218 },
219 {
220 "id": 66,
221 "type": "ModelSamplingAuraFlow",
222 "pos": [
223 860,
224 -100
225 ],
226 "size": [
227 310,
228 58
229 ],
230 "flags": [],
231 "order": 26,
232 "mode": 0,
233 "inputs": [
234 {
235 "name": "model",
236 "type": "MODEL",
237 "link": 149
238 }
239 ],
240 "outputs": [
241 {
242 "name": "MODEL",
243 "type": "MODEL",
244 "links": [
245 156
246 ]
247 }
248 ],
249 "properties": {
250 "Node name for S&R": "ModelSamplingAuraFlow",
251 "cnr_id": "comfy-core",
252 "ver": "0.3.51"
253 },
254 "widgets_values": [
255 3.1000000000000005
256 ]
257 },
258 {
259 "id": 108,
260 "type": "ControlNetInpaintingAliMamaApply",
261 "pos": [
262 430,
263 560
264 ],
265 "size": [
266 317.0093688964844,
267 206
268 ],
269 "flags": [],
270 "order": 30,
271 "mode": 0,
272 "inputs": [
273 {
274 "name": "positive",
275 "type": "CONDITIONING",
276 "link": 190
277 },
278 {
279 "name": "negative",
280 "type": "CONDITIONING",
281 "link": 191
282 },
283 {
284 "name": "control_net",
285 "type": "CONTROL_NET",
286 "link": 192
287 },
288 {
289 "name": "vae",
290 "type": "VAE",
291 "link": 193
292 },
293 {
294 "name": "image",
295 "type": "IMAGE",
296 "link": 294
297 },
298 {
299 "name": "mask",
300 "type": "MASK",
301 "link": 220
302 }
303 ],
304 "outputs": [
305 {
306 "name": "positive",
307 "type": "CONDITIONING",
308 "links": [
309 188
310 ]
311 },
312 {
313 "name": "negative",
314 "type": "CONDITIONING",
315 "links": [
316 189
317 ]
318 }
319 ],
320 "properties": {
321 "Node name for S&R": "ControlNetInpaintingAliMamaApply",
322 "cnr_id": "comfy-core",
323 "ver": "0.3.59"
324 },
325 "widgets_values": [
326 1,
327 0,
328 1
329 ]
330 },
331 {
332 "id": 115,
333 "type": "MarkdownNote",
334 "pos": [
335 -470,
336 560
337 ],
338 "size": [
339 307.56927490234375,
340 169.79689025878906
341 ],
342 "flags": [],
343 "order": 4,
344 "mode": 0,
345 "inputs": [],
346 "outputs": [],
347 "title": "About how to create mask",
348 "properties": [],
349 "widgets_values": [
350 "Right-click on the Load Image node, then click \"Open in MaskEditor\" to open it and paint the area you want to inpaint.\n\nYou can learn more about MaskEditor in the [MaskEditor Document](https://docs.comfy.org/interface/maskeditor)"
351 ],
352 "color": "#222",
353 "bgcolor": "#000"
354 },
355 {
356 "id": 86,
357 "type": "Note",
358 "pos": [
359 860,
360 500
361 ],
362 "size": [
363 307.4002380371094,
364 127.38092803955078
365 ],
366 "flags": [],
367 "order": 5,
368 "mode": 0,
369 "inputs": [],
370 "outputs": [],
371 "properties": [],
372 "widgets_values": [
373 "Set cfg to 1.0 for a speed boost at the cost of consistency. Samplers like res_multistep work pretty well at cfg 1.0\n\nThe official number of steps is 50 but I think that's too much. Even just 10 steps seems to work."
374 ],
375 "color": "#222",
376 "bgcolor": "#000"
377 },
378 {
379 "id": 76,
380 "type": "VAEEncode",
381 "pos": [
382 430,
383 830
384 ],
385 "size": [
386 140,
387 46
388 ],
389 "flags": {
390 "collapsed": true
391 },
392 "order": 28,
393 "mode": 0,
394 "inputs": [
395 {
396 "name": "pixels",
397 "type": "IMAGE",
398 "link": 293
399 },
400 {
401 "name": "vae",
402 "type": "VAE",
403 "link": 144
404 }
405 ],
406 "outputs": [
407 {
408 "name": "LATENT",
409 "type": "LATENT",
410 "links": [
411 208
412 ]
413 }
414 ],
415 "properties": {
416 "Node name for S&R": "VAEEncode",
417 "cnr_id": "comfy-core",
418 "ver": "0.3.51"
419 },
420 "widgets_values": []
421 },
422 {
423 "id": 122,
424 "type": "SetLatentNoiseMask",
425 "pos": [
426 430,
427 890
428 ],
429 "size": [
430 230,
431 50
432 ],
433 "flags": {
434 "collapsed": true
435 },
436 "order": 32,
437 "mode": 0,
438 "inputs": [
439 {
440 "name": "samples",
441 "type": "LATENT",
442 "link": 208
443 },
444 {
445 "name": "mask",
446 "type": "MASK",
447 "link": 219
448 }
449 ],
450 "outputs": [
451 {
452 "name": "LATENT",
453 "type": "LATENT",
454 "links": [
455 210
456 ]
457 }
458 ],
459 "properties": {
460 "Node name for S&R": "SetLatentNoiseMask",
461 "cnr_id": "comfy-core",
462 "ver": "0.3.59"
463 },
464 "widgets_values": []
465 },
466 {
467 "id": 124,
468 "type": "MaskPreview",
469 "pos": [
470 440,
471 1100
472 ],
473 "size": [
474 320,
475 340
476 ],
477 "flags": [],
478 "order": 29,
479 "mode": 0,
480 "inputs": [
481 {
482 "name": "mask",
483 "type": "MASK",
484 "link": 215
485 }
486 ],
487 "outputs": [],
488 "properties": {
489 "Node name for S&R": "MaskPreview",
490 "cnr_id": "comfy-core",
491 "ver": "0.3.59"
492 },
493 "widgets_values": []
494 },
495 {
496 "id": 173,
497 "type": "MarkdownNote",
498 "pos": [
499 880,
500 1210
501 ],
502 "size": [
503 260,
504 130
505 ],
506 "flags": [],
507 "order": 6,
508 "mode": 0,
509 "inputs": [],
510 "outputs": [],
511 "title": "About ImageCompositeMasked",
512 "properties": [],
513 "widgets_values": [
514 "Some users might want to keep the unmasked area unchanged, though with ImageCompositeMasked, we can paste the original pixels back."
515 ],
516 "color": "#222",
517 "bgcolor": "#000"
518 },
519 {
520 "id": 174,
521 "type": "CLIPLoader",
522 "pos": [
523 2430,
524 60
525 ],
526 "size": [
527 380,
528 106
529 ],
530 "flags": [],
531 "order": 7,
532 "mode": 4,
533 "inputs": [],
534 "outputs": [
535 {
536 "name": "CLIP",
537 "type": "CLIP",
538 "slot_index": 0,
539 "links": [
540 296,
541 305
542 ]
543 }
544 ],
545 "properties": {
546 "Node name for S&R": "CLIPLoader",
547 "cnr_id": "comfy-core",
548 "ver": "0.3.51",
549 "models": [
550 {
551 "name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
552 "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
553 "directory": "text_encoders"
554 }
555 ]
556 },
557 "widgets_values": [
558 "qwen_2.5_vl_7b_fp8_scaled.safetensors",
559 "qwen_image",
560 "default"
561 ]
562 },
563 {
564 "id": 175,
565 "type": "UNETLoader",
566 "pos": [
567 2430,
568 -70
569 ],
570 "size": [
571 380,
572 82
573 ],
574 "flags": [],
575 "order": 8,
576 "mode": 4,
577 "inputs": [],
578 "outputs": [
579 {
580 "name": "MODEL",
581 "type": "MODEL",
582 "slot_index": 0,
583 "links": [
584 306
585 ]
586 }
587 ],
588 "properties": {
589 "Node name for S&R": "UNETLoader",
590 "cnr_id": "comfy-core",
591 "ver": "0.3.51",
592 "models": [
593 {
594 "name": "qwen_image_fp8_e4m3fn.safetensors",
595 "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors",
596 "directory": "diffusion_models"
597 }
598 ]
599 },
600 "widgets_values": [
601 "qwen_image_fp8_e4m3fn.safetensors",
602 "default"
603 ]
604 },
605 {
606 "id": 177,
607 "type": "ControlNetLoader",
608 "pos": [
609 2430,
610 330
611 ],
612 "size": [
613 380,
614 58
615 ],
616 "flags": [],
617 "order": 9,
618 "mode": 4,
619 "inputs": [],
620 "outputs": [
621 {
622 "name": "CONTROL_NET",
623 "type": "CONTROL_NET",
624 "links": [
625 301
626 ]
627 }
628 ],
629 "properties": {
630 "Node name for S&R": "ControlNetLoader",
631 "cnr_id": "comfy-core",
632 "ver": "0.3.51",
633 "models": [
634 {
635 "name": "Qwen-Image-InstantX-ControlNet-Inpainting.safetensors",
636 "url": "https://huggingface.co/Comfy-Org/Qwen-Image-InstantX-ControlNets/resolve/main/split_files/controlnet/Qwen-Image-InstantX-ControlNet-Inpainting.safetensors",
637 "directory": "controlnet"
638 }
639 ]
640 },
641 "widgets_values": [
642 "Qwen-Image-InstantX-ControlNet-Inpainting.safetensors"
643 ]
644 },
645 {
646 "id": 180,
647 "type": "ModelSamplingAuraFlow",
648 "pos": [
649 3400,
650 -110
651 ],
652 "size": [
653 310,
654 58
655 ],
656 "flags": [],
657 "order": 27,
658 "mode": 4,
659 "inputs": [
660 {
661 "name": "model",
662 "type": "MODEL",
663 "link": 298
664 }
665 ],
666 "outputs": [
667 {
668 "name": "MODEL",
669 "type": "MODEL",
670 "links": [
671 308
672 ]
673 }
674 ],
675 "properties": {
676 "Node name for S&R": "ModelSamplingAuraFlow",
677 "cnr_id": "comfy-core",
678 "ver": "0.3.51"
679 },
680 "widgets_values": [
681 3.1000000000000005
682 ]
683 },
684 {
685 "id": 172,
686 "type": "ImageScaleToMaxDimension",
687 "pos": [
688 -20,
689 1060
690 ],
691 "size": [
692 281.2027282714844,
693 82
694 ],
695 "flags": [],
696 "order": 23,
697 "mode": 0,
698 "inputs": [
699 {
700 "name": "image",
701 "type": "IMAGE",
702 "link": 292
703 }
704 ],
705 "outputs": [
706 {
707 "name": "IMAGE",
708 "type": "IMAGE",
709 "links": [
710 293,
711 294,
712 295
713 ]
714 }
715 ],
716 "properties": {
717 "Node name for S&R": "ImageScaleToMaxDimension",
718 "cnr_id": "comfy-core",
719 "ver": "0.3.59"
720 },
721 "widgets_values": [
722 "area",
723 1536
724 ]
725 },
726 {
727 "id": 185,
728 "type": "LoraLoaderModelOnly",
729 "pos": [
730 2870,
731 -80
732 ],
733 "size": [
734 430,
735 82
736 ],
737 "flags": [],
738 "order": 22,
739 "mode": 4,
740 "inputs": [
741 {
742 "name": "model",
743 "type": "MODEL",
744 "link": 306
745 }
746 ],
747 "outputs": [
748 {
749 "name": "MODEL",
750 "type": "MODEL",
751 "links": [
752 298
753 ]
754 }
755 ],
756 "properties": {
757 "Node name for S&R": "LoraLoaderModelOnly",
758 "cnr_id": "comfy-core",
759 "ver": "0.3.51",
760 "models": [
761 {
762 "name": "Qwen-Image-Lightning-4steps-V1.0.safetensors",
763 "url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0.safetensors",
764 "directory": "loras"
765 }
766 ]
767 },
768 "widgets_values": [
769 "Qwen-Image-Lightning-4steps-V1.0.safetensors",
770 1
771 ]
772 },
773 {
774 "id": 8,
775 "type": "VAEDecode",
776 "pos": [
777 900,
778 880
779 ],
780 "size": [
781 250,
782 46
783 ],
784 "flags": [],
785 "order": 39,
786 "mode": 0,
787 "inputs": [
788 {
789 "name": "samples",
790 "type": "LATENT",
791 "link": 128
792 },
793 {
794 "name": "vae",
795 "type": "VAE",
796 "link": 76
797 }
798 ],
799 "outputs": [
800 {
801 "name": "IMAGE",
802 "type": "IMAGE",
803 "slot_index": 0,
804 "links": [
805 110,
806 224
807 ]
808 }
809 ],
810 "properties": {
811 "Node name for S&R": "VAEDecode",
812 "cnr_id": "comfy-core",
813 "ver": "0.3.51"
814 },
815 "widgets_values": []
816 },
817 {
818 "id": 126,
819 "type": "ImageCompositeMasked",
820 "pos": [
821 890,
822 1000
823 ],
824 "size": [
825 250,
826 150
827 ],
828 "flags": [],
829 "order": 42,
830 "mode": 0,
831 "inputs": [
832 {
833 "name": "destination",
834 "type": "IMAGE",
835 "link": 295
836 },
837 {
838 "name": "source",
839 "type": "IMAGE",
840 "link": 224
841 },
842 {
843 "name": "mask",
844 "shape": 7,
845 "type": "MASK",
846 "link": 225
847 }
848 ],
849 "outputs": [
850 {
851 "name": "IMAGE",
852 "type": "IMAGE",
853 "links": [
854 274
855 ]
856 }
857 ],
858 "properties": {
859 "Node name for S&R": "ImageCompositeMasked",
860 "cnr_id": "comfy-core",
861 "ver": "0.3.59"
862 },
863 "widgets_values": [
864 0,
865 0,
866 false
867 ]
868 },
869 {
870 "id": 207,
871 "type": "MaskPreview",
872 "pos": [
873 3390,
874 980
875 ],
876 "size": [
877 340,
878 430
879 ],
880 "flags": [],
881 "order": 38,
882 "mode": 4,
883 "inputs": [
884 {
885 "name": "mask",
886 "type": "MASK",
887 "link": 376
888 }
889 ],
890 "outputs": [],
891 "properties": {
892 "Node name for S&R": "MaskPreview",
893 "cnr_id": "comfy-core",
894 "ver": "0.3.59"
895 },
896 "widgets_values": []
897 },
898 {
899 "id": 203,
900 "type": "PreviewImage",
901 "pos": [
902 2950,
903 980
904 ],
905 "size": [
906 310,
907 430
908 ],
909 "flags": [],
910 "order": 34,
911 "mode": 4,
912 "inputs": [
913 {
914 "name": "images",
915 "type": "IMAGE",
916 "link": 370
917 }
918 ],
919 "outputs": [],
920 "properties": {
921 "Node name for S&R": "PreviewImage",
922 "cnr_id": "comfy-core",
923 "ver": "0.3.59"
924 },
925 "widgets_values": []
926 },
927 {
928 "id": 190,
929 "type": "KSampler",
930 "pos": [
931 3400,
932 10
933 ],
934 "size": [
935 310,
936 474
937 ],
938 "flags": [],
939 "order": 40,
940 "mode": 4,
941 "inputs": [
942 {
943 "name": "model",
944 "type": "MODEL",
945 "link": 308
946 },
947 {
948 "name": "positive",
949 "type": "CONDITIONING",
950 "link": 386
951 },
952 {
953 "name": "negative",
954 "type": "CONDITIONING",
955 "link": 387
956 },
957 {
958 "name": "latent_image",
959 "type": "LATENT",
960 "link": 358
961 }
962 ],
963 "outputs": [
964 {
965 "name": "LATENT",
966 "type": "LATENT",
967 "slot_index": 0,
968 "links": [
969 312
970 ]
971 }
972 ],
973 "properties": {
974 "Node name for S&R": "KSampler",
975 "cnr_id": "comfy-core",
976 "ver": "0.3.51"
977 },
978 "widgets_values": [
979 375729975350303,
980 "randomize",
981 4,
982 1,
983 "euler",
984 "simple",
985 1
986 ]
987 },
988 {
989 "id": 117,
990 "type": "MarkdownNote",
991 "pos": [
992 -470,
993 1020
994 ],
995 "size": [
996 310,
997 180
998 ],
999 "flags": [],
1000 "order": 10,
1001 "mode": 0,
1002 "inputs": [],
1003 "outputs": [],
1004 "title": "About ImageScaleToMaxDimension",
1005 "properties": [],
1006 "widgets_values": [
1007 "The input image shouldn't be too large (such as more than 3000). A too large input might cause bad results. You can enable the *ImageScaleToMaxDimension* node to download and scale the input image."
1008 ],
1009 "color": "#222",
1010 "bgcolor": "#000"
1011 },
1012 {
1013 "id": 71,
1014 "type": "LoadImage",
1015 "pos": [
1016 -50,
1017 580
1018 ],
1019 "size": [
1020 310,
1021 326
1022 ],
1023 "flags": [],
1024 "order": 11,
1025 "mode": 0,
1026 "inputs": [],
1027 "outputs": [
1028 {
1029 "name": "IMAGE",
1030 "type": "IMAGE",
1031 "links": [
1032 292
1033 ]
1034 },
1035 {
1036 "name": "MASK",
1037 "type": "MASK",
1038 "links": [
1039 205
1040 ]
1041 }
1042 ],
1043 "properties": {
1044 "Node name for S&R": "LoadImage",
1045 "cnr_id": "comfy-core",
1046 "ver": "0.3.51"
1047 },
1048 "widgets_values": [
1049 "image_qwen_image_instantx_inpainting_controlnet_input_image.png",
1050 "image"
1051 ]
1052 },
1053 {
1054 "id": 78,
1055 "type": "MarkdownNote",
1056 "pos": [
1057 -680,
1058 -150
1059 ],
1060 "size": [
1061 541.36865234375,
1062 579.70263671875
1063 ],
1064 "flags": [],
1065 "order": 12,
1066 "mode": 0,
1067 "inputs": [],
1068 "outputs": [],
1069 "title": "Model links",
1070 "properties": {
1071 "widget_ue_connectable": []
1072 },
1073 "widgets_values": [
1074 "[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- [Hugging Face:Comfy-Org/Qwen-Image-InstantX-ControlNets](https://huggingface.co/Comfy-Org/Qwen-Image-InstantX-ControlNets)\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- [ModelScope:Comfy-Org/Qwen-Image-InstantX-ControlNets](https://modelscope.cn/models/Comfy-Org/Qwen-Image-InstantX-ControlNets)\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\n**ControlNet**\n\n- [Qwen-Image-InstantX-ControlNet-Inpainting.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-InstantX-ControlNets/resolve/main/split_files/controlnet/Qwen-Image-InstantX-ControlNet-Inpainting.safetensors) (3.94 GB)\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) (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│ ├── 📂 controlnet/ \n│ │ └── Qwen-Image-InstantX-ControlNet-Inpainting.safetensors\n│ ├── 📂 vae/\n│ │ └── qwen_image_vae.safetensors\n│ └── 📂 text_encoders/\n│ └── qwen_2.5_vl_7b_fp8_scaled.safetensors\n```\n"
1075 ],
1076 "color": "#222",
1077 "bgcolor": "#000"
1078 },
1079 {
1080 "id": 6,
1081 "type": "CLIPTextEncode",
1082 "pos": [
1083 330,
1084 110
1085 ],
1086 "size": [
1087 460,
1088 164.31304931640625
1089 ],
1090 "flags": [],
1091 "order": 17,
1092 "mode": 0,
1093 "inputs": [
1094 {
1095 "name": "clip",
1096 "type": "CLIP",
1097 "link": 74
1098 }
1099 ],
1100 "outputs": [
1101 {
1102 "name": "CONDITIONING",
1103 "type": "CONDITIONING",
1104 "slot_index": 0,
1105 "links": [
1106 190
1107 ]
1108 }
1109 ],
1110 "title": "CLIP Text Encode (Positive Prompt)",
1111 "properties": {
1112 "Node name for S&R": "CLIPTextEncode",
1113 "cnr_id": "comfy-core",
1114 "ver": "0.3.51"
1115 },
1116 "widgets_values": [
1117 "The Queen, on a throne, surrounded by Knights, HD, Realistic, Octane Render, Unreal engine"
1118 ],
1119 "color": "#232",
1120 "bgcolor": "#353"
1121 },
1122 {
1123 "id": 202,
1124 "type": "ImagePadForOutpaint",
1125 "pos": [
1126 2490,
1127 1030
1128 ],
1129 "size": [
1130 270,
1131 174
1132 ],
1133 "flags": [],
1134 "order": 25,
1135 "mode": 4,
1136 "inputs": [
1137 {
1138 "name": "image",
1139 "type": "IMAGE",
1140 "link": 351
1141 }
1142 ],
1143 "outputs": [
1144 {
1145 "name": "IMAGE",
1146 "type": "IMAGE",
1147 "links": [
1148 366
1149 ]
1150 },
1151 {
1152 "name": "MASK",
1153 "type": "MASK",
1154 "links": [
1155 365
1156 ]
1157 }
1158 ],
1159 "properties": {
1160 "Node name for S&R": "ImagePadForOutpaint",
1161 "cnr_id": "comfy-core",
1162 "ver": "0.3.59"
1163 },
1164 "widgets_values": [
1165 200,
1166 200,
1167 0,
1168 200,
1169 0
1170 ]
1171 },
1172 {
1173 "id": 121,
1174 "type": "cade3e30-0eb2-4fd2-bf6e-8518f3a96e0c",
1175 "pos": [
1176 430,
1177 950
1178 ],
1179 "size": [
1180 330,
1181 100
1182 ],
1183 "flags": [],
1184 "order": 24,
1185 "mode": 0,
1186 "inputs": [
1187 {
1188 "name": "mask",
1189 "type": "MASK",
1190 "link": 205
1191 }
1192 ],
1193 "outputs": [
1194 {
1195 "name": "MASK",
1196 "type": "MASK",
1197 "links": [
1198 215,
1199 219,
1200 220,
1201 225
1202 ]
1203 }
1204 ],
1205 "properties": {
1206 "proxyWidgets": [
1207 [
1208 "-1",
1209 "expand"
1210 ],
1211 [
1212 "-1",
1213 "blur_radius"
1214 ]
1215 ],
1216 "cnr_id": "comfy-core",
1217 "ver": "0.3.59"
1218 },
1219 "widgets_values": []
1220 },
1221 {
1222 "id": 220,
1223 "type": "f93c215e-c393-460e-9534-ed2c3d8a652e",
1224 "pos": [
1225 2480,
1226 1450
1227 ],
1228 "size": [
1229 330,
1230 100
1231 ],
1232 "flags": [],
1233 "order": 33,
1234 "mode": 4,
1235 "inputs": [
1236 {
1237 "name": "mask",
1238 "type": "MASK",
1239 "link": 377
1240 }
1241 ],
1242 "outputs": [
1243 {
1244 "name": "MASK",
1245 "type": "MASK",
1246 "links": [
1247 374,
1248 375,
1249 376
1250 ]
1251 }
1252 ],
1253 "properties": {
1254 "proxyWidgets": [
1255 [
1256 "-1",
1257 "expand"
1258 ],
1259 [
1260 "-1",
1261 "blur_radius"
1262 ]
1263 ],
1264 "cnr_id": "comfy-core",
1265 "ver": "0.3.59"
1266 },
1267 "widgets_values": []
1268 },
1269 {
1270 "id": 195,
1271 "type": "VAEEncode",
1272 "pos": [
1273 2950,
1274 820
1275 ],
1276 "size": [
1277 140,
1278 46
1279 ],
1280 "flags": {
1281 "collapsed": false
1282 },
1283 "order": 35,
1284 "mode": 4,
1285 "inputs": [
1286 {
1287 "name": "pixels",
1288 "type": "IMAGE",
1289 "link": 371
1290 },
1291 {
1292 "name": "vae",
1293 "type": "VAE",
1294 "link": 317
1295 }
1296 ],
1297 "outputs": [
1298 {
1299 "name": "LATENT",
1300 "type": "LATENT",
1301 "links": [
1302 358
1303 ]
1304 }
1305 ],
1306 "properties": {
1307 "Node name for S&R": "VAEEncode",
1308 "cnr_id": "comfy-core",
1309 "ver": "0.3.51"
1310 },
1311 "widgets_values": []
1312 },
1313 {
1314 "id": 181,
1315 "type": "ControlNetInpaintingAliMamaApply",
1316 "pos": [
1317 2940,
1318 560
1319 ],
1320 "size": [
1321 317.0093688964844,
1322 206
1323 ],
1324 "flags": [],
1325 "order": 37,
1326 "mode": 4,
1327 "inputs": [
1328 {
1329 "name": "positive",
1330 "type": "CONDITIONING",
1331 "link": 299
1332 },
1333 {
1334 "name": "negative",
1335 "type": "CONDITIONING",
1336 "link": 300
1337 },
1338 {
1339 "name": "control_net",
1340 "type": "CONTROL_NET",
1341 "link": 301
1342 },
1343 {
1344 "name": "vae",
1345 "type": "VAE",
1346 "link": 384
1347 },
1348 {
1349 "name": "image",
1350 "type": "IMAGE",
1351 "link": 385
1352 },
1353 {
1354 "name": "mask",
1355 "type": "MASK",
1356 "link": 375
1357 }
1358 ],
1359 "outputs": [
1360 {
1361 "name": "positive",
1362 "type": "CONDITIONING",
1363 "links": [
1364 386
1365 ]
1366 },
1367 {
1368 "name": "negative",
1369 "type": "CONDITIONING",
1370 "links": [
1371 387
1372 ]
1373 }
1374 ],
1375 "properties": {
1376 "Node name for S&R": "ControlNetInpaintingAliMamaApply",
1377 "cnr_id": "comfy-core",
1378 "ver": "0.3.59"
1379 },
1380 "widgets_values": [
1381 1,
1382 0,
1383 1
1384 ]
1385 },
1386 {
1387 "id": 178,
1388 "type": "VAELoader",
1389 "pos": [
1390 2430,
1391 220
1392 ],
1393 "size": [
1394 380,
1395 58
1396 ],
1397 "flags": [],
1398 "order": 13,
1399 "mode": 4,
1400 "inputs": [],
1401 "outputs": [
1402 {
1403 "name": "VAE",
1404 "type": "VAE",
1405 "slot_index": 0,
1406 "links": [
1407 313,
1408 317,
1409 384
1410 ]
1411 }
1412 ],
1413 "properties": {
1414 "Node name for S&R": "VAELoader",
1415 "cnr_id": "comfy-core",
1416 "ver": "0.3.51",
1417 "models": [
1418 {
1419 "name": "qwen_image_vae.safetensors",
1420 "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors",
1421 "directory": "vae"
1422 }
1423 ]
1424 },
1425 "widgets_values": [
1426 "qwen_image_vae.safetensors"
1427 ]
1428 },
1429 {
1430 "id": 219,
1431 "type": "2a4b2cc0-db37-4302-a067-da392f38f06b",
1432 "pos": [
1433 2480,
1434 1260
1435 ],
1436 "size": [
1437 280,
1438 80
1439 ],
1440 "flags": [],
1441 "order": 31,
1442 "mode": 4,
1443 "inputs": [
1444 {
1445 "name": "mask",
1446 "type": "MASK",
1447 "link": 365
1448 },
1449 {
1450 "name": "image",
1451 "type": "IMAGE",
1452 "link": 366
1453 }
1454 ],
1455 "outputs": [
1456 {
1457 "name": "MASK",
1458 "type": "MASK",
1459 "links": [
1460 377
1461 ]
1462 },
1463 {
1464 "name": "IMAGE",
1465 "type": "IMAGE",
1466 "links": [
1467 369,
1468 370,
1469 371,
1470 385
1471 ]
1472 }
1473 ],
1474 "properties": {
1475 "proxyWidgets": [
1476 [
1477 "-1",
1478 "value"
1479 ]
1480 ],
1481 "cnr_id": "comfy-core",
1482 "ver": "0.3.65"
1483 },
1484 "widgets_values": []
1485 },
1486 {
1487 "id": 189,
1488 "type": "SaveImage",
1489 "pos": [
1490 3770,
1491 990
1492 ],
1493 "size": [
1494 930,
1495 800
1496 ],
1497 "flags": [],
1498 "order": 47,
1499 "mode": 4,
1500 "inputs": [
1501 {
1502 "name": "images",
1503 "type": "IMAGE",
1504 "link": 307
1505 }
1506 ],
1507 "outputs": [],
1508 "properties": {
1509 "Node name for S&R": "SaveImage",
1510 "cnr_id": "comfy-core",
1511 "ver": "0.3.51"
1512 },
1513 "widgets_values": [
1514 "ComfyUI"
1515 ]
1516 },
1517 {
1518 "id": 193,
1519 "type": "LoadImage",
1520 "pos": [
1521 2470,
1522 570
1523 ],
1524 "size": [
1525 310,
1526 326
1527 ],
1528 "flags": [],
1529 "order": 14,
1530 "mode": 4,
1531 "inputs": [],
1532 "outputs": [
1533 {
1534 "name": "IMAGE",
1535 "type": "IMAGE",
1536 "links": [
1537 351
1538 ]
1539 },
1540 {
1541 "name": "MASK",
1542 "type": "MASK",
1543 "links": []
1544 }
1545 ],
1546 "properties": {
1547 "Node name for S&R": "LoadImage",
1548 "cnr_id": "comfy-core",
1549 "ver": "0.3.51"
1550 },
1551 "widgets_values": [
1552 "image_qwen_image_instantx_inpainting_controlnet_input_image.png",
1553 "image"
1554 ]
1555 },
1556 {
1557 "id": 192,
1558 "type": "SaveImage",
1559 "pos": [
1560 3770,
1561 70
1562 ],
1563 "size": [
1564 940,
1565 850
1566 ],
1567 "flags": [],
1568 "order": 45,
1569 "mode": 4,
1570 "inputs": [
1571 {
1572 "name": "images",
1573 "type": "IMAGE",
1574 "link": 314
1575 }
1576 ],
1577 "outputs": [],
1578 "properties": {
1579 "Node name for S&R": "SaveImage",
1580 "cnr_id": "comfy-core",
1581 "ver": "0.3.51"
1582 },
1583 "widgets_values": [
1584 "ComfyUI"
1585 ]
1586 },
1587 {
1588 "id": 182,
1589 "type": "CLIPTextEncode",
1590 "pos": [
1591 2850,
1592 100
1593 ],
1594 "size": [
1595 460,
1596 164.31304931640625
1597 ],
1598 "flags": [],
1599 "order": 21,
1600 "mode": 4,
1601 "inputs": [
1602 {
1603 "name": "clip",
1604 "type": "CLIP",
1605 "link": 305
1606 }
1607 ],
1608 "outputs": [
1609 {
1610 "name": "CONDITIONING",
1611 "type": "CONDITIONING",
1612 "slot_index": 0,
1613 "links": [
1614 299
1615 ]
1616 }
1617 ],
1618 "title": "CLIP Text Encode (Positive Prompt)",
1619 "properties": {
1620 "Node name for S&R": "CLIPTextEncode",
1621 "cnr_id": "comfy-core",
1622 "ver": "0.3.51"
1623 },
1624 "widgets_values": [
1625 "The King, on a throne, surrounded by Knights, HD, Realistic, Octane Render, Unreal engine"
1626 ],
1627 "color": "#232",
1628 "bgcolor": "#353"
1629 },
1630 {
1631 "id": 176,
1632 "type": "CLIPTextEncode",
1633 "pos": [
1634 2850,
1635 310
1636 ],
1637 "size": [
1638 460,
1639 140
1640 ],
1641 "flags": [],
1642 "order": 20,
1643 "mode": 4,
1644 "inputs": [
1645 {
1646 "name": "clip",
1647 "type": "CLIP",
1648 "link": 296
1649 }
1650 ],
1651 "outputs": [
1652 {
1653 "name": "CONDITIONING",
1654 "type": "CONDITIONING",
1655 "slot_index": 0,
1656 "links": [
1657 300
1658 ]
1659 }
1660 ],
1661 "title": "CLIP Text Encode (Negative Prompt)",
1662 "properties": {
1663 "Node name for S&R": "CLIPTextEncode",
1664 "cnr_id": "comfy-core",
1665 "ver": "0.3.51"
1666 },
1667 "widgets_values": [
1668 ""
1669 ],
1670 "color": "#223",
1671 "bgcolor": "#335"
1672 },
1673 {
1674 "id": 68,
1675 "type": "Note",
1676 "pos": [
1677 850,
1678 -300
1679 ],
1680 "size": [
1681 310,
1682 90
1683 ],
1684 "flags": [],
1685 "order": 15,
1686 "mode": 0,
1687 "inputs": [],
1688 "outputs": [],
1689 "properties": [],
1690 "widgets_values": [
1691 "Increase the shift if you get too many blurry/dark/bad images. Decrease if you want to try increasing detail."
1692 ],
1693 "color": "#222",
1694 "bgcolor": "#000"
1695 },
1696 {
1697 "id": 80,
1698 "type": "LoraLoaderModelOnly",
1699 "pos": [
1700 350,
1701 -70
1702 ],
1703 "size": [
1704 430,
1705 82
1706 ],
1707 "flags": [],
1708 "order": 19,
1709 "mode": 4,
1710 "inputs": [
1711 {
1712 "name": "model",
1713 "type": "MODEL",
1714 "link": 145
1715 }
1716 ],
1717 "outputs": [
1718 {
1719 "name": "MODEL",
1720 "type": "MODEL",
1721 "links": [
1722 149
1723 ]
1724 }
1725 ],
1726 "properties": {
1727 "Node name for S&R": "LoraLoaderModelOnly",
1728 "cnr_id": "comfy-core",
1729 "ver": "0.3.51",
1730 "models": [
1731 {
1732 "name": "Qwen-Image-Lightning-4steps-V1.0.safetensors",
1733 "url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0.safetensors",
1734 "directory": "loras"
1735 }
1736 ]
1737 },
1738 "widgets_values": [
1739 "Qwen-Image-Lightning-4steps-V1.0.safetensors",
1740 1
1741 ]
1742 },
1743 {
1744 "id": 3,
1745 "type": "KSampler",
1746 "pos": [
1747 860,
1748 20
1749 ],
1750 "size": [
1751 310,
1752 430
1753 ],
1754 "flags": [],
1755 "order": 36,
1756 "mode": 0,
1757 "inputs": [
1758 {
1759 "name": "model",
1760 "type": "MODEL",
1761 "link": 156
1762 },
1763 {
1764 "name": "positive",
1765 "type": "CONDITIONING",
1766 "link": 188
1767 },
1768 {
1769 "name": "negative",
1770 "type": "CONDITIONING",
1771 "link": 189
1772 },
1773 {
1774 "name": "latent_image",
1775 "type": "LATENT",
1776 "link": 210
1777 }
1778 ],
1779 "outputs": [
1780 {
1781 "name": "LATENT",
1782 "type": "LATENT",
1783 "slot_index": 0,
1784 "links": [
1785 128
1786 ]
1787 }
1788 ],
1789 "properties": {
1790 "Node name for S&R": "KSampler",
1791 "cnr_id": "comfy-core",
1792 "ver": "0.3.51"
1793 },
1794 "widgets_values": [
1795 134554158057228,
1796 "randomize",
1797 20,
1798 2.5,
1799 "euler",
1800 "simple",
1801 1
1802 ]
1803 },
1804 {
1805 "id": 163,
1806 "type": "SaveImage",
1807 "pos": [
1808 1270,
1809 840
1810 ],
1811 "size": [
1812 940,
1813 970
1814 ],
1815 "flags": [],
1816 "order": 44,
1817 "mode": 0,
1818 "inputs": [
1819 {
1820 "name": "images",
1821 "type": "IMAGE",
1822 "link": 274
1823 }
1824 ],
1825 "outputs": [],
1826 "properties": {
1827 "Node name for S&R": "SaveImage",
1828 "cnr_id": "comfy-core",
1829 "ver": "0.3.51"
1830 },
1831 "widgets_values": [
1832 "ComfyUI"
1833 ]
1834 },
1835 {
1836 "id": 60,
1837 "type": "SaveImage",
1838 "pos": [
1839 1280,
1840 -100
1841 ],
1842 "size": [
1843 930,
1844 880
1845 ],
1846 "flags": [],
1847 "order": 41,
1848 "mode": 0,
1849 "inputs": [
1850 {
1851 "name": "images",
1852 "type": "IMAGE",
1853 "link": 110
1854 }
1855 ],
1856 "outputs": [],
1857 "properties": {
1858 "Node name for S&R": "SaveImage",
1859 "cnr_id": "comfy-core",
1860 "ver": "0.3.51"
1861 },
1862 "widgets_values": [
1863 "ComfyUI"
1864 ]
1865 },
1866 {
1867 "id": 223,
1868 "type": "MarkdownNote",
1869 "pos": [
1870 860,
1871 670
1872 ],
1873 "size": [
1874 300,
1875 160
1876 ],
1877 "flags": [],
1878 "order": 16,
1879 "mode": 0,
1880 "inputs": [],
1881 "outputs": [],
1882 "title": "Note: KSampler settings",
1883 "properties": [],
1884 "widgets_values": [
1885 "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 |"
1886 ],
1887 "color": "#222",
1888 "bgcolor": "#000"
1889 },
1890 {
1891 "id": 191,
1892 "type": "VAEDecode",
1893 "pos": [
1894 3440,
1895 580
1896 ],
1897 "size": [
1898 250,
1899 46
1900 ],
1901 "flags": [],
1902 "order": 43,
1903 "mode": 4,
1904 "inputs": [
1905 {
1906 "name": "samples",
1907 "type": "LATENT",
1908 "link": 312
1909 },
1910 {
1911 "name": "vae",
1912 "type": "VAE",
1913 "link": 313
1914 }
1915 ],
1916 "outputs": [
1917 {
1918 "name": "IMAGE",
1919 "type": "IMAGE",
1920 "slot_index": 0,
1921 "links": [
1922 314,
1923 323
1924 ]
1925 }
1926 ],
1927 "properties": {
1928 "Node name for S&R": "VAEDecode",
1929 "cnr_id": "comfy-core",
1930 "ver": "0.3.51"
1931 },
1932 "widgets_values": []
1933 },
1934 {
1935 "id": 200,
1936 "type": "ImageCompositeMasked",
1937 "pos": [
1938 3440,
1939 670
1940 ],
1941 "size": [
1942 250,
1943 150
1944 ],
1945 "flags": [],
1946 "order": 46,
1947 "mode": 4,
1948 "inputs": [
1949 {
1950 "name": "destination",
1951 "type": "IMAGE",
1952 "link": 369
1953 },
1954 {
1955 "name": "source",
1956 "type": "IMAGE",
1957 "link": 323
1958 },
1959 {
1960 "name": "mask",
1961 "shape": 7,
1962 "type": "MASK",
1963 "link": 374
1964 }
1965 ],
1966 "outputs": [
1967 {
1968 "name": "IMAGE",
1969 "type": "IMAGE",
1970 "links": [
1971 307
1972 ]
1973 }
1974 ],
1975 "properties": {
1976 "Node name for S&R": "ImageCompositeMasked",
1977 "cnr_id": "comfy-core",
1978 "ver": "0.3.59"
1979 },
1980 "widgets_values": [
1981 0,
1982 0,
1983 false
1984 ]
1985 }
1986 ],
1987 "links": [
1988 [
1989 74,
1990 38,
1991 0,
1992 6,
1993 0,
1994 "CLIP"
1995 ],
1996 [
1997 75,
1998 38,
1999 0,
2000 7,
2001 0,
2002 "CLIP"
2003 ],
2004 [
2005 76,
2006 39,
2007 0,
2008 8,
2009 1,
2010 "VAE"
2011 ],
2012 [
2013 110,
2014 8,
2015 0,
2016 60,
2017 0,
2018 "IMAGE"
2019 ],
2020 [
2021 128,
2022 3,
2023 0,
2024 8,
2025 0,
2026 "LATENT"
2027 ],
2028 [
2029 144,
2030 39,
2031 0,
2032 76,
2033 1,
2034 "VAE"
2035 ],
2036 [
2037 145,
2038 37,
2039 0,
2040 80,
2041 0,
2042 "MODEL"
2043 ],
2044 [
2045 149,
2046 80,
2047 0,
2048 66,
2049 0,
2050 "MODEL"
2051 ],
2052 [
2053 156,
2054 66,
2055 0,
2056 3,
2057 0,
2058 "MODEL"
2059 ],
2060 [
2061 188,
2062 108,
2063 0,
2064 3,
2065 1,
2066 "CONDITIONING"
2067 ],
2068 [
2069 189,
2070 108,
2071 1,
2072 3,
2073 2,
2074 "CONDITIONING"
2075 ],
2076 [
2077 190,
2078 6,
2079 0,
2080 108,
2081 0,
2082 "CONDITIONING"
2083 ],
2084 [
2085 191,
2086 7,
2087 0,
2088 108,
2089 1,
2090 "CONDITIONING"
2091 ],
2092 [
2093 192,
2094 84,
2095 0,
2096 108,
2097 2,
2098 "CONTROL_NET"
2099 ],
2100 [
2101 193,
2102 39,
2103 0,
2104 108,
2105 3,
2106 "VAE"
2107 ],
2108 [
2109 205,
2110 71,
2111 1,
2112 121,
2113 0,
2114 "MASK"
2115 ],
2116 [
2117 208,
2118 76,
2119 0,
2120 122,
2121 0,
2122 "LATENT"
2123 ],
2124 [
2125 210,
2126 122,
2127 0,
2128 3,
2129 3,
2130 "LATENT"
2131 ],
2132 [
2133 215,
2134 121,
2135 0,
2136 124,
2137 0,
2138 "MASK"
2139 ],
2140 [
2141 219,
2142 121,
2143 0,
2144 122,
2145 1,
2146 "MASK"
2147 ],
2148 [
2149 220,
2150 121,
2151 0,
2152 108,
2153 5,
2154 "MASK"
2155 ],
2156 [
2157 224,
2158 8,
2159 0,
2160 126,
2161 1,
2162 "IMAGE"
2163 ],
2164 [
2165 225,
2166 121,
2167 0,
2168 126,
2169 2,
2170 "MASK"
2171 ],
2172 [
2173 274,
2174 126,
2175 0,
2176 163,
2177 0,
2178 "IMAGE"
2179 ],
2180 [
2181 292,
2182 71,
2183 0,
2184 172,
2185 0,
2186 "IMAGE"
2187 ],
2188 [
2189 293,
2190 172,
2191 0,
2192 76,
2193 0,
2194 "IMAGE"
2195 ],
2196 [
2197 294,
2198 172,
2199 0,
2200 108,
2201 4,
2202 "IMAGE"
2203 ],
2204 [
2205 295,
2206 172,
2207 0,
2208 126,
2209 0,
2210 "IMAGE"
2211 ],
2212 [
2213 296,
2214 174,
2215 0,
2216 176,
2217 0,
2218 "CLIP"
2219 ],
2220 [
2221 298,
2222 185,
2223 0,
2224 180,
2225 0,
2226 "MODEL"
2227 ],
2228 [
2229 299,
2230 182,
2231 0,
2232 181,
2233 0,
2234 "CONDITIONING"
2235 ],
2236 [
2237 300,
2238 176,
2239 0,
2240 181,
2241 1,
2242 "CONDITIONING"
2243 ],
2244 [
2245 301,
2246 177,
2247 0,
2248 181,
2249 2,
2250 "CONTROL_NET"
2251 ],
2252 [
2253 305,
2254 174,
2255 0,
2256 182,
2257 0,
2258 "CLIP"
2259 ],
2260 [
2261 306,
2262 175,
2263 0,
2264 185,
2265 0,
2266 "MODEL"
2267 ],
2268 [
2269 307,
2270 200,
2271 0,
2272 189,
2273 0,
2274 "IMAGE"
2275 ],
2276 [
2277 308,
2278 180,
2279 0,
2280 190,
2281 0,
2282 "MODEL"
2283 ],
2284 [
2285 312,
2286 190,
2287 0,
2288 191,
2289 0,
2290 "LATENT"
2291 ],
2292 [
2293 313,
2294 178,
2295 0,
2296 191,
2297 1,
2298 "VAE"
2299 ],
2300 [
2301 314,
2302 191,
2303 0,
2304 192,
2305 0,
2306 "IMAGE"
2307 ],
2308 [
2309 317,
2310 178,
2311 0,
2312 195,
2313 1,
2314 "VAE"
2315 ],
2316 [
2317 323,
2318 191,
2319 0,
2320 200,
2321 1,
2322 "IMAGE"
2323 ],
2324 [
2325 351,
2326 193,
2327 0,
2328 202,
2329 0,
2330 "IMAGE"
2331 ],
2332 [
2333 358,
2334 195,
2335 0,
2336 190,
2337 3,
2338 "LATENT"
2339 ],
2340 [
2341 365,
2342 202,
2343 1,
2344 219,
2345 0,
2346 "MASK"
2347 ],
2348 [
2349 366,
2350 202,
2351 0,
2352 219,
2353 1,
2354 "IMAGE"
2355 ],
2356 [
2357 369,
2358 219,
2359 1,
2360 200,
2361 0,
2362 "IMAGE"
2363 ],
2364 [
2365 370,
2366 219,
2367 1,
2368 203,
2369 0,
2370 "IMAGE"
2371 ],
2372 [
2373 371,
2374 219,
2375 1,
2376 195,
2377 0,
2378 "IMAGE"
2379 ],
2380 [
2381 374,
2382 220,
2383 0,
2384 200,
2385 2,
2386 "MASK"
2387 ],
2388 [
2389 375,
2390 220,
2391 0,
2392 181,
2393 5,
2394 "MASK"
2395 ],
2396 [
2397 376,
2398 220,
2399 0,
2400 207,
2401 0,
2402 "MASK"
2403 ],
2404 [
2405 377,
2406 219,
2407 0,
2408 220,
2409 0,
2410 "MASK"
2411 ],
2412 [
2413 384,
2414 178,
2415 0,
2416 181,
2417 3,
2418 "VAE"
2419 ],
2420 [
2421 385,
2422 219,
2423 1,
2424 181,
2425 4,
2426 "IMAGE"
2427 ],
2428 [
2429 386,
2430 181,
2431 0,
2432 190,
2433 1,
2434 "CONDITIONING"
2435 ],
2436 [
2437 387,
2438 181,
2439 1,
2440 190,
2441 2,
2442 "CONDITIONING"
2443 ]
2444 ],
2445 "groups": [
2446 {
2447 "id": 1,
2448 "title": "Step 1 - Upload models",
2449 "bounding": [
2450 -100,
2451 -140,
2452 400,
2453 610
2454 ],
2455 "color": "#3f789e",
2456 "font_size": 24,
2457 "flags": []
2458 },
2459 {
2460 "id": 2,
2461 "title": "Step 2 - Upload image and edit mask",
2462 "bounding": [
2463 -100,
2464 490,
2465 420,
2466 440
2467 ],
2468 "color": "#3f789e",
2469 "font_size": 24,
2470 "flags": []
2471 },
2472 {
2473 "id": 4,
2474 "title": "Step 3 - Prompt",
2475 "bounding": [
2476 320,
2477 40,
2478 490,
2479 430
2480 ],
2481 "color": "#3f789e",
2482 "font_size": 24,
2483 "flags": []
2484 },
2485 {
2486 "id": 5,
2487 "title": "4 steps lightning LoRA",
2488 "bounding": [
2489 320,
2490 -140,
2491 490,
2492 160
2493 ],
2494 "color": "#3f789e",
2495 "font_size": 24,
2496 "flags": []
2497 },
2498 {
2499 "id": 6,
2500 "title": "Ctrl-B to enable it",
2501 "bounding": [
2502 -100,
2503 950,
2504 420,
2505 290
2506 ],
2507 "color": "#3f789e",
2508 "font_size": 24,
2509 "flags": []
2510 },
2511 {
2512 "id": 12,
2513 "title": "For outpainting Ctrl-B to enable",
2514 "bounding": [
2515 2410,
2516 -190,
2517 2310,
2518 1993.5999755859375
2519 ],
2520 "color": "#3f789e",
2521 "font_size": 24,
2522 "flags": []
2523 },
2524 {
2525 "id": 7,
2526 "title": "Step 1 - Upload models",
2527 "bounding": [
2528 2420,
2529 -150,
2530 400,
2531 610
2532 ],
2533 "color": "#3f789e",
2534 "font_size": 24,
2535 "flags": []
2536 },
2537 {
2538 "id": 8,
2539 "title": "Step 2 - Upload image and edit mask",
2540 "bounding": [
2541 2420,
2542 480,
2543 420,
2544 440
2545 ],
2546 "color": "#3f789e",
2547 "font_size": 24,
2548 "flags": []
2549 },
2550 {
2551 "id": 9,
2552 "title": "Step 3 - Prompt",
2553 "bounding": [
2554 2840,
2555 30,
2556 490,
2557 430
2558 ],
2559 "color": "#3f789e",
2560 "font_size": 24,
2561 "flags": []
2562 },
2563 {
2564 "id": 10,
2565 "title": "4 steps lightning LoRA",
2566 "bounding": [
2567 2840,
2568 -150,
2569 490,
2570 160
2571 ],
2572 "color": "#3f789e",
2573 "font_size": 24,
2574 "flags": []
2575 },
2576 {
2577 "id": 11,
2578 "title": "Ctrl-B to enable it",
2579 "bounding": [
2580 2420,
2581 940,
2582 430,
2583 460
2584 ],
2585 "color": "#3f789e",
2586 "font_size": 24,
2587 "flags": []
2588 },
2589 {
2590 "id": 14,
2591 "title": "Inpainting",
2592 "bounding": [
2593 -110,
2594 -180,
2595 2330,
2596 2003.5999755859375
2597 ],
2598 "color": "#3f789e",
2599 "font_size": 24,
2600 "flags": []
2601 }
2602 ],
2603 "definitions": {
2604 "subgraphs": [
2605 {
2606 "id": "cade3e30-0eb2-4fd2-bf6e-8518f3a96e0c",
2607 "version": 1,
2608 "state": {
2609 "lastGroupId": 11,
2610 "lastNodeId": 255,
2611 "lastLinkId": 380,
2612 "lastRerouteId": 0
2613 },
2614 "revision": 0,
2615 "config": [],
2616 "name": "Grow and Blur Mask",
2617 "inputNode": {
2618 "id": -10,
2619 "bounding": [
2620 290,
2621 3536,
2622 120,
2623 100
2624 ]
2625 },
2626 "outputNode": {
2627 "id": -20,
2628 "bounding": [
2629 1130,
2630 3536,
2631 120,
2632 60
2633 ]
2634 },
2635 "inputs": [
2636 {
2637 "id": "3ac60d5e-8f9d-4663-9b24-b3a15a3e9e20",
2638 "name": "mask",
2639 "type": "MASK",
2640 "linkIds": [
2641 279
2642 ],
2643 "localized_name": "mask",
2644 "pos": [
2645 390,
2646 3556
2647 ]
2648 },
2649 {
2650 "id": "d1ab0cf5-7062-41ac-9f4b-8c660fc4a714",
2651 "name": "expand",
2652 "type": "INT",
2653 "linkIds": [
2654 379
2655 ],
2656 "pos": [
2657 390,
2658 3576
2659 ]
2660 },
2661 {
2662 "id": "1a787af5-da9f-44c5-9f5a-3f71609ca0ef",
2663 "name": "blur_radius",
2664 "type": "INT",
2665 "linkIds": [
2666 380
2667 ],
2668 "pos": [
2669 390,
2670 3596
2671 ]
2672 }
2673 ],
2674 "outputs": [
2675 {
2676 "id": "1f97f683-13d3-4871-876d-678fca850d89",
2677 "name": "MASK",
2678 "type": "MASK",
2679 "linkIds": [
2680 378
2681 ],
2682 "localized_name": "MASK",
2683 "pos": [
2684 1150,
2685 3556
2686 ]
2687 }
2688 ],
2689 "widgets": [],
2690 "nodes": [
2691 {
2692 "id": 253,
2693 "type": "ImageToMask",
2694 "pos": [
2695 800,
2696 3630
2697 ],
2698 "size": [
2699 270,
2700 58
2701 ],
2702 "flags": [],
2703 "order": 3,
2704 "mode": 0,
2705 "inputs": [
2706 {
2707 "localized_name": "image",
2708 "name": "image",
2709 "type": "IMAGE",
2710 "link": 377
2711 }
2712 ],
2713 "outputs": [
2714 {
2715 "localized_name": "MASK",
2716 "name": "MASK",
2717 "type": "MASK",
2718 "links": [
2719 378
2720 ]
2721 }
2722 ],
2723 "properties": {
2724 "Node name for S&R": "ImageToMask",
2725 "cnr_id": "comfy-core",
2726 "ver": "0.3.59"
2727 },
2728 "widgets_values": [
2729 "red"
2730 ]
2731 },
2732 {
2733 "id": 251,
2734 "type": "MaskToImage",
2735 "pos": [
2736 780,
2737 3470
2738 ],
2739 "size": [
2740 260,
2741 70
2742 ],
2743 "flags": [],
2744 "order": 1,
2745 "mode": 0,
2746 "inputs": [
2747 {
2748 "localized_name": "mask",
2749 "name": "mask",
2750 "type": "MASK",
2751 "link": 372
2752 }
2753 ],
2754 "outputs": [
2755 {
2756 "localized_name": "IMAGE",
2757 "name": "IMAGE",
2758 "type": "IMAGE",
2759 "links": [
2760 373
2761 ]
2762 }
2763 ],
2764 "properties": {
2765 "Node name for S&R": "MaskToImage",
2766 "cnr_id": "comfy-core",
2767 "ver": "0.3.59"
2768 },
2769 "widgets_values": []
2770 },
2771 {
2772 "id": 199,
2773 "type": "GrowMask",
2774 "pos": [
2775 470,
2776 3460
2777 ],
2778 "size": [
2779 270,
2780 82
2781 ],
2782 "flags": [],
2783 "order": 0,
2784 "mode": 0,
2785 "inputs": [
2786 {
2787 "localized_name": "mask",
2788 "name": "mask",
2789 "type": "MASK",
2790 "link": 279
2791 },
2792 {
2793 "localized_name": "expand",
2794 "name": "expand",
2795 "type": "INT",
2796 "widget": {
2797 "name": "expand"
2798 },
2799 "link": 379
2800 }
2801 ],
2802 "outputs": [
2803 {
2804 "localized_name": "MASK",
2805 "name": "MASK",
2806 "type": "MASK",
2807 "links": [
2808 372
2809 ]
2810 }
2811 ],
2812 "properties": {
2813 "Node name for S&R": "GrowMask",
2814 "cnr_id": "comfy-core",
2815 "ver": "0.3.59"
2816 },
2817 "widgets_values": [
2818 0,
2819 true
2820 ]
2821 },
2822 {
2823 "id": 252,
2824 "type": "ImageBlur",
2825 "pos": [
2826 480,
2827 3620
2828 ],
2829 "size": [
2830 270,
2831 82
2832 ],
2833 "flags": [],
2834 "order": 2,
2835 "mode": 0,
2836 "inputs": [
2837 {
2838 "localized_name": "image",
2839 "name": "image",
2840 "type": "IMAGE",
2841 "link": 373
2842 },
2843 {
2844 "localized_name": "blur_radius",
2845 "name": "blur_radius",
2846 "type": "INT",
2847 "widget": {
2848 "name": "blur_radius"
2849 },
2850 "link": 380
2851 }
2852 ],
2853 "outputs": [
2854 {
2855 "localized_name": "IMAGE",
2856 "name": "IMAGE",
2857 "type": "IMAGE",
2858 "links": [
2859 377
2860 ]
2861 }
2862 ],
2863 "properties": {
2864 "Node name for S&R": "ImageBlur",
2865 "cnr_id": "comfy-core",
2866 "ver": "0.3.59"
2867 },
2868 "widgets_values": [
2869 31,
2870 1
2871 ]
2872 }
2873 ],
2874 "groups": [],
2875 "links": [
2876 {
2877 "id": 373,
2878 "origin_id": 251,
2879 "origin_slot": 0,
2880 "target_id": 252,
2881 "target_slot": 0,
2882 "type": "IMAGE"
2883 },
2884 {
2885 "id": 377,
2886 "origin_id": 252,
2887 "origin_slot": 0,
2888 "target_id": 253,
2889 "target_slot": 0,
2890 "type": "IMAGE"
2891 },
2892 {
2893 "id": 372,
2894 "origin_id": 199,
2895 "origin_slot": 0,
2896 "target_id": 251,
2897 "target_slot": 0,
2898 "type": "MASK"
2899 },
2900 {
2901 "id": 279,
2902 "origin_id": -10,
2903 "origin_slot": 0,
2904 "target_id": 199,
2905 "target_slot": 0,
2906 "type": "MASK"
2907 },
2908 {
2909 "id": 378,
2910 "origin_id": 253,
2911 "origin_slot": 0,
2912 "target_id": -20,
2913 "target_slot": 0,
2914 "type": "MASK"
2915 },
2916 {
2917 "id": 379,
2918 "origin_id": -10,
2919 "origin_slot": 1,
2920 "target_id": 199,
2921 "target_slot": 1,
2922 "type": "INT"
2923 },
2924 {
2925 "id": 380,
2926 "origin_id": -10,
2927 "origin_slot": 2,
2928 "target_id": 252,
2929 "target_slot": 1,
2930 "type": "INT"
2931 }
2932 ],
2933 "extra": []
2934 },
2935 {
2936 "id": "2a4b2cc0-db37-4302-a067-da392f38f06b",
2937 "version": 1,
2938 "state": {
2939 "lastGroupId": 14,
2940 "lastNodeId": 218,
2941 "lastLinkId": 365,
2942 "lastRerouteId": 0
2943 },
2944 "revision": 0,
2945 "config": [],
2946 "name": "Scale image and mask(Subgraph)",
2947 "inputNode": {
2948 "id": -10,
2949 "bounding": [
2950 2110,
2951 1406,
2952 120,
2953 100
2954 ]
2955 },
2956 "outputNode": {
2957 "id": -20,
2958 "bounding": [
2959 3320,
2960 1406,
2961 120,
2962 80
2963 ]
2964 },
2965 "inputs": [
2966 {
2967 "id": "53ec80db-b075-446c-a79b-891d82ae3cf1",
2968 "name": "mask",
2969 "type": "MASK",
2970 "linkIds": [
2971 360
2972 ],
2973 "localized_name": "mask",
2974 "pos": [
2975 2210,
2976 1426
2977 ]
2978 },
2979 {
2980 "id": "37820e3d-f495-4b41-b0c6-58765a0c1766",
2981 "name": "image",
2982 "type": "IMAGE",
2983 "linkIds": [
2984 350
2985 ],
2986 "localized_name": "image",
2987 "pos": [
2988 2210,
2989 1446
2990 ]
2991 },
2992 {
2993 "id": "d388f5f1-7a36-4563-b104-9f7ec77f636d",
2994 "name": "value",
2995 "type": "INT",
2996 "linkIds": [
2997 365
2998 ],
2999 "pos": [
3000 2210,
3001 1466
3002 ]
3003 }
3004 ],
3005 "outputs": [
3006 {
3007 "id": "7ef75a31-2e69-4dce-8e13-76cd17b4c272",
3008 "name": "MASK",
3009 "type": "MASK",
3010 "linkIds": [
3011 364
3012 ],
3013 "localized_name": "MASK",
3014 "pos": [
3015 3340,
3016 1426
3017 ]
3018 },
3019 {
3020 "id": "36058145-b72c-4bd4-bb63-e2e22456d003",
3021 "name": "IMAGE",
3022 "type": "IMAGE",
3023 "linkIds": [
3024 352,
3025 353,
3026 354
3027 ],
3028 "localized_name": "IMAGE",
3029 "pos": [
3030 3340,
3031 1446
3032 ]
3033 }
3034 ],
3035 "widgets": [],
3036 "nodes": [
3037 {
3038 "id": 218,
3039 "type": "ImageToMask",
3040 "pos": [
3041 2990,
3042 1540
3043 ],
3044 "size": [
3045 270,
3046 58
3047 ],
3048 "flags": [],
3049 "order": 4,
3050 "mode": 0,
3051 "inputs": [
3052 {
3053 "localized_name": "image",
3054 "name": "image",
3055 "type": "IMAGE",
3056 "link": 363
3057 }
3058 ],
3059 "outputs": [
3060 {
3061 "localized_name": "MASK",
3062 "name": "MASK",
3063 "type": "MASK",
3064 "links": [
3065 364
3066 ]
3067 }
3068 ],
3069 "properties": {
3070 "Node name for S&R": "ImageToMask",
3071 "cnr_id": "comfy-core",
3072 "ver": "0.3.65"
3073 },
3074 "widgets_values": [
3075 "red"
3076 ]
3077 },
3078 {
3079 "id": 216,
3080 "type": "ImageScaleToMaxDimension",
3081 "pos": [
3082 2610,
3083 1570
3084 ],
3085 "size": [
3086 281.2027282714844,
3087 82
3088 ],
3089 "flags": [],
3090 "order": 2,
3091 "mode": 0,
3092 "inputs": [
3093 {
3094 "localized_name": "image",
3095 "name": "image",
3096 "type": "IMAGE",
3097 "link": 361
3098 },
3099 {
3100 "localized_name": "largest_size",
3101 "name": "largest_size",
3102 "type": "INT",
3103 "widget": {
3104 "name": "largest_size"
3105 },
3106 "link": 362
3107 }
3108 ],
3109 "outputs": [
3110 {
3111 "localized_name": "IMAGE",
3112 "name": "IMAGE",
3113 "type": "IMAGE",
3114 "links": [
3115 363
3116 ]
3117 }
3118 ],
3119 "properties": {
3120 "Node name for S&R": "ImageScaleToMaxDimension",
3121 "cnr_id": "comfy-core",
3122 "ver": "0.3.59"
3123 },
3124 "widgets_values": [
3125 "area",
3126 1536
3127 ]
3128 },
3129 {
3130 "id": 217,
3131 "type": "MaskToImage",
3132 "pos": [
3133 2700,
3134 1420
3135 ],
3136 "size": [
3137 184.62362670898438,
3138 26
3139 ],
3140 "flags": [],
3141 "order": 3,
3142 "mode": 0,
3143 "inputs": [
3144 {
3145 "localized_name": "mask",
3146 "name": "mask",
3147 "type": "MASK",
3148 "link": 360
3149 }
3150 ],
3151 "outputs": [
3152 {
3153 "localized_name": "IMAGE",
3154 "name": "IMAGE",
3155 "type": "IMAGE",
3156 "links": [
3157 361
3158 ]
3159 }
3160 ],
3161 "properties": {
3162 "Node name for S&R": "MaskToImage",
3163 "cnr_id": "comfy-core",
3164 "ver": "0.3.65"
3165 },
3166 "widgets_values": []
3167 },
3168 {
3169 "id": 194,
3170 "type": "ImageScaleToMaxDimension",
3171 "pos": [
3172 2590,
3173 1280
3174 ],
3175 "size": [
3176 281.2027282714844,
3177 82
3178 ],
3179 "flags": [],
3180 "order": 0,
3181 "mode": 0,
3182 "inputs": [
3183 {
3184 "localized_name": "image",
3185 "name": "image",
3186 "type": "IMAGE",
3187 "link": 350
3188 },
3189 {
3190 "localized_name": "largest_size",
3191 "name": "largest_size",
3192 "type": "INT",
3193 "widget": {
3194 "name": "largest_size"
3195 },
3196 "link": 359
3197 }
3198 ],
3199 "outputs": [
3200 {
3201 "localized_name": "IMAGE",
3202 "name": "IMAGE",
3203 "type": "IMAGE",
3204 "links": [
3205 352,
3206 353,
3207 354
3208 ]
3209 }
3210 ],
3211 "properties": {
3212 "Node name for S&R": "ImageScaleToMaxDimension",
3213 "cnr_id": "comfy-core",
3214 "ver": "0.3.59"
3215 },
3216 "widgets_values": [
3217 "area",
3218 1536
3219 ]
3220 },
3221 {
3222 "id": 215,
3223 "type": "PrimitiveInt",
3224 "pos": [
3225 2260,
3226 1560
3227 ],
3228 "size": [
3229 270,
3230 82
3231 ],
3232 "flags": [],
3233 "order": 1,
3234 "mode": 0,
3235 "inputs": [
3236 {
3237 "localized_name": "value",
3238 "name": "value",
3239 "type": "INT",
3240 "widget": {
3241 "name": "value"
3242 },
3243 "link": 365
3244 }
3245 ],
3246 "outputs": [
3247 {
3248 "localized_name": "INT",
3249 "name": "INT",
3250 "type": "INT",
3251 "links": [
3252 359,
3253 362
3254 ]
3255 }
3256 ],
3257 "properties": {
3258 "Node name for S&R": "PrimitiveInt",
3259 "cnr_id": "comfy-core",
3260 "ver": "0.3.65"
3261 },
3262 "widgets_values": [
3263 1536,
3264 "fixed"
3265 ]
3266 }
3267 ],
3268 "groups": [],
3269 "links": [
3270 {
3271 "id": 363,
3272 "origin_id": 216,
3273 "origin_slot": 0,
3274 "target_id": 218,
3275 "target_slot": 0,
3276 "type": "IMAGE"
3277 },
3278 {
3279 "id": 361,
3280 "origin_id": 217,
3281 "origin_slot": 0,
3282 "target_id": 216,
3283 "target_slot": 0,
3284 "type": "IMAGE"
3285 },
3286 {
3287 "id": 362,
3288 "origin_id": 215,
3289 "origin_slot": 0,
3290 "target_id": 216,
3291 "target_slot": 1,
3292 "type": "INT"
3293 },
3294 {
3295 "id": 359,
3296 "origin_id": 215,
3297 "origin_slot": 0,
3298 "target_id": 194,
3299 "target_slot": 1,
3300 "type": "INT"
3301 },
3302 {
3303 "id": 360,
3304 "origin_id": -10,
3305 "origin_slot": 0,
3306 "target_id": 217,
3307 "target_slot": 0,
3308 "type": "MASK"
3309 },
3310 {
3311 "id": 350,
3312 "origin_id": -10,
3313 "origin_slot": 1,
3314 "target_id": 194,
3315 "target_slot": 0,
3316 "type": "IMAGE"
3317 },
3318 {
3319 "id": 364,
3320 "origin_id": 218,
3321 "origin_slot": 0,
3322 "target_id": -20,
3323 "target_slot": 0,
3324 "type": "MASK"
3325 },
3326 {
3327 "id": 352,
3328 "origin_id": 194,
3329 "origin_slot": 0,
3330 "target_id": -20,
3331 "target_slot": 1,
3332 "type": "IMAGE"
3333 },
3334 {
3335 "id": 353,
3336 "origin_id": 194,
3337 "origin_slot": 0,
3338 "target_id": -20,
3339 "target_slot": 1,
3340 "type": "IMAGE"
3341 },
3342 {
3343 "id": 354,
3344 "origin_id": 194,
3345 "origin_slot": 0,
3346 "target_id": -20,
3347 "target_slot": 1,
3348 "type": "IMAGE"
3349 },
3350 {
3351 "id": 365,
3352 "origin_id": -10,
3353 "origin_slot": 2,
3354 "target_id": 215,
3355 "target_slot": 0,
3356 "type": "INT"
3357 }
3358 ],
3359 "extra": []
3360 },
3361 {
3362 "id": "f93c215e-c393-460e-9534-ed2c3d8a652e",
3363 "version": 1,
3364 "state": {
3365 "lastGroupId": 11,
3366 "lastNodeId": 255,
3367 "lastLinkId": 380,
3368 "lastRerouteId": 0
3369 },
3370 "revision": 0,
3371 "config": [],
3372 "name": "Grow and Blur Mask",
3373 "inputNode": {
3374 "id": -10,
3375 "bounding": [
3376 290,
3377 3536,
3378 120,
3379 100
3380 ]
3381 },
3382 "outputNode": {
3383 "id": -20,
3384 "bounding": [
3385 1130,
3386 3536,
3387 120,
3388 60
3389 ]
3390 },
3391 "inputs": [
3392 {
3393 "id": "3ac60d5e-8f9d-4663-9b24-b3a15a3e9e20",
3394 "name": "mask",
3395 "type": "MASK",
3396 "linkIds": [
3397 279
3398 ],
3399 "localized_name": "mask",
3400 "pos": [
3401 390,
3402 3556
3403 ]
3404 },
3405 {
3406 "id": "d1ab0cf5-7062-41ac-9f4b-8c660fc4a714",
3407 "name": "expand",
3408 "type": "INT",
3409 "linkIds": [
3410 379
3411 ],
3412 "pos": [
3413 390,
3414 3576
3415 ]
3416 },
3417 {
3418 "id": "1a787af5-da9f-44c5-9f5a-3f71609ca0ef",
3419 "name": "blur_radius",
3420 "type": "INT",
3421 "linkIds": [
3422 380
3423 ],
3424 "pos": [
3425 390,
3426 3596
3427 ]
3428 }
3429 ],
3430 "outputs": [
3431 {
3432 "id": "1f97f683-13d3-4871-876d-678fca850d89",
3433 "name": "MASK",
3434 "type": "MASK",
3435 "linkIds": [
3436 378
3437 ],
3438 "localized_name": "MASK",
3439 "pos": [
3440 1150,
3441 3556
3442 ]
3443 }
3444 ],
3445 "widgets": [],
3446 "nodes": [
3447 {
3448 "id": 253,
3449 "type": "ImageToMask",
3450 "pos": [
3451 800,
3452 3630
3453 ],
3454 "size": [
3455 270,
3456 58
3457 ],
3458 "flags": [],
3459 "order": 3,
3460 "mode": 0,
3461 "inputs": [
3462 {
3463 "localized_name": "image",
3464 "name": "image",
3465 "type": "IMAGE",
3466 "link": 377
3467 }
3468 ],
3469 "outputs": [
3470 {
3471 "localized_name": "MASK",
3472 "name": "MASK",
3473 "type": "MASK",
3474 "links": [
3475 378
3476 ]
3477 }
3478 ],
3479 "properties": {
3480 "Node name for S&R": "ImageToMask",
3481 "cnr_id": "comfy-core",
3482 "ver": "0.3.59"
3483 },
3484 "widgets_values": [
3485 "red"
3486 ]
3487 },
3488 {
3489 "id": 251,
3490 "type": "MaskToImage",
3491 "pos": [
3492 780,
3493 3470
3494 ],
3495 "size": [
3496 260,
3497 70
3498 ],
3499 "flags": [],
3500 "order": 1,
3501 "mode": 0,
3502 "inputs": [
3503 {
3504 "localized_name": "mask",
3505 "name": "mask",
3506 "type": "MASK",
3507 "link": 372
3508 }
3509 ],
3510 "outputs": [
3511 {
3512 "localized_name": "IMAGE",
3513 "name": "IMAGE",
3514 "type": "IMAGE",
3515 "links": [
3516 373
3517 ]
3518 }
3519 ],
3520 "properties": {
3521 "Node name for S&R": "MaskToImage",
3522 "cnr_id": "comfy-core",
3523 "ver": "0.3.59"
3524 },
3525 "widgets_values": []
3526 },
3527 {
3528 "id": 199,
3529 "type": "GrowMask",
3530 "pos": [
3531 470,
3532 3460
3533 ],
3534 "size": [
3535 270,
3536 82
3537 ],
3538 "flags": [],
3539 "order": 0,
3540 "mode": 0,
3541 "inputs": [
3542 {
3543 "localized_name": "mask",
3544 "name": "mask",
3545 "type": "MASK",
3546 "link": 279
3547 },
3548 {
3549 "localized_name": "expand",
3550 "name": "expand",
3551 "type": "INT",
3552 "widget": {
3553 "name": "expand"
3554 },
3555 "link": 379
3556 }
3557 ],
3558 "outputs": [
3559 {
3560 "localized_name": "MASK",
3561 "name": "MASK",
3562 "type": "MASK",
3563 "links": [
3564 372
3565 ]
3566 }
3567 ],
3568 "properties": {
3569 "Node name for S&R": "GrowMask",
3570 "cnr_id": "comfy-core",
3571 "ver": "0.3.59"
3572 },
3573 "widgets_values": [
3574 20,
3575 true
3576 ]
3577 },
3578 {
3579 "id": 252,
3580 "type": "ImageBlur",
3581 "pos": [
3582 480,
3583 3620
3584 ],
3585 "size": [
3586 270,
3587 82
3588 ],
3589 "flags": [],
3590 "order": 2,
3591 "mode": 0,
3592 "inputs": [
3593 {
3594 "localized_name": "image",
3595 "name": "image",
3596 "type": "IMAGE",
3597 "link": 373
3598 },
3599 {
3600 "localized_name": "blur_radius",
3601 "name": "blur_radius",
3602 "type": "INT",
3603 "widget": {
3604 "name": "blur_radius"
3605 },
3606 "link": 380
3607 }
3608 ],
3609 "outputs": [
3610 {
3611 "localized_name": "IMAGE",
3612 "name": "IMAGE",
3613 "type": "IMAGE",
3614 "links": [
3615 377
3616 ]
3617 }
3618 ],
3619 "properties": {
3620 "Node name for S&R": "ImageBlur",
3621 "cnr_id": "comfy-core",
3622 "ver": "0.3.59"
3623 },
3624 "widgets_values": [
3625 31,
3626 1
3627 ]
3628 }
3629 ],
3630 "groups": [],
3631 "links": [
3632 {
3633 "id": 373,
3634 "origin_id": 251,
3635 "origin_slot": 0,
3636 "target_id": 252,
3637 "target_slot": 0,
3638 "type": "IMAGE"
3639 },
3640 {
3641 "id": 377,
3642 "origin_id": 252,
3643 "origin_slot": 0,
3644 "target_id": 253,
3645 "target_slot": 0,
3646 "type": "IMAGE"
3647 },
3648 {
3649 "id": 372,
3650 "origin_id": 199,
3651 "origin_slot": 0,
3652 "target_id": 251,
3653 "target_slot": 0,
3654 "type": "MASK"
3655 },
3656 {
3657 "id": 279,
3658 "origin_id": -10,
3659 "origin_slot": 0,
3660 "target_id": 199,
3661 "target_slot": 0,
3662 "type": "MASK"
3663 },
3664 {
3665 "id": 378,
3666 "origin_id": 253,
3667 "origin_slot": 0,
3668 "target_id": -20,
3669 "target_slot": 0,
3670 "type": "MASK"
3671 },
3672 {
3673 "id": 379,
3674 "origin_id": -10,
3675 "origin_slot": 1,
3676 "target_id": 199,
3677 "target_slot": 1,
3678 "type": "INT"
3679 },
3680 {
3681 "id": 380,
3682 "origin_id": -10,
3683 "origin_slot": 2,
3684 "target_id": 252,
3685 "target_slot": 1,
3686 "type": "INT"
3687 }
3688 ],
3689 "extra": []
3690 }
3691 ]
3692 },
3693 "config": [],
3694 "extra": {
3695 "ds": {
3696 "scale": 0.2719095486181405,
3697 "offset": [
3698 2886.2468145906096,
3699 1073.0822807717493
3700 ]
3701 },
3702 "frontendVersion": "1.32.1",
3703 "groupNodes": [],
3704 "VHS_latentpreview": false,
3705 "VHS_latentpreviewrate": 0,
3706 "VHS_MetadataImage": true,
3707 "VHS_KeepIntermediate": true
3708 },
3709 "version": 0.4
3710}