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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "a8c979e8-d460-4135-b5c8-6df6df26e702",
3
+ "revision": 0,
4
+ "last_node_id": 55,
5
+ "last_link_id": 39,
6
+ "nodes": [
7
+ {
8
+ "id": 1,
9
+ "type": "UNETLoader",
10
+ "pos": [
11
+ -40,
12
+ -620
13
+ ],
14
+ "size": [
15
+ 340,
16
+ 82
17
+ ],
18
+ "flags": {},
19
+ "order": 0,
20
+ "mode": 0,
21
+ "inputs": [],
22
+ "outputs": [
23
+ {
24
+ "name": "MODEL",
25
+ "type": "MODEL",
26
+ "slot_index": 0,
27
+ "links": [
28
+ 1
29
+ ]
30
+ }
31
+ ],
32
+ "properties": {
33
+ "Node name for S&R": "UNETLoader",
34
+ "cnr_id": "comfy-core",
35
+ "ver": "0.3.48"
36
+ },
37
+ "widgets_values": [
38
+ "qwen_image_edit_2511_bf16.safetensors",
39
+ "default"
40
+ ]
41
+ },
42
+ {
43
+ "id": 3,
44
+ "type": "CLIPLoader",
45
+ "pos": [
46
+ -40,
47
+ -360
48
+ ],
49
+ "size": [
50
+ 340,
51
+ 110
52
+ ],
53
+ "flags": {},
54
+ "order": 1,
55
+ "mode": 0,
56
+ "inputs": [],
57
+ "outputs": [
58
+ {
59
+ "name": "CLIP",
60
+ "type": "CLIP",
61
+ "slot_index": 0,
62
+ "links": [
63
+ 9
64
+ ]
65
+ }
66
+ ],
67
+ "properties": {
68
+ "Node name for S&R": "CLIPLoader",
69
+ "cnr_id": "comfy-core",
70
+ "ver": "0.3.48"
71
+ },
72
+ "widgets_values": [
73
+ "qwen_2.5_vl_7b.safetensors",
74
+ "qwen_image",
75
+ "default"
76
+ ]
77
+ },
78
+ {
79
+ "id": 4,
80
+ "type": "VAELoader",
81
+ "pos": [
82
+ -40,
83
+ -200
84
+ ],
85
+ "size": [
86
+ 340,
87
+ 60
88
+ ],
89
+ "flags": {},
90
+ "order": 2,
91
+ "mode": 0,
92
+ "inputs": [],
93
+ "outputs": [
94
+ {
95
+ "name": "VAE",
96
+ "type": "VAE",
97
+ "slot_index": 0,
98
+ "links": [
99
+ 10,
100
+ 11
101
+ ]
102
+ }
103
+ ],
104
+ "properties": {
105
+ "Node name for S&R": "VAELoader",
106
+ "cnr_id": "comfy-core",
107
+ "ver": "0.3.48"
108
+ },
109
+ "widgets_values": [
110
+ "qwen_image_vae.safetensors"
111
+ ]
112
+ },
113
+ {
114
+ "id": 5,
115
+ "type": "PrimitiveBoolean",
116
+ "pos": [
117
+ 360,
118
+ -620
119
+ ],
120
+ "size": [
121
+ 280,
122
+ 60
123
+ ],
124
+ "flags": {},
125
+ "order": 3,
126
+ "mode": 0,
127
+ "inputs": [],
128
+ "outputs": [
129
+ {
130
+ "name": "BOOLEAN",
131
+ "type": "BOOLEAN",
132
+ "slot_index": 0,
133
+ "links": [
134
+ 3
135
+ ]
136
+ }
137
+ ],
138
+ "title": "Lightning Mode (fast)",
139
+ "properties": {
140
+ "Node name for S&R": "PrimitiveBoolean",
141
+ "cnr_id": "comfy-core",
142
+ "ver": "0.3.48"
143
+ },
144
+ "widgets_values": [
145
+ true
146
+ ]
147
+ },
148
+ {
149
+ "id": 13,
150
+ "type": "ModelSamplingAuraFlow",
151
+ "pos": [
152
+ 1020,
153
+ -620
154
+ ],
155
+ "size": [
156
+ 300,
157
+ 58
158
+ ],
159
+ "flags": {},
160
+ "order": 13,
161
+ "mode": 0,
162
+ "inputs": [
163
+ {
164
+ "name": "model",
165
+ "type": "MODEL",
166
+ "link": 4
167
+ }
168
+ ],
169
+ "outputs": [
170
+ {
171
+ "name": "MODEL",
172
+ "type": "MODEL",
173
+ "slot_index": 0,
174
+ "links": [
175
+ 7
176
+ ]
177
+ }
178
+ ],
179
+ "properties": {
180
+ "Node name for S&R": "ModelSamplingAuraFlow",
181
+ "cnr_id": "comfy-core",
182
+ "ver": "0.3.48"
183
+ },
184
+ "widgets_values": [
185
+ 3.1
186
+ ]
187
+ },
188
+ {
189
+ "id": 14,
190
+ "type": "CFGNorm",
191
+ "pos": [
192
+ 1020,
193
+ -510
194
+ ],
195
+ "size": [
196
+ 300,
197
+ 82
198
+ ],
199
+ "flags": {},
200
+ "order": 14,
201
+ "mode": 0,
202
+ "inputs": [
203
+ {
204
+ "name": "model",
205
+ "type": "MODEL",
206
+ "link": 7
207
+ }
208
+ ],
209
+ "outputs": [
210
+ {
211
+ "name": "patched_model",
212
+ "type": "MODEL",
213
+ "slot_index": 0,
214
+ "links": [
215
+ 8
216
+ ]
217
+ }
218
+ ],
219
+ "properties": {
220
+ "Node name for S&R": "CFGNorm",
221
+ "cnr_id": "comfy-core",
222
+ "ver": "0.3.48"
223
+ },
224
+ "widgets_values": [
225
+ 1,
226
+ false
227
+ ]
228
+ },
229
+ {
230
+ "id": 15,
231
+ "type": "PrimitiveBoolean",
232
+ "pos": [
233
+ -1500,
234
+ -280
235
+ ],
236
+ "size": [
237
+ 340,
238
+ 60
239
+ ],
240
+ "flags": {},
241
+ "order": 4,
242
+ "mode": 0,
243
+ "inputs": [],
244
+ "outputs": [
245
+ {
246
+ "name": "BOOLEAN",
247
+ "type": "BOOLEAN",
248
+ "slot_index": 0,
249
+ "links": [
250
+ 15,
251
+ 21
252
+ ]
253
+ }
254
+ ],
255
+ "title": "upscale_input_to_max_size",
256
+ "properties": {
257
+ "Node name for S&R": "PrimitiveBoolean",
258
+ "cnr_id": "comfy-core",
259
+ "ver": "0.3.48"
260
+ },
261
+ "widgets_values": [
262
+ true
263
+ ]
264
+ },
265
+ {
266
+ "id": 16,
267
+ "type": "PrimitiveBoolean",
268
+ "pos": [
269
+ -1500,
270
+ -180
271
+ ],
272
+ "size": [
273
+ 340,
274
+ 60
275
+ ],
276
+ "flags": {},
277
+ "order": 7,
278
+ "mode": 0,
279
+ "inputs": [],
280
+ "outputs": [
281
+ {
282
+ "name": "BOOLEAN",
283
+ "type": "BOOLEAN",
284
+ "slot_index": 0,
285
+ "links": [
286
+ 16,
287
+ 22
288
+ ]
289
+ }
290
+ ],
291
+ "title": "downscale_input_to_max_size",
292
+ "properties": {
293
+ "Node name for S&R": "PrimitiveBoolean",
294
+ "cnr_id": "comfy-core",
295
+ "ver": "0.3.48"
296
+ },
297
+ "widgets_values": [
298
+ false
299
+ ]
300
+ },
301
+ {
302
+ "id": 20,
303
+ "type": "LoadImage",
304
+ "pos": [
305
+ -1500,
306
+ -60
307
+ ],
308
+ "size": [
309
+ 270,
310
+ 330
311
+ ],
312
+ "flags": {},
313
+ "order": 12,
314
+ "mode": 0,
315
+ "inputs": [],
316
+ "outputs": [
317
+ {
318
+ "name": "IMAGE",
319
+ "type": "IMAGE",
320
+ "slot_index": 0,
321
+ "links": [
322
+ 12,
323
+ 13
324
+ ]
325
+ },
326
+ {
327
+ "name": "MASK",
328
+ "type": "MASK",
329
+ "links": null
330
+ }
331
+ ],
332
+ "title": "Main Image",
333
+ "properties": {
334
+ "Node name for S&R": "LoadImage",
335
+ "cnr_id": "comfy-core",
336
+ "ver": "0.3.48"
337
+ },
338
+ "widgets_values": [
339
+ "733427737_18059858666742129_6215894921112236726_n.jpg",
340
+ "image"
341
+ ]
342
+ },
343
+ {
344
+ "id": 21,
345
+ "type": "PrimitiveInt",
346
+ "pos": [
347
+ -1500,
348
+ 320
349
+ ],
350
+ "size": [
351
+ 270,
352
+ 82
353
+ ],
354
+ "flags": {},
355
+ "order": 11,
356
+ "mode": 0,
357
+ "inputs": [],
358
+ "outputs": [
359
+ {
360
+ "name": "INT",
361
+ "type": "INT",
362
+ "slot_index": 0,
363
+ "links": [
364
+ 14
365
+ ]
366
+ }
367
+ ],
368
+ "title": "Input max size (main)",
369
+ "properties": {
370
+ "Node name for S&R": "PrimitiveInt",
371
+ "cnr_id": "comfy-core",
372
+ "ver": "0.3.48"
373
+ },
374
+ "widgets_values": [
375
+ 2048,
376
+ "fixed"
377
+ ]
378
+ },
379
+ {
380
+ "id": 27,
381
+ "type": "QwenEditConfigPreparer",
382
+ "pos": [
383
+ -280,
384
+ -60
385
+ ],
386
+ "size": [
387
+ 340,
388
+ 320
389
+ ],
390
+ "flags": {},
391
+ "order": 15,
392
+ "mode": 0,
393
+ "inputs": [
394
+ {
395
+ "name": "image",
396
+ "type": "IMAGE",
397
+ "link": 13
398
+ },
399
+ {
400
+ "name": "configs",
401
+ "shape": 7,
402
+ "type": "LIST",
403
+ "link": null
404
+ },
405
+ {
406
+ "name": "mask",
407
+ "shape": 7,
408
+ "type": "MASK",
409
+ "link": null
410
+ },
411
+ {
412
+ "name": "ref_longest_edge",
413
+ "shape": 7,
414
+ "type": "INT",
415
+ "widget": {
416
+ "name": "ref_longest_edge"
417
+ },
418
+ "link": 17
419
+ }
420
+ ],
421
+ "outputs": [
422
+ {
423
+ "name": "configs",
424
+ "type": "LIST",
425
+ "slot_index": 0,
426
+ "links": [
427
+ 24
428
+ ]
429
+ },
430
+ {
431
+ "name": "config",
432
+ "type": "ANY",
433
+ "links": null
434
+ }
435
+ ],
436
+ "title": "Main image config",
437
+ "properties": {
438
+ "Node name for S&R": "QwenEditConfigPreparer",
439
+ "cnr_id": "comfyui-qweneditutils",
440
+ "ver": "1.0.0"
441
+ },
442
+ "widgets_values": [
443
+ true,
444
+ true,
445
+ 1536,
446
+ "pad",
447
+ "lanczos",
448
+ true,
449
+ true,
450
+ 384,
451
+ "center",
452
+ "bicubic"
453
+ ]
454
+ },
455
+ {
456
+ "id": 30,
457
+ "type": "LoadImage",
458
+ "pos": [
459
+ -1500,
460
+ 460
461
+ ],
462
+ "size": [
463
+ 270,
464
+ 330
465
+ ],
466
+ "flags": {},
467
+ "order": 8,
468
+ "mode": 0,
469
+ "inputs": [],
470
+ "outputs": [
471
+ {
472
+ "name": "IMAGE",
473
+ "type": "IMAGE",
474
+ "slot_index": 0,
475
+ "links": [
476
+ 18,
477
+ 19
478
+ ]
479
+ },
480
+ {
481
+ "name": "MASK",
482
+ "type": "MASK",
483
+ "links": null
484
+ }
485
+ ],
486
+ "title": "Reference Image 2 (optional)",
487
+ "properties": {
488
+ "Node name for S&R": "LoadImage",
489
+ "cnr_id": "comfy-core",
490
+ "ver": "0.3.48"
491
+ },
492
+ "widgets_values": [
493
+ "b.png",
494
+ "image"
495
+ ]
496
+ },
497
+ {
498
+ "id": 31,
499
+ "type": "PrimitiveInt",
500
+ "pos": [
501
+ -1500,
502
+ 840
503
+ ],
504
+ "size": [
505
+ 270,
506
+ 82
507
+ ],
508
+ "flags": {},
509
+ "order": 5,
510
+ "mode": 0,
511
+ "inputs": [],
512
+ "outputs": [
513
+ {
514
+ "name": "INT",
515
+ "type": "INT",
516
+ "slot_index": 0,
517
+ "links": [
518
+ 20
519
+ ]
520
+ }
521
+ ],
522
+ "title": "Input max size (ref 2)",
523
+ "properties": {
524
+ "Node name for S&R": "PrimitiveInt",
525
+ "cnr_id": "comfy-core",
526
+ "ver": "0.3.48"
527
+ },
528
+ "widgets_values": [
529
+ 1024,
530
+ "fixed"
531
+ ]
532
+ },
533
+ {
534
+ "id": 37,
535
+ "type": "QwenEditConfigPreparer",
536
+ "pos": [
537
+ -280,
538
+ 460
539
+ ],
540
+ "size": [
541
+ 340,
542
+ 320
543
+ ],
544
+ "flags": {},
545
+ "order": 23,
546
+ "mode": 0,
547
+ "inputs": [
548
+ {
549
+ "name": "image",
550
+ "type": "IMAGE",
551
+ "link": 19
552
+ },
553
+ {
554
+ "name": "configs",
555
+ "shape": 7,
556
+ "type": "LIST",
557
+ "link": 24
558
+ },
559
+ {
560
+ "name": "mask",
561
+ "shape": 7,
562
+ "type": "MASK",
563
+ "link": null
564
+ },
565
+ {
566
+ "name": "ref_longest_edge",
567
+ "shape": 7,
568
+ "type": "INT",
569
+ "widget": {
570
+ "name": "ref_longest_edge"
571
+ },
572
+ "link": 23
573
+ }
574
+ ],
575
+ "outputs": [
576
+ {
577
+ "name": "configs",
578
+ "type": "LIST",
579
+ "slot_index": 0,
580
+ "links": [
581
+ 25
582
+ ]
583
+ },
584
+ {
585
+ "name": "config",
586
+ "type": "ANY",
587
+ "links": null
588
+ }
589
+ ],
590
+ "title": "Reference image 2 config",
591
+ "properties": {
592
+ "Node name for S&R": "QwenEditConfigPreparer",
593
+ "cnr_id": "comfyui-qweneditutils",
594
+ "ver": "1.0.0"
595
+ },
596
+ "widgets_values": [
597
+ true,
598
+ false,
599
+ 1024,
600
+ "center",
601
+ "lanczos",
602
+ true,
603
+ true,
604
+ 384,
605
+ "center",
606
+ "bicubic"
607
+ ]
608
+ },
609
+ {
610
+ "id": 40,
611
+ "type": "TextEncodeQwenImageEditPlusCustom_lrzjason",
612
+ "pos": [
613
+ 120,
614
+ 40
615
+ ],
616
+ "size": [
617
+ 400,
618
+ 260
619
+ ],
620
+ "flags": {},
621
+ "order": 24,
622
+ "mode": 0,
623
+ "inputs": [
624
+ {
625
+ "name": "clip",
626
+ "type": "CLIP",
627
+ "link": 9
628
+ },
629
+ {
630
+ "name": "vae",
631
+ "type": "VAE",
632
+ "link": 10
633
+ },
634
+ {
635
+ "name": "configs",
636
+ "type": "LIST",
637
+ "link": 25
638
+ }
639
+ ],
640
+ "outputs": [
641
+ {
642
+ "name": "conditioning",
643
+ "type": "CONDITIONING",
644
+ "slot_index": 0,
645
+ "links": [
646
+ 26,
647
+ 27
648
+ ]
649
+ },
650
+ {
651
+ "name": "latent",
652
+ "type": "LATENT",
653
+ "slot_index": 1,
654
+ "links": [
655
+ 28
656
+ ]
657
+ },
658
+ {
659
+ "name": "custom_output",
660
+ "type": "ANY",
661
+ "slot_index": 2,
662
+ "links": [
663
+ 29
664
+ ]
665
+ }
666
+ ],
667
+ "title": "Qwen Edit Encode (prompt here)",
668
+ "properties": {
669
+ "Node name for S&R": "TextEncodeQwenImageEditPlusCustom_lrzjason",
670
+ "cnr_id": "comfyui-qweneditutils",
671
+ "ver": "1.0.0"
672
+ },
673
+ "widgets_values": [
674
+ "replace the outfit of the subject in the first image with the outfit in the second image, don't change anything else. do not change the body's anatomy or shape or skin tone. only put the outfit onto the person in the first image. ",
675
+ true,
676
+ ""
677
+ ]
678
+ },
679
+ {
680
+ "id": 41,
681
+ "type": "QwenEditOutputExtractor",
682
+ "pos": [
683
+ 560,
684
+ 300
685
+ ],
686
+ "size": [
687
+ 300,
688
+ 260
689
+ ],
690
+ "flags": {},
691
+ "order": 16,
692
+ "mode": 0,
693
+ "inputs": [
694
+ {
695
+ "name": "custom_output",
696
+ "type": "ANY",
697
+ "link": 29
698
+ }
699
+ ],
700
+ "outputs": [
701
+ {
702
+ "name": "pad_info",
703
+ "type": "ANY",
704
+ "slot_index": 0,
705
+ "links": [
706
+ 30
707
+ ]
708
+ },
709
+ {
710
+ "name": "full_refs_cond",
711
+ "type": "CONDITIONING",
712
+ "links": null
713
+ },
714
+ {
715
+ "name": "main_ref_cond",
716
+ "type": "CONDITIONING",
717
+ "links": null
718
+ },
719
+ {
720
+ "name": "main_image",
721
+ "type": "IMAGE",
722
+ "links": null
723
+ },
724
+ {
725
+ "name": "vae_images",
726
+ "type": "LIST",
727
+ "links": null
728
+ },
729
+ {
730
+ "name": "ref_latents",
731
+ "type": "LIST",
732
+ "links": null
733
+ },
734
+ {
735
+ "name": "vl_images",
736
+ "type": "LIST",
737
+ "links": null
738
+ },
739
+ {
740
+ "name": "full_prompt",
741
+ "type": "STRING",
742
+ "links": null
743
+ },
744
+ {
745
+ "name": "llama_template",
746
+ "type": "STRING",
747
+ "links": null
748
+ },
749
+ {
750
+ "name": "no_refs_cond",
751
+ "type": "CONDITIONING",
752
+ "links": null
753
+ },
754
+ {
755
+ "name": "mask",
756
+ "type": "MASK",
757
+ "links": null
758
+ }
759
+ ],
760
+ "properties": {
761
+ "Node name for S&R": "QwenEditOutputExtractor",
762
+ "cnr_id": "comfyui-qweneditutils",
763
+ "ver": "1.0.0"
764
+ },
765
+ "widgets_values": []
766
+ },
767
+ {
768
+ "id": 42,
769
+ "type": "ConditioningZeroOut",
770
+ "pos": [
771
+ 560,
772
+ 180
773
+ ],
774
+ "size": [
775
+ 280,
776
+ 50
777
+ ],
778
+ "flags": {},
779
+ "order": 17,
780
+ "mode": 0,
781
+ "inputs": [
782
+ {
783
+ "name": "conditioning",
784
+ "type": "CONDITIONING",
785
+ "link": 27
786
+ }
787
+ ],
788
+ "outputs": [
789
+ {
790
+ "name": "CONDITIONING",
791
+ "type": "CONDITIONING",
792
+ "slot_index": 0,
793
+ "links": [
794
+ 31
795
+ ]
796
+ }
797
+ ],
798
+ "title": "Negative (zeroed)",
799
+ "properties": {
800
+ "Node name for S&R": "ConditioningZeroOut",
801
+ "cnr_id": "comfy-core",
802
+ "ver": "0.3.48"
803
+ },
804
+ "widgets_values": []
805
+ },
806
+ {
807
+ "id": 43,
808
+ "type": "KSampler",
809
+ "pos": [
810
+ 1020,
811
+ -20
812
+ ],
813
+ "size": [
814
+ 300,
815
+ 450
816
+ ],
817
+ "flags": {},
818
+ "order": 18,
819
+ "mode": 0,
820
+ "inputs": [
821
+ {
822
+ "name": "model",
823
+ "type": "MODEL",
824
+ "link": 8
825
+ },
826
+ {
827
+ "name": "positive",
828
+ "type": "CONDITIONING",
829
+ "link": 26
830
+ },
831
+ {
832
+ "name": "negative",
833
+ "type": "CONDITIONING",
834
+ "link": 31
835
+ },
836
+ {
837
+ "name": "latent_image",
838
+ "type": "LATENT",
839
+ "link": 28
840
+ },
841
+ {
842
+ "name": "steps",
843
+ "type": "INT",
844
+ "widget": {
845
+ "name": "steps"
846
+ },
847
+ "link": 5
848
+ },
849
+ {
850
+ "name": "cfg",
851
+ "type": "FLOAT",
852
+ "widget": {
853
+ "name": "cfg"
854
+ },
855
+ "link": 6
856
+ }
857
+ ],
858
+ "outputs": [
859
+ {
860
+ "name": "LATENT",
861
+ "type": "LATENT",
862
+ "slot_index": 0,
863
+ "links": [
864
+ 32
865
+ ]
866
+ }
867
+ ],
868
+ "properties": {
869
+ "Node name for S&R": "KSampler",
870
+ "cnr_id": "comfy-core",
871
+ "ver": "0.3.48"
872
+ },
873
+ "widgets_values": [
874
+ 440984114065874,
875
+ "randomize",
876
+ 4,
877
+ 1,
878
+ "euler",
879
+ "simple",
880
+ 1
881
+ ]
882
+ },
883
+ {
884
+ "id": 44,
885
+ "type": "VAEDecode",
886
+ "pos": [
887
+ 1380,
888
+ -20
889
+ ],
890
+ "size": [
891
+ 210,
892
+ 50
893
+ ],
894
+ "flags": {},
895
+ "order": 19,
896
+ "mode": 0,
897
+ "inputs": [
898
+ {
899
+ "name": "samples",
900
+ "type": "LATENT",
901
+ "link": 32
902
+ },
903
+ {
904
+ "name": "vae",
905
+ "type": "VAE",
906
+ "link": 11
907
+ }
908
+ ],
909
+ "outputs": [
910
+ {
911
+ "name": "IMAGE",
912
+ "type": "IMAGE",
913
+ "slot_index": 0,
914
+ "links": [
915
+ 33
916
+ ]
917
+ }
918
+ ],
919
+ "properties": {
920
+ "Node name for S&R": "VAEDecode",
921
+ "cnr_id": "comfy-core",
922
+ "ver": "0.3.48"
923
+ },
924
+ "widgets_values": []
925
+ },
926
+ {
927
+ "id": 45,
928
+ "type": "CropWithPadInfo",
929
+ "pos": [
930
+ 1380,
931
+ 80
932
+ ],
933
+ "size": [
934
+ 280,
935
+ 80
936
+ ],
937
+ "flags": {},
938
+ "order": 20,
939
+ "mode": 0,
940
+ "inputs": [
941
+ {
942
+ "name": "image",
943
+ "type": "IMAGE",
944
+ "link": 33
945
+ },
946
+ {
947
+ "name": "pad_info",
948
+ "type": "ANY",
949
+ "link": 30
950
+ }
951
+ ],
952
+ "outputs": [
953
+ {
954
+ "name": "cropped_image",
955
+ "type": "IMAGE",
956
+ "slot_index": 0,
957
+ "links": [
958
+ 34,
959
+ 35
960
+ ]
961
+ },
962
+ {
963
+ "name": "scale_by",
964
+ "type": "FLOAT",
965
+ "links": null
966
+ }
967
+ ],
968
+ "title": "Remove padding",
969
+ "properties": {
970
+ "Node name for S&R": "CropWithPadInfo",
971
+ "cnr_id": "comfyui-qweneditutils",
972
+ "ver": "1.0.0"
973
+ },
974
+ "widgets_values": []
975
+ },
976
+ {
977
+ "id": 46,
978
+ "type": "PrimitiveBoolean",
979
+ "pos": [
980
+ -1494.6789488916759,
981
+ 1068.0949715843533
982
+ ],
983
+ "size": [
984
+ 340,
985
+ 60
986
+ ],
987
+ "flags": {},
988
+ "order": 9,
989
+ "mode": 0,
990
+ "inputs": [],
991
+ "outputs": [
992
+ {
993
+ "name": "BOOLEAN",
994
+ "type": "BOOLEAN",
995
+ "slot_index": 0,
996
+ "links": [
997
+ 36
998
+ ]
999
+ }
1000
+ ],
1001
+ "title": "upscale_output_to_selected_size",
1002
+ "properties": {
1003
+ "Node name for S&R": "PrimitiveBoolean",
1004
+ "cnr_id": "comfy-core",
1005
+ "ver": "0.3.48"
1006
+ },
1007
+ "widgets_values": [
1008
+ true
1009
+ ]
1010
+ },
1011
+ {
1012
+ "id": 47,
1013
+ "type": "PrimitiveInt",
1014
+ "pos": [
1015
+ -1459.7493527176991,
1016
+ 1220.4204109055643
1017
+ ],
1018
+ "size": [
1019
+ 340,
1020
+ 82
1021
+ ],
1022
+ "flags": {},
1023
+ "order": 10,
1024
+ "mode": 0,
1025
+ "inputs": [],
1026
+ "outputs": [
1027
+ {
1028
+ "name": "INT",
1029
+ "type": "INT",
1030
+ "slot_index": 0,
1031
+ "links": [
1032
+ 37
1033
+ ]
1034
+ }
1035
+ ],
1036
+ "title": "Selected output size",
1037
+ "properties": {
1038
+ "Node name for S&R": "PrimitiveInt",
1039
+ "cnr_id": "comfy-core",
1040
+ "ver": "0.3.48"
1041
+ },
1042
+ "widgets_values": [
1043
+ 2560,
1044
+ "fixed"
1045
+ ]
1046
+ },
1047
+ {
1048
+ "id": 48,
1049
+ "type": "ImageScaleToMaxDimension",
1050
+ "pos": [
1051
+ 1380,
1052
+ 430
1053
+ ],
1054
+ "size": [
1055
+ 280,
1056
+ 100
1057
+ ],
1058
+ "flags": {},
1059
+ "order": 21,
1060
+ "mode": 0,
1061
+ "inputs": [
1062
+ {
1063
+ "name": "image",
1064
+ "type": "IMAGE",
1065
+ "link": 34
1066
+ },
1067
+ {
1068
+ "name": "largest_size",
1069
+ "type": "INT",
1070
+ "widget": {
1071
+ "name": "largest_size"
1072
+ },
1073
+ "link": 37
1074
+ }
1075
+ ],
1076
+ "outputs": [
1077
+ {
1078
+ "name": "IMAGE",
1079
+ "type": "IMAGE",
1080
+ "slot_index": 0,
1081
+ "links": [
1082
+ 38
1083
+ ]
1084
+ }
1085
+ ],
1086
+ "title": "Scale output",
1087
+ "properties": {
1088
+ "Node name for S&R": "ImageScaleToMaxDimension",
1089
+ "cnr_id": "comfy-core",
1090
+ "ver": "0.3.48"
1091
+ },
1092
+ "widgets_values": [
1093
+ "lanczos",
1094
+ 2048
1095
+ ]
1096
+ },
1097
+ {
1098
+ "id": 49,
1099
+ "type": "ComfySwitchNode",
1100
+ "pos": [
1101
+ 1771.4977928964804,
1102
+ 126.14589590612728
1103
+ ],
1104
+ "size": [
1105
+ 280,
1106
+ 100
1107
+ ],
1108
+ "flags": {},
1109
+ "order": 25,
1110
+ "mode": 0,
1111
+ "inputs": [
1112
+ {
1113
+ "name": "on_false",
1114
+ "type": "IMAGE",
1115
+ "link": 35
1116
+ },
1117
+ {
1118
+ "name": "on_true",
1119
+ "type": "IMAGE",
1120
+ "link": 38
1121
+ },
1122
+ {
1123
+ "name": "switch",
1124
+ "type": "BOOLEAN",
1125
+ "widget": {
1126
+ "name": "switch"
1127
+ },
1128
+ "link": 36
1129
+ }
1130
+ ],
1131
+ "outputs": [
1132
+ {
1133
+ "name": "output",
1134
+ "type": "IMAGE",
1135
+ "slot_index": 0,
1136
+ "links": [
1137
+ 39
1138
+ ]
1139
+ }
1140
+ ],
1141
+ "title": "Output size switch",
1142
+ "properties": {
1143
+ "Node name for S&R": "ComfySwitchNode",
1144
+ "cnr_id": "comfy-core",
1145
+ "ver": "0.3.48"
1146
+ },
1147
+ "widgets_values": [
1148
+ false
1149
+ ]
1150
+ },
1151
+ {
1152
+ "id": 50,
1153
+ "type": "SaveImage",
1154
+ "pos": [
1155
+ 2060,
1156
+ -20
1157
+ ],
1158
+ "size": [
1159
+ 400,
1160
+ 460
1161
+ ],
1162
+ "flags": {},
1163
+ "order": 22,
1164
+ "mode": 0,
1165
+ "inputs": [
1166
+ {
1167
+ "name": "images",
1168
+ "type": "IMAGE",
1169
+ "link": 39
1170
+ }
1171
+ ],
1172
+ "outputs": [
1173
+ {
1174
+ "name": "images",
1175
+ "type": "IMAGE",
1176
+ "links": null
1177
+ }
1178
+ ],
1179
+ "properties": {
1180
+ "cnr_id": "comfy-core",
1181
+ "ver": "0.3.48",
1182
+ "Node name for S&R": "SaveImage"
1183
+ },
1184
+ "widgets_values": [
1185
+ "qwen-edit-turbo-v3"
1186
+ ]
1187
+ },
1188
+ {
1189
+ "id": 51,
1190
+ "type": "MarkdownNote",
1191
+ "pos": [
1192
+ -1500,
1193
+ -720
1194
+ ],
1195
+ "size": [
1196
+ 620,
1197
+ 380
1198
+ ],
1199
+ "flags": {},
1200
+ "order": 6,
1201
+ "mode": 0,
1202
+ "inputs": [],
1203
+ "outputs": [],
1204
+ "title": "README",
1205
+ "properties": {
1206
+ "cnr_id": "comfy-core",
1207
+ "ver": "0.3.48",
1208
+ "Node name for S&R": "MarkdownNote"
1209
+ },
1210
+ "widgets_values": [
1211
+ "## Qwen Edit Turbo v3 + LoRAs (rev 2)\n\n**2511 + Lightning toggle + input size normalization + output size control** (needs [Comfyui-QwenEditUtils](https://github.com/lrzjason/Comfyui-QwenEditUtils) + [ComfyUI-Custom-Scripts](https://github.com/pythongosssss/ComfyUI-Custom-Scripts))\n\n- **Lightning Mode** true = 4 steps / CFG 1.0 with the Lightning LoRA; false = 12 steps / CFG 3.0, no LoRA. Swap the LoRA widget + Steps (lightning) for the 8-step variant.\n- **upscale_input_to_max_size** (true): inputs smaller than *Input max size* are upscaled to it. **downscale_input_to_max_size** (true): larger inputs are downscaled to it. Both true = always render at max size (1536 main / 1024 ref). Both false = render at native input size. Applies to both image chains.\n- **upscale_output_to_selected_size** (false): scale the final image so its longest edge = *Selected output size* (2048). Off = output stays at render size. (For real detail gain use the qwen-edit-upscale-2k workflow on the output instead - this is plain lanczos.)\n- **User LoRAs**: add any number of extra LoRAs in the *User LoRAs* node (applied in both Lightning and quality mode). Via API: `--set 52.lora_1='{\"on\": true, \"lora\": \"<file>\", \"strength\": 1.0}'` (lora_2, lora_3, ... for more).\n- The Lightning switches and input-size math now live inside subgraphs (*Lightning toggle*, *Input size limiter*) - double-click to open; Steps/CFG for each mode are inside *Lightning toggle*.\n- **Reference Image 2**: bypassed by default - Ctrl+B the purple group to enable for multi-image edits.\n- Aspect ratio is always preserved exactly (pad encode + CropWithPadInfo after decode).\n\n**Models** (all in [aleph65/ComfyUI](https://huggingface.co/aleph65/ComfyUI)): `qwen_image_edit_2511_bf16`, `qwen_2.5_vl_7b`, `qwen_image_vae`, Lightning 4/8-step loras\n"
1212
+ ],
1213
+ "color": "#432",
1214
+ "bgcolor": "#653"
1215
+ },
1216
+ {
1217
+ "id": 52,
1218
+ "type": "Power Lora Loader (rgthree)",
1219
+ "pos": [
1220
+ -40,
1221
+ -490
1222
+ ],
1223
+ "size": [
1224
+ 340,
1225
+ 210
1226
+ ],
1227
+ "flags": {},
1228
+ "order": 26,
1229
+ "mode": 0,
1230
+ "inputs": [
1231
+ {
1232
+ "dir": 3,
1233
+ "name": "model",
1234
+ "type": "MODEL",
1235
+ "link": 1
1236
+ },
1237
+ {
1238
+ "dir": 3,
1239
+ "name": "clip",
1240
+ "type": "CLIP",
1241
+ "link": null
1242
+ }
1243
+ ],
1244
+ "outputs": [
1245
+ {
1246
+ "dir": 4,
1247
+ "name": "MODEL",
1248
+ "type": "MODEL",
1249
+ "slot_index": 0,
1250
+ "links": [
1251
+ 2
1252
+ ]
1253
+ },
1254
+ {
1255
+ "dir": 4,
1256
+ "name": "CLIP",
1257
+ "type": "CLIP",
1258
+ "slot_index": 1,
1259
+ "links": null
1260
+ }
1261
+ ],
1262
+ "title": "User LoRAs",
1263
+ "properties": {
1264
+ "Show Strengths": "Single Strength",
1265
+ "Match": "",
1266
+ "Node name for S&R": "Power Lora Loader (rgthree)"
1267
+ },
1268
+ "widgets_values": [
1269
+ {},
1270
+ {
1271
+ "type": "PowerLoraLoaderHeaderWidget"
1272
+ },
1273
+ {
1274
+ "on": false,
1275
+ "lora": "Qwen_LoRA_Skin_Fix_v2.safetensors",
1276
+ "strength": 1,
1277
+ "strengthTwo": null
1278
+ },
1279
+ {
1280
+ "on": false,
1281
+ "lora": "Qwen_LoRA_Amateur_Photo_v1.safetensors",
1282
+ "strength": 1,
1283
+ "strengthTwo": null
1284
+ },
1285
+ {},
1286
+ ""
1287
+ ]
1288
+ },
1289
+ {
1290
+ "id": 53,
1291
+ "type": "6faee11c-fcb7-4395-b0b0-1ee2385e66f8",
1292
+ "pos": [
1293
+ 700,
1294
+ -560
1295
+ ],
1296
+ "size": [
1297
+ 280,
1298
+ 110
1299
+ ],
1300
+ "flags": {},
1301
+ "order": 27,
1302
+ "mode": 0,
1303
+ "inputs": [
1304
+ {
1305
+ "name": "model",
1306
+ "type": "MODEL",
1307
+ "link": 2
1308
+ },
1309
+ {
1310
+ "name": "lightning",
1311
+ "type": "BOOLEAN",
1312
+ "link": 3
1313
+ }
1314
+ ],
1315
+ "outputs": [
1316
+ {
1317
+ "name": "model",
1318
+ "type": "MODEL",
1319
+ "links": [
1320
+ 4
1321
+ ]
1322
+ },
1323
+ {
1324
+ "name": "steps",
1325
+ "type": "INT",
1326
+ "links": [
1327
+ 5
1328
+ ]
1329
+ },
1330
+ {
1331
+ "name": "cfg",
1332
+ "type": "FLOAT",
1333
+ "links": [
1334
+ 6
1335
+ ]
1336
+ }
1337
+ ],
1338
+ "title": "Lightning toggle",
1339
+ "properties": {},
1340
+ "widgets_values": []
1341
+ },
1342
+ {
1343
+ "id": 54,
1344
+ "type": "a0b24eeb-863c-44db-89ab-7e9353dc3ae4",
1345
+ "pos": [
1346
+ -880,
1347
+ 40
1348
+ ],
1349
+ "size": [
1350
+ 300,
1351
+ 130
1352
+ ],
1353
+ "flags": {},
1354
+ "order": 28,
1355
+ "mode": 0,
1356
+ "inputs": [
1357
+ {
1358
+ "name": "image",
1359
+ "type": "IMAGE",
1360
+ "link": 12
1361
+ },
1362
+ {
1363
+ "name": "max_size",
1364
+ "type": "INT",
1365
+ "link": 14
1366
+ },
1367
+ {
1368
+ "name": "upscale",
1369
+ "type": "BOOLEAN",
1370
+ "link": 15
1371
+ },
1372
+ {
1373
+ "name": "downscale",
1374
+ "type": "BOOLEAN",
1375
+ "link": 16
1376
+ }
1377
+ ],
1378
+ "outputs": [
1379
+ {
1380
+ "name": "longest_edge",
1381
+ "type": "INT",
1382
+ "links": [
1383
+ 17
1384
+ ]
1385
+ }
1386
+ ],
1387
+ "title": "Input size limiter (main)",
1388
+ "properties": {},
1389
+ "widgets_values": []
1390
+ },
1391
+ {
1392
+ "id": 55,
1393
+ "type": "a0b24eeb-863c-44db-89ab-7e9353dc3ae4",
1394
+ "pos": [
1395
+ -880,
1396
+ 560
1397
+ ],
1398
+ "size": [
1399
+ 300,
1400
+ 130
1401
+ ],
1402
+ "flags": {},
1403
+ "order": 29,
1404
+ "mode": 0,
1405
+ "inputs": [
1406
+ {
1407
+ "name": "image",
1408
+ "type": "IMAGE",
1409
+ "link": 18
1410
+ },
1411
+ {
1412
+ "name": "max_size",
1413
+ "type": "INT",
1414
+ "link": 20
1415
+ },
1416
+ {
1417
+ "name": "upscale",
1418
+ "type": "BOOLEAN",
1419
+ "link": 21
1420
+ },
1421
+ {
1422
+ "name": "downscale",
1423
+ "type": "BOOLEAN",
1424
+ "link": 22
1425
+ }
1426
+ ],
1427
+ "outputs": [
1428
+ {
1429
+ "name": "longest_edge",
1430
+ "type": "INT",
1431
+ "links": [
1432
+ 23
1433
+ ]
1434
+ }
1435
+ ],
1436
+ "title": "Input size limiter (ref 2)",
1437
+ "properties": {},
1438
+ "widgets_values": []
1439
+ }
1440
+ ],
1441
+ "links": [
1442
+ [
1443
+ 1,
1444
+ 1,
1445
+ 0,
1446
+ 52,
1447
+ 0,
1448
+ "MODEL"
1449
+ ],
1450
+ [
1451
+ 2,
1452
+ 52,
1453
+ 0,
1454
+ 53,
1455
+ 0,
1456
+ "MODEL"
1457
+ ],
1458
+ [
1459
+ 3,
1460
+ 5,
1461
+ 0,
1462
+ 53,
1463
+ 1,
1464
+ "BOOLEAN"
1465
+ ],
1466
+ [
1467
+ 4,
1468
+ 53,
1469
+ 0,
1470
+ 13,
1471
+ 0,
1472
+ "MODEL"
1473
+ ],
1474
+ [
1475
+ 5,
1476
+ 53,
1477
+ 1,
1478
+ 43,
1479
+ 4,
1480
+ "INT"
1481
+ ],
1482
+ [
1483
+ 6,
1484
+ 53,
1485
+ 2,
1486
+ 43,
1487
+ 5,
1488
+ "FLOAT"
1489
+ ],
1490
+ [
1491
+ 7,
1492
+ 13,
1493
+ 0,
1494
+ 14,
1495
+ 0,
1496
+ "MODEL"
1497
+ ],
1498
+ [
1499
+ 8,
1500
+ 14,
1501
+ 0,
1502
+ 43,
1503
+ 0,
1504
+ "MODEL"
1505
+ ],
1506
+ [
1507
+ 9,
1508
+ 3,
1509
+ 0,
1510
+ 40,
1511
+ 0,
1512
+ "CLIP"
1513
+ ],
1514
+ [
1515
+ 10,
1516
+ 4,
1517
+ 0,
1518
+ 40,
1519
+ 1,
1520
+ "VAE"
1521
+ ],
1522
+ [
1523
+ 11,
1524
+ 4,
1525
+ 0,
1526
+ 44,
1527
+ 1,
1528
+ "VAE"
1529
+ ],
1530
+ [
1531
+ 12,
1532
+ 20,
1533
+ 0,
1534
+ 54,
1535
+ 0,
1536
+ "IMAGE"
1537
+ ],
1538
+ [
1539
+ 13,
1540
+ 20,
1541
+ 0,
1542
+ 27,
1543
+ 0,
1544
+ "IMAGE"
1545
+ ],
1546
+ [
1547
+ 14,
1548
+ 21,
1549
+ 0,
1550
+ 54,
1551
+ 1,
1552
+ "INT"
1553
+ ],
1554
+ [
1555
+ 15,
1556
+ 15,
1557
+ 0,
1558
+ 54,
1559
+ 2,
1560
+ "BOOLEAN"
1561
+ ],
1562
+ [
1563
+ 16,
1564
+ 16,
1565
+ 0,
1566
+ 54,
1567
+ 3,
1568
+ "BOOLEAN"
1569
+ ],
1570
+ [
1571
+ 17,
1572
+ 54,
1573
+ 0,
1574
+ 27,
1575
+ 3,
1576
+ "INT"
1577
+ ],
1578
+ [
1579
+ 18,
1580
+ 30,
1581
+ 0,
1582
+ 55,
1583
+ 0,
1584
+ "IMAGE"
1585
+ ],
1586
+ [
1587
+ 19,
1588
+ 30,
1589
+ 0,
1590
+ 37,
1591
+ 0,
1592
+ "IMAGE"
1593
+ ],
1594
+ [
1595
+ 20,
1596
+ 31,
1597
+ 0,
1598
+ 55,
1599
+ 1,
1600
+ "INT"
1601
+ ],
1602
+ [
1603
+ 21,
1604
+ 15,
1605
+ 0,
1606
+ 55,
1607
+ 2,
1608
+ "BOOLEAN"
1609
+ ],
1610
+ [
1611
+ 22,
1612
+ 16,
1613
+ 0,
1614
+ 55,
1615
+ 3,
1616
+ "BOOLEAN"
1617
+ ],
1618
+ [
1619
+ 23,
1620
+ 55,
1621
+ 0,
1622
+ 37,
1623
+ 3,
1624
+ "INT"
1625
+ ],
1626
+ [
1627
+ 24,
1628
+ 27,
1629
+ 0,
1630
+ 37,
1631
+ 1,
1632
+ "LIST"
1633
+ ],
1634
+ [
1635
+ 25,
1636
+ 37,
1637
+ 0,
1638
+ 40,
1639
+ 2,
1640
+ "LIST"
1641
+ ],
1642
+ [
1643
+ 26,
1644
+ 40,
1645
+ 0,
1646
+ 43,
1647
+ 1,
1648
+ "CONDITIONING"
1649
+ ],
1650
+ [
1651
+ 27,
1652
+ 40,
1653
+ 0,
1654
+ 42,
1655
+ 0,
1656
+ "CONDITIONING"
1657
+ ],
1658
+ [
1659
+ 28,
1660
+ 40,
1661
+ 1,
1662
+ 43,
1663
+ 3,
1664
+ "LATENT"
1665
+ ],
1666
+ [
1667
+ 29,
1668
+ 40,
1669
+ 2,
1670
+ 41,
1671
+ 0,
1672
+ "ANY"
1673
+ ],
1674
+ [
1675
+ 30,
1676
+ 41,
1677
+ 0,
1678
+ 45,
1679
+ 1,
1680
+ "ANY"
1681
+ ],
1682
+ [
1683
+ 31,
1684
+ 42,
1685
+ 0,
1686
+ 43,
1687
+ 2,
1688
+ "CONDITIONING"
1689
+ ],
1690
+ [
1691
+ 32,
1692
+ 43,
1693
+ 0,
1694
+ 44,
1695
+ 0,
1696
+ "LATENT"
1697
+ ],
1698
+ [
1699
+ 33,
1700
+ 44,
1701
+ 0,
1702
+ 45,
1703
+ 0,
1704
+ "IMAGE"
1705
+ ],
1706
+ [
1707
+ 34,
1708
+ 45,
1709
+ 0,
1710
+ 48,
1711
+ 0,
1712
+ "IMAGE"
1713
+ ],
1714
+ [
1715
+ 35,
1716
+ 45,
1717
+ 0,
1718
+ 49,
1719
+ 0,
1720
+ "IMAGE"
1721
+ ],
1722
+ [
1723
+ 36,
1724
+ 46,
1725
+ 0,
1726
+ 49,
1727
+ 2,
1728
+ "BOOLEAN"
1729
+ ],
1730
+ [
1731
+ 37,
1732
+ 47,
1733
+ 0,
1734
+ 48,
1735
+ 1,
1736
+ "INT"
1737
+ ],
1738
+ [
1739
+ 38,
1740
+ 48,
1741
+ 0,
1742
+ 49,
1743
+ 1,
1744
+ "IMAGE"
1745
+ ],
1746
+ [
1747
+ 39,
1748
+ 49,
1749
+ 0,
1750
+ 50,
1751
+ 0,
1752
+ "IMAGE"
1753
+ ]
1754
+ ],
1755
+ "groups": [
1756
+ {
1757
+ "id": 1,
1758
+ "title": "Models",
1759
+ "bounding": [
1760
+ -60,
1761
+ -700,
1762
+ 380,
1763
+ 640
1764
+ ],
1765
+ "color": "#3f789e",
1766
+ "flags": {}
1767
+ },
1768
+ {
1769
+ "id": 2,
1770
+ "title": "Lightning Toggle",
1771
+ "bounding": [
1772
+ 340,
1773
+ -700,
1774
+ 660,
1775
+ 600
1776
+ ],
1777
+ "color": "#8A8",
1778
+ "flags": {}
1779
+ },
1780
+ {
1781
+ "id": 3,
1782
+ "title": "Input Size Toggles (both images)",
1783
+ "bounding": [
1784
+ -1520,
1785
+ -340,
1786
+ 380,
1787
+ 240
1788
+ ],
1789
+ "color": "#8A8",
1790
+ "flags": {}
1791
+ },
1792
+ {
1793
+ "id": 4,
1794
+ "title": "Main Image + Preprocessing",
1795
+ "bounding": [
1796
+ -1520,
1797
+ -100,
1798
+ 1600,
1799
+ 500
1800
+ ],
1801
+ "color": "#3f789e",
1802
+ "flags": {}
1803
+ },
1804
+ {
1805
+ "id": 5,
1806
+ "title": "Optional 2nd Reference (Ctrl+B to enable)",
1807
+ "bounding": [
1808
+ -1520,
1809
+ 420,
1810
+ 1600,
1811
+ 500
1812
+ ],
1813
+ "color": "#a363d9",
1814
+ "flags": {}
1815
+ },
1816
+ {
1817
+ "id": 6,
1818
+ "title": "Encode",
1819
+ "bounding": [
1820
+ 100,
1821
+ -40,
1822
+ 780,
1823
+ 640
1824
+ ],
1825
+ "color": "#3f789e",
1826
+ "flags": {}
1827
+ },
1828
+ {
1829
+ "id": 7,
1830
+ "title": "Sample + Output",
1831
+ "bounding": [
1832
+ 1000,
1833
+ -100,
1834
+ 1480,
1835
+ 680
1836
+ ],
1837
+ "color": "#b58b2a",
1838
+ "flags": {}
1839
+ }
1840
+ ],
1841
+ "definitions": {
1842
+ "subgraphs": [
1843
+ {
1844
+ "id": "a0b24eeb-863c-44db-89ab-7e9353dc3ae4",
1845
+ "version": 1,
1846
+ "state": {
1847
+ "lastGroupId": 0,
1848
+ "lastNodeId": 5,
1849
+ "lastLinkId": 12,
1850
+ "lastRerouteId": 0
1851
+ },
1852
+ "revision": 0,
1853
+ "config": {},
1854
+ "name": "Input size limiter",
1855
+ "inputNode": {
1856
+ "id": -10,
1857
+ "bounding": [
1858
+ -860,
1859
+ -60,
1860
+ 120,
1861
+ 140
1862
+ ]
1863
+ },
1864
+ "outputNode": {
1865
+ "id": -20,
1866
+ "bounding": [
1867
+ 460,
1868
+ -40,
1869
+ 120,
1870
+ 60
1871
+ ]
1872
+ },
1873
+ "inputs": [
1874
+ {
1875
+ "id": "86d39c2c-7336-43b1-869c-d6cce3109036",
1876
+ "name": "image",
1877
+ "type": "IMAGE",
1878
+ "linkIds": [
1879
+ 1,
1880
+ 2
1881
+ ]
1882
+ },
1883
+ {
1884
+ "id": "663da3f0-febb-4d46-8479-69fb30e69700",
1885
+ "name": "max_size",
1886
+ "type": "INT",
1887
+ "linkIds": [
1888
+ 3,
1889
+ 4
1890
+ ]
1891
+ },
1892
+ {
1893
+ "id": "1b3aa028-2d6e-43d5-a094-5eb90735dfda",
1894
+ "name": "upscale",
1895
+ "type": "BOOLEAN",
1896
+ "linkIds": [
1897
+ 7
1898
+ ]
1899
+ },
1900
+ {
1901
+ "id": "8a64ed2f-990b-4471-9eb5-7c1328993ae8",
1902
+ "name": "downscale",
1903
+ "type": "BOOLEAN",
1904
+ "linkIds": [
1905
+ 11
1906
+ ]
1907
+ }
1908
+ ],
1909
+ "outputs": [
1910
+ {
1911
+ "id": "a034626a-cb85-4de3-9bf9-446c6f1683ae",
1912
+ "name": "longest_edge",
1913
+ "type": "INT",
1914
+ "linkIds": [
1915
+ 12
1916
+ ]
1917
+ }
1918
+ ],
1919
+ "widgets": [],
1920
+ "nodes": [
1921
+ {
1922
+ "id": 1,
1923
+ "type": "MathExpression|pysssss",
1924
+ "pos": [
1925
+ -560,
1926
+ -140
1927
+ ],
1928
+ "size": [
1929
+ 260,
1930
+ 128
1931
+ ],
1932
+ "flags": {},
1933
+ "order": 0,
1934
+ "mode": 0,
1935
+ "inputs": [
1936
+ {
1937
+ "name": "a",
1938
+ "shape": 7,
1939
+ "type": "INT,FLOAT,IMAGE,LATENT",
1940
+ "link": 1
1941
+ },
1942
+ {
1943
+ "name": "b",
1944
+ "shape": 7,
1945
+ "type": "INT,FLOAT,IMAGE,LATENT",
1946
+ "link": null
1947
+ },
1948
+ {
1949
+ "name": "c",
1950
+ "shape": 7,
1951
+ "type": "INT,FLOAT,IMAGE,LATENT",
1952
+ "link": null
1953
+ }
1954
+ ],
1955
+ "outputs": [
1956
+ {
1957
+ "name": "INT",
1958
+ "type": "INT",
1959
+ "slot_index": 0,
1960
+ "links": [
1961
+ 5
1962
+ ]
1963
+ },
1964
+ {
1965
+ "name": "FLOAT",
1966
+ "type": "FLOAT",
1967
+ "links": []
1968
+ }
1969
+ ],
1970
+ "title": "native edge",
1971
+ "properties": {
1972
+ "cnr_id": "comfyui-custom-scripts",
1973
+ "ver": "1.0.0",
1974
+ "Node name for S&R": "MathExpression|pysssss"
1975
+ },
1976
+ "widgets_values": [
1977
+ "max(a.width, a.height)"
1978
+ ]
1979
+ },
1980
+ {
1981
+ "id": 2,
1982
+ "type": "MathExpression|pysssss",
1983
+ "pos": [
1984
+ -560,
1985
+ 60
1986
+ ],
1987
+ "size": [
1988
+ 260,
1989
+ 128
1990
+ ],
1991
+ "flags": {},
1992
+ "order": 1,
1993
+ "mode": 0,
1994
+ "inputs": [
1995
+ {
1996
+ "name": "a",
1997
+ "shape": 7,
1998
+ "type": "INT,FLOAT,IMAGE,LATENT",
1999
+ "link": 2
2000
+ },
2001
+ {
2002
+ "name": "b",
2003
+ "shape": 7,
2004
+ "type": "INT,FLOAT,IMAGE,LATENT",
2005
+ "link": null
2006
+ },
2007
+ {
2008
+ "name": "c",
2009
+ "shape": 7,
2010
+ "type": "INT,FLOAT,IMAGE,LATENT",
2011
+ "link": 3
2012
+ }
2013
+ ],
2014
+ "outputs": [
2015
+ {
2016
+ "name": "INT",
2017
+ "type": "INT",
2018
+ "slot_index": 0,
2019
+ "links": [
2020
+ 6
2021
+ ]
2022
+ },
2023
+ {
2024
+ "name": "FLOAT",
2025
+ "type": "FLOAT",
2026
+ "links": []
2027
+ }
2028
+ ],
2029
+ "title": "upscaled edge",
2030
+ "properties": {
2031
+ "cnr_id": "comfyui-custom-scripts",
2032
+ "ver": "1.0.0",
2033
+ "Node name for S&R": "MathExpression|pysssss"
2034
+ },
2035
+ "widgets_values": [
2036
+ "max(a.width, a.height, c)"
2037
+ ]
2038
+ },
2039
+ {
2040
+ "id": 3,
2041
+ "type": "ComfySwitchNode",
2042
+ "pos": [
2043
+ -220,
2044
+ -40
2045
+ ],
2046
+ "size": [
2047
+ 260,
2048
+ 100
2049
+ ],
2050
+ "flags": {},
2051
+ "order": 2,
2052
+ "mode": 0,
2053
+ "inputs": [
2054
+ {
2055
+ "name": "on_false",
2056
+ "type": "INT",
2057
+ "link": 5
2058
+ },
2059
+ {
2060
+ "name": "on_true",
2061
+ "type": "INT",
2062
+ "link": 6
2063
+ },
2064
+ {
2065
+ "name": "switch",
2066
+ "type": "BOOLEAN",
2067
+ "widget": {
2068
+ "name": "switch"
2069
+ },
2070
+ "link": 7
2071
+ }
2072
+ ],
2073
+ "outputs": [
2074
+ {
2075
+ "name": "output",
2076
+ "type": "INT",
2077
+ "slot_index": 0,
2078
+ "links": [
2079
+ 8,
2080
+ 9
2081
+ ]
2082
+ }
2083
+ ],
2084
+ "title": "apply upscale",
2085
+ "properties": {
2086
+ "Node name for S&R": "ComfySwitchNode",
2087
+ "cnr_id": "comfy-core",
2088
+ "ver": "0.3.48"
2089
+ },
2090
+ "widgets_values": [
2091
+ false
2092
+ ]
2093
+ },
2094
+ {
2095
+ "id": 4,
2096
+ "type": "MathExpression|pysssss",
2097
+ "pos": [
2098
+ -220,
2099
+ 120
2100
+ ],
2101
+ "size": [
2102
+ 260,
2103
+ 128
2104
+ ],
2105
+ "flags": {},
2106
+ "order": 3,
2107
+ "mode": 0,
2108
+ "inputs": [
2109
+ {
2110
+ "name": "a",
2111
+ "shape": 7,
2112
+ "type": "INT,FLOAT,IMAGE,LATENT",
2113
+ "link": 8
2114
+ },
2115
+ {
2116
+ "name": "b",
2117
+ "shape": 7,
2118
+ "type": "INT,FLOAT,IMAGE,LATENT",
2119
+ "link": null
2120
+ },
2121
+ {
2122
+ "name": "c",
2123
+ "shape": 7,
2124
+ "type": "INT,FLOAT,IMAGE,LATENT",
2125
+ "link": 4
2126
+ }
2127
+ ],
2128
+ "outputs": [
2129
+ {
2130
+ "name": "INT",
2131
+ "type": "INT",
2132
+ "slot_index": 0,
2133
+ "links": [
2134
+ 10
2135
+ ]
2136
+ },
2137
+ {
2138
+ "name": "FLOAT",
2139
+ "type": "FLOAT",
2140
+ "links": []
2141
+ }
2142
+ ],
2143
+ "title": "downscaled edge",
2144
+ "properties": {
2145
+ "cnr_id": "comfyui-custom-scripts",
2146
+ "ver": "1.0.0",
2147
+ "Node name for S&R": "MathExpression|pysssss"
2148
+ },
2149
+ "widgets_values": [
2150
+ "min(a, c)"
2151
+ ]
2152
+ },
2153
+ {
2154
+ "id": 5,
2155
+ "type": "ComfySwitchNode",
2156
+ "pos": [
2157
+ 120,
2158
+ -40
2159
+ ],
2160
+ "size": [
2161
+ 260,
2162
+ 100
2163
+ ],
2164
+ "flags": {},
2165
+ "order": 4,
2166
+ "mode": 0,
2167
+ "inputs": [
2168
+ {
2169
+ "name": "on_false",
2170
+ "type": "INT",
2171
+ "link": 9
2172
+ },
2173
+ {
2174
+ "name": "on_true",
2175
+ "type": "INT",
2176
+ "link": 10
2177
+ },
2178
+ {
2179
+ "name": "switch",
2180
+ "type": "BOOLEAN",
2181
+ "widget": {
2182
+ "name": "switch"
2183
+ },
2184
+ "link": 11
2185
+ }
2186
+ ],
2187
+ "outputs": [
2188
+ {
2189
+ "name": "output",
2190
+ "type": "INT",
2191
+ "slot_index": 0,
2192
+ "links": [
2193
+ 12
2194
+ ]
2195
+ }
2196
+ ],
2197
+ "title": "apply downscale",
2198
+ "properties": {
2199
+ "Node name for S&R": "ComfySwitchNode",
2200
+ "cnr_id": "comfy-core",
2201
+ "ver": "0.3.48"
2202
+ },
2203
+ "widgets_values": [
2204
+ false
2205
+ ]
2206
+ }
2207
+ ],
2208
+ "links": [
2209
+ {
2210
+ "id": 1,
2211
+ "origin_id": -10,
2212
+ "origin_slot": 0,
2213
+ "target_id": 1,
2214
+ "target_slot": 0,
2215
+ "type": "IMAGE"
2216
+ },
2217
+ {
2218
+ "id": 2,
2219
+ "origin_id": -10,
2220
+ "origin_slot": 0,
2221
+ "target_id": 2,
2222
+ "target_slot": 0,
2223
+ "type": "IMAGE"
2224
+ },
2225
+ {
2226
+ "id": 3,
2227
+ "origin_id": -10,
2228
+ "origin_slot": 1,
2229
+ "target_id": 2,
2230
+ "target_slot": 2,
2231
+ "type": "INT"
2232
+ },
2233
+ {
2234
+ "id": 4,
2235
+ "origin_id": -10,
2236
+ "origin_slot": 1,
2237
+ "target_id": 4,
2238
+ "target_slot": 2,
2239
+ "type": "INT"
2240
+ },
2241
+ {
2242
+ "id": 5,
2243
+ "origin_id": 1,
2244
+ "origin_slot": 0,
2245
+ "target_id": 3,
2246
+ "target_slot": 0,
2247
+ "type": "INT"
2248
+ },
2249
+ {
2250
+ "id": 6,
2251
+ "origin_id": 2,
2252
+ "origin_slot": 0,
2253
+ "target_id": 3,
2254
+ "target_slot": 1,
2255
+ "type": "INT"
2256
+ },
2257
+ {
2258
+ "id": 7,
2259
+ "origin_id": -10,
2260
+ "origin_slot": 2,
2261
+ "target_id": 3,
2262
+ "target_slot": 2,
2263
+ "type": "BOOLEAN"
2264
+ },
2265
+ {
2266
+ "id": 8,
2267
+ "origin_id": 3,
2268
+ "origin_slot": 0,
2269
+ "target_id": 4,
2270
+ "target_slot": 0,
2271
+ "type": "INT"
2272
+ },
2273
+ {
2274
+ "id": 9,
2275
+ "origin_id": 3,
2276
+ "origin_slot": 0,
2277
+ "target_id": 5,
2278
+ "target_slot": 0,
2279
+ "type": "INT"
2280
+ },
2281
+ {
2282
+ "id": 10,
2283
+ "origin_id": 4,
2284
+ "origin_slot": 0,
2285
+ "target_id": 5,
2286
+ "target_slot": 1,
2287
+ "type": "INT"
2288
+ },
2289
+ {
2290
+ "id": 11,
2291
+ "origin_id": -10,
2292
+ "origin_slot": 3,
2293
+ "target_id": 5,
2294
+ "target_slot": 2,
2295
+ "type": "BOOLEAN"
2296
+ },
2297
+ {
2298
+ "id": 12,
2299
+ "origin_id": 5,
2300
+ "origin_slot": 0,
2301
+ "target_id": -20,
2302
+ "target_slot": 0,
2303
+ "type": "INT"
2304
+ }
2305
+ ],
2306
+ "groups": [],
2307
+ "reroutes": [],
2308
+ "extra": {}
2309
+ },
2310
+ {
2311
+ "id": "6faee11c-fcb7-4395-b0b0-1ee2385e66f8",
2312
+ "version": 1,
2313
+ "state": {
2314
+ "lastGroupId": 0,
2315
+ "lastNodeId": 8,
2316
+ "lastLinkId": 15,
2317
+ "lastRerouteId": 0
2318
+ },
2319
+ "revision": 0,
2320
+ "config": {},
2321
+ "name": "Lightning toggle",
2322
+ "inputNode": {
2323
+ "id": -10,
2324
+ "bounding": [
2325
+ -860,
2326
+ -120,
2327
+ 120,
2328
+ 100
2329
+ ]
2330
+ },
2331
+ "outputNode": {
2332
+ "id": -20,
2333
+ "bounding": [
2334
+ 280,
2335
+ -120,
2336
+ 120,
2337
+ 100
2338
+ ]
2339
+ },
2340
+ "inputs": [
2341
+ {
2342
+ "id": "1493e15f-602c-4fc5-b826-c76a361a3d2b",
2343
+ "name": "model",
2344
+ "type": "MODEL",
2345
+ "linkIds": [
2346
+ 1,
2347
+ 2
2348
+ ]
2349
+ },
2350
+ {
2351
+ "id": "8dfbc7b2-2cd3-41ee-8703-09bff1543dcc",
2352
+ "name": "lightning",
2353
+ "type": "BOOLEAN",
2354
+ "linkIds": [
2355
+ 4,
2356
+ 5,
2357
+ 6
2358
+ ]
2359
+ }
2360
+ ],
2361
+ "outputs": [
2362
+ {
2363
+ "id": "4179df0e-740a-4265-86ed-15146d09d9b6",
2364
+ "name": "model",
2365
+ "type": "MODEL",
2366
+ "linkIds": [
2367
+ 13
2368
+ ]
2369
+ },
2370
+ {
2371
+ "id": "03c64fe1-5475-474c-bef6-fb24fa132670",
2372
+ "name": "steps",
2373
+ "type": "INT",
2374
+ "linkIds": [
2375
+ 14
2376
+ ]
2377
+ },
2378
+ {
2379
+ "id": "7748748a-bff1-422f-9356-db41502cc08b",
2380
+ "name": "cfg",
2381
+ "type": "FLOAT",
2382
+ "linkIds": [
2383
+ 15
2384
+ ]
2385
+ }
2386
+ ],
2387
+ "widgets": [],
2388
+ "nodes": [
2389
+ {
2390
+ "id": 1,
2391
+ "type": "LoraLoaderModelOnly",
2392
+ "pos": [
2393
+ -560,
2394
+ -200
2395
+ ],
2396
+ "size": [
2397
+ 340,
2398
+ 82
2399
+ ],
2400
+ "flags": {},
2401
+ "order": 0,
2402
+ "mode": 0,
2403
+ "inputs": [
2404
+ {
2405
+ "name": "model",
2406
+ "type": "MODEL",
2407
+ "link": 1
2408
+ }
2409
+ ],
2410
+ "outputs": [
2411
+ {
2412
+ "name": "MODEL",
2413
+ "type": "MODEL",
2414
+ "slot_index": 0,
2415
+ "links": [
2416
+ 3
2417
+ ]
2418
+ }
2419
+ ],
2420
+ "title": "LoRA: Lightning 4 steps",
2421
+ "properties": {
2422
+ "Node name for S&R": "LoraLoaderModelOnly",
2423
+ "cnr_id": "comfy-core",
2424
+ "ver": "0.3.48"
2425
+ },
2426
+ "widgets_values": [
2427
+ "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
2428
+ 1
2429
+ ]
2430
+ },
2431
+ {
2432
+ "id": 2,
2433
+ "type": "ComfySwitchNode",
2434
+ "pos": [
2435
+ -80,
2436
+ -200
2437
+ ],
2438
+ "size": [
2439
+ 280,
2440
+ 100
2441
+ ],
2442
+ "flags": {},
2443
+ "order": 1,
2444
+ "mode": 0,
2445
+ "inputs": [
2446
+ {
2447
+ "name": "on_false",
2448
+ "type": "MODEL",
2449
+ "link": 2
2450
+ },
2451
+ {
2452
+ "name": "on_true",
2453
+ "type": "MODEL",
2454
+ "link": 3
2455
+ },
2456
+ {
2457
+ "name": "switch",
2458
+ "type": "BOOLEAN",
2459
+ "widget": {
2460
+ "name": "switch"
2461
+ },
2462
+ "link": 4
2463
+ }
2464
+ ],
2465
+ "outputs": [
2466
+ {
2467
+ "name": "output",
2468
+ "type": "MODEL",
2469
+ "slot_index": 0,
2470
+ "links": [
2471
+ 13
2472
+ ]
2473
+ }
2474
+ ],
2475
+ "title": "Model switch",
2476
+ "properties": {
2477
+ "Node name for S&R": "ComfySwitchNode",
2478
+ "cnr_id": "comfy-core",
2479
+ "ver": "0.3.48"
2480
+ },
2481
+ "widgets_values": [
2482
+ false
2483
+ ]
2484
+ },
2485
+ {
2486
+ "id": 3,
2487
+ "type": "ComfySwitchNode",
2488
+ "pos": [
2489
+ -80,
2490
+ -40
2491
+ ],
2492
+ "size": [
2493
+ 280,
2494
+ 100
2495
+ ],
2496
+ "flags": {},
2497
+ "order": 2,
2498
+ "mode": 0,
2499
+ "inputs": [
2500
+ {
2501
+ "name": "on_false",
2502
+ "type": "INT",
2503
+ "link": 7
2504
+ },
2505
+ {
2506
+ "name": "on_true",
2507
+ "type": "INT",
2508
+ "link": 8
2509
+ },
2510
+ {
2511
+ "name": "switch",
2512
+ "type": "BOOLEAN",
2513
+ "widget": {
2514
+ "name": "switch"
2515
+ },
2516
+ "link": 5
2517
+ }
2518
+ ],
2519
+ "outputs": [
2520
+ {
2521
+ "name": "output",
2522
+ "type": "INT",
2523
+ "slot_index": 0,
2524
+ "links": [
2525
+ 14
2526
+ ]
2527
+ }
2528
+ ],
2529
+ "title": "Steps switch",
2530
+ "properties": {
2531
+ "Node name for S&R": "ComfySwitchNode",
2532
+ "cnr_id": "comfy-core",
2533
+ "ver": "0.3.48"
2534
+ },
2535
+ "widgets_values": [
2536
+ false
2537
+ ]
2538
+ },
2539
+ {
2540
+ "id": 4,
2541
+ "type": "ComfySwitchNode",
2542
+ "pos": [
2543
+ -80,
2544
+ 120
2545
+ ],
2546
+ "size": [
2547
+ 280,
2548
+ 100
2549
+ ],
2550
+ "flags": {},
2551
+ "order": 3,
2552
+ "mode": 0,
2553
+ "inputs": [
2554
+ {
2555
+ "name": "on_false",
2556
+ "type": "FLOAT",
2557
+ "link": 9
2558
+ },
2559
+ {
2560
+ "name": "on_true",
2561
+ "type": "FLOAT",
2562
+ "link": 10
2563
+ },
2564
+ {
2565
+ "name": "switch",
2566
+ "type": "BOOLEAN",
2567
+ "widget": {
2568
+ "name": "switch"
2569
+ },
2570
+ "link": 6
2571
+ }
2572
+ ],
2573
+ "outputs": [
2574
+ {
2575
+ "name": "output",
2576
+ "type": "FLOAT",
2577
+ "slot_index": 0,
2578
+ "links": [
2579
+ 15
2580
+ ]
2581
+ }
2582
+ ],
2583
+ "title": "CFG switch",
2584
+ "properties": {
2585
+ "Node name for S&R": "ComfySwitchNode",
2586
+ "cnr_id": "comfy-core",
2587
+ "ver": "0.3.48"
2588
+ },
2589
+ "widgets_values": [
2590
+ false
2591
+ ]
2592
+ },
2593
+ {
2594
+ "id": 5,
2595
+ "type": "PrimitiveInt",
2596
+ "pos": [
2597
+ -560,
2598
+ -60
2599
+ ],
2600
+ "size": [
2601
+ 280,
2602
+ 82
2603
+ ],
2604
+ "flags": {},
2605
+ "order": 4,
2606
+ "mode": 0,
2607
+ "inputs": [],
2608
+ "outputs": [
2609
+ {
2610
+ "name": "INT",
2611
+ "type": "INT",
2612
+ "slot_index": 0,
2613
+ "links": [
2614
+ 7
2615
+ ]
2616
+ }
2617
+ ],
2618
+ "title": "Steps (quality)",
2619
+ "properties": {
2620
+ "Node name for S&R": "PrimitiveInt",
2621
+ "cnr_id": "comfy-core",
2622
+ "ver": "0.3.48"
2623
+ },
2624
+ "widgets_values": [
2625
+ 12,
2626
+ "fixed"
2627
+ ]
2628
+ },
2629
+ {
2630
+ "id": 6,
2631
+ "type": "PrimitiveInt",
2632
+ "pos": [
2633
+ -560,
2634
+ 60
2635
+ ],
2636
+ "size": [
2637
+ 280,
2638
+ 82
2639
+ ],
2640
+ "flags": {},
2641
+ "order": 5,
2642
+ "mode": 0,
2643
+ "inputs": [],
2644
+ "outputs": [
2645
+ {
2646
+ "name": "INT",
2647
+ "type": "INT",
2648
+ "slot_index": 0,
2649
+ "links": [
2650
+ 8
2651
+ ]
2652
+ }
2653
+ ],
2654
+ "title": "Steps (lightning)",
2655
+ "properties": {
2656
+ "Node name for S&R": "PrimitiveInt",
2657
+ "cnr_id": "comfy-core",
2658
+ "ver": "0.3.48"
2659
+ },
2660
+ "widgets_values": [
2661
+ 4,
2662
+ "fixed"
2663
+ ]
2664
+ },
2665
+ {
2666
+ "id": 7,
2667
+ "type": "PrimitiveFloat",
2668
+ "pos": [
2669
+ -560,
2670
+ 180
2671
+ ],
2672
+ "size": [
2673
+ 280,
2674
+ 60
2675
+ ],
2676
+ "flags": {},
2677
+ "order": 6,
2678
+ "mode": 0,
2679
+ "inputs": [],
2680
+ "outputs": [
2681
+ {
2682
+ "name": "FLOAT",
2683
+ "type": "FLOAT",
2684
+ "slot_index": 0,
2685
+ "links": [
2686
+ 9
2687
+ ]
2688
+ }
2689
+ ],
2690
+ "title": "CFG (quality)",
2691
+ "properties": {
2692
+ "Node name for S&R": "PrimitiveFloat",
2693
+ "cnr_id": "comfy-core",
2694
+ "ver": "0.3.48"
2695
+ },
2696
+ "widgets_values": [
2697
+ 3
2698
+ ]
2699
+ },
2700
+ {
2701
+ "id": 8,
2702
+ "type": "PrimitiveFloat",
2703
+ "pos": [
2704
+ -560,
2705
+ 300
2706
+ ],
2707
+ "size": [
2708
+ 280,
2709
+ 60
2710
+ ],
2711
+ "flags": {},
2712
+ "order": 7,
2713
+ "mode": 0,
2714
+ "inputs": [],
2715
+ "outputs": [
2716
+ {
2717
+ "name": "FLOAT",
2718
+ "type": "FLOAT",
2719
+ "slot_index": 0,
2720
+ "links": [
2721
+ 10
2722
+ ]
2723
+ }
2724
+ ],
2725
+ "title": "CFG (lightning)",
2726
+ "properties": {
2727
+ "Node name for S&R": "PrimitiveFloat",
2728
+ "cnr_id": "comfy-core",
2729
+ "ver": "0.3.48"
2730
+ },
2731
+ "widgets_values": [
2732
+ 1
2733
+ ]
2734
+ }
2735
+ ],
2736
+ "links": [
2737
+ {
2738
+ "id": 1,
2739
+ "origin_id": -10,
2740
+ "origin_slot": 0,
2741
+ "target_id": 1,
2742
+ "target_slot": 0,
2743
+ "type": "MODEL"
2744
+ },
2745
+ {
2746
+ "id": 2,
2747
+ "origin_id": -10,
2748
+ "origin_slot": 0,
2749
+ "target_id": 2,
2750
+ "target_slot": 0,
2751
+ "type": "MODEL"
2752
+ },
2753
+ {
2754
+ "id": 3,
2755
+ "origin_id": 1,
2756
+ "origin_slot": 0,
2757
+ "target_id": 2,
2758
+ "target_slot": 1,
2759
+ "type": "MODEL"
2760
+ },
2761
+ {
2762
+ "id": 4,
2763
+ "origin_id": -10,
2764
+ "origin_slot": 1,
2765
+ "target_id": 2,
2766
+ "target_slot": 2,
2767
+ "type": "BOOLEAN"
2768
+ },
2769
+ {
2770
+ "id": 5,
2771
+ "origin_id": -10,
2772
+ "origin_slot": 1,
2773
+ "target_id": 3,
2774
+ "target_slot": 2,
2775
+ "type": "BOOLEAN"
2776
+ },
2777
+ {
2778
+ "id": 6,
2779
+ "origin_id": -10,
2780
+ "origin_slot": 1,
2781
+ "target_id": 4,
2782
+ "target_slot": 2,
2783
+ "type": "BOOLEAN"
2784
+ },
2785
+ {
2786
+ "id": 7,
2787
+ "origin_id": 5,
2788
+ "origin_slot": 0,
2789
+ "target_id": 3,
2790
+ "target_slot": 0,
2791
+ "type": "INT"
2792
+ },
2793
+ {
2794
+ "id": 8,
2795
+ "origin_id": 6,
2796
+ "origin_slot": 0,
2797
+ "target_id": 3,
2798
+ "target_slot": 1,
2799
+ "type": "INT"
2800
+ },
2801
+ {
2802
+ "id": 9,
2803
+ "origin_id": 7,
2804
+ "origin_slot": 0,
2805
+ "target_id": 4,
2806
+ "target_slot": 0,
2807
+ "type": "FLOAT"
2808
+ },
2809
+ {
2810
+ "id": 10,
2811
+ "origin_id": 8,
2812
+ "origin_slot": 0,
2813
+ "target_id": 4,
2814
+ "target_slot": 1,
2815
+ "type": "FLOAT"
2816
+ },
2817
+ {
2818
+ "id": 13,
2819
+ "origin_id": 2,
2820
+ "origin_slot": 0,
2821
+ "target_id": -20,
2822
+ "target_slot": 0,
2823
+ "type": "MODEL"
2824
+ },
2825
+ {
2826
+ "id": 14,
2827
+ "origin_id": 3,
2828
+ "origin_slot": 0,
2829
+ "target_id": -20,
2830
+ "target_slot": 1,
2831
+ "type": "INT"
2832
+ },
2833
+ {
2834
+ "id": 15,
2835
+ "origin_id": 4,
2836
+ "origin_slot": 0,
2837
+ "target_id": -20,
2838
+ "target_slot": 2,
2839
+ "type": "FLOAT"
2840
+ }
2841
+ ],
2842
+ "groups": [],
2843
+ "reroutes": [],
2844
+ "extra": {}
2845
+ }
2846
+ ]
2847
+ },
2848
+ "config": {},
2849
+ "extra": {
2850
+ "frontendVersion": "1.45.20",
2851
+ "ds": {
2852
+ "scale": 0.6671438826332355,
2853
+ "offset": [
2854
+ 2000.4578757053227,
2855
+ 266.946208069002
2856
+ ]
2857
+ }
2858
+ },
2859
+ "version": 0.4
2860
+ }