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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "1": {
3
+ "class_type": "UNETLoader",
4
+ "inputs": {
5
+ "unet_name": "qwen_image_edit_2511_bf16.safetensors",
6
+ "weight_dtype": "default"
7
+ }
8
+ },
9
+ "13": {
10
+ "class_type": "ModelSamplingAuraFlow",
11
+ "inputs": {
12
+ "model": [
13
+ "53:2",
14
+ 0
15
+ ],
16
+ "shift": 3.1
17
+ }
18
+ },
19
+ "14": {
20
+ "class_type": "CFGNorm",
21
+ "inputs": {
22
+ "model": [
23
+ "13",
24
+ 0
25
+ ],
26
+ "pre_cfg": false,
27
+ "strength": 1
28
+ }
29
+ },
30
+ "15": {
31
+ "_meta": {
32
+ "title": "upscale_input_to_max_size"
33
+ },
34
+ "class_type": "PrimitiveBoolean",
35
+ "inputs": {
36
+ "value": true
37
+ }
38
+ },
39
+ "16": {
40
+ "_meta": {
41
+ "title": "downscale_input_to_max_size"
42
+ },
43
+ "class_type": "PrimitiveBoolean",
44
+ "inputs": {
45
+ "value": false
46
+ }
47
+ },
48
+ "20": {
49
+ "_meta": {
50
+ "title": "Main Image"
51
+ },
52
+ "class_type": "LoadImage",
53
+ "inputs": {
54
+ "image": "733427737_18059858666742129_6215894921112236726_n.jpg"
55
+ }
56
+ },
57
+ "21": {
58
+ "_meta": {
59
+ "title": "Input max size (main)"
60
+ },
61
+ "class_type": "PrimitiveInt",
62
+ "inputs": {
63
+ "value": 2048
64
+ }
65
+ },
66
+ "27": {
67
+ "_meta": {
68
+ "title": "Main image config"
69
+ },
70
+ "class_type": "QwenEditConfigPreparer",
71
+ "inputs": {
72
+ "image": [
73
+ "20",
74
+ 0
75
+ ],
76
+ "ref_crop": "pad",
77
+ "ref_longest_edge": [
78
+ "54:5",
79
+ 0
80
+ ],
81
+ "ref_main_image": true,
82
+ "ref_upscale": "lanczos",
83
+ "to_ref": true,
84
+ "to_vl": true,
85
+ "vl_crop": "center",
86
+ "vl_resize": true,
87
+ "vl_target_size": 384,
88
+ "vl_upscale": "bicubic"
89
+ }
90
+ },
91
+ "3": {
92
+ "class_type": "CLIPLoader",
93
+ "inputs": {
94
+ "clip_name": "qwen_2.5_vl_7b.safetensors",
95
+ "device": "default",
96
+ "type": "qwen_image"
97
+ }
98
+ },
99
+ "30": {
100
+ "_meta": {
101
+ "title": "Reference Image 2 (optional)"
102
+ },
103
+ "class_type": "LoadImage",
104
+ "inputs": {
105
+ "image": "b.png"
106
+ }
107
+ },
108
+ "31": {
109
+ "_meta": {
110
+ "title": "Input max size (ref 2)"
111
+ },
112
+ "class_type": "PrimitiveInt",
113
+ "inputs": {
114
+ "value": 1024
115
+ }
116
+ },
117
+ "37": {
118
+ "_meta": {
119
+ "title": "Reference image 2 config"
120
+ },
121
+ "class_type": "QwenEditConfigPreparer",
122
+ "inputs": {
123
+ "configs": [
124
+ "27",
125
+ 0
126
+ ],
127
+ "image": [
128
+ "30",
129
+ 0
130
+ ],
131
+ "ref_crop": "center",
132
+ "ref_longest_edge": [
133
+ "55:5",
134
+ 0
135
+ ],
136
+ "ref_main_image": false,
137
+ "ref_upscale": "lanczos",
138
+ "to_ref": true,
139
+ "to_vl": true,
140
+ "vl_crop": "center",
141
+ "vl_resize": true,
142
+ "vl_target_size": 384,
143
+ "vl_upscale": "bicubic"
144
+ }
145
+ },
146
+ "4": {
147
+ "class_type": "VAELoader",
148
+ "inputs": {
149
+ "vae_name": "qwen_image_vae.safetensors"
150
+ }
151
+ },
152
+ "40": {
153
+ "_meta": {
154
+ "title": "Qwen Edit Encode (prompt here)"
155
+ },
156
+ "class_type": "TextEncodeQwenImageEditPlusCustom_lrzjason",
157
+ "inputs": {
158
+ "clip": [
159
+ "3",
160
+ 0
161
+ ],
162
+ "configs": [
163
+ "37",
164
+ 0
165
+ ],
166
+ "instruction": "",
167
+ "prompt": "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. ",
168
+ "return_full_refs_cond": true,
169
+ "vae": [
170
+ "4",
171
+ 0
172
+ ]
173
+ }
174
+ },
175
+ "41": {
176
+ "class_type": "QwenEditOutputExtractor",
177
+ "inputs": {
178
+ "custom_output": [
179
+ "40",
180
+ 2
181
+ ]
182
+ }
183
+ },
184
+ "42": {
185
+ "_meta": {
186
+ "title": "Negative (zeroed)"
187
+ },
188
+ "class_type": "ConditioningZeroOut",
189
+ "inputs": {
190
+ "conditioning": [
191
+ "40",
192
+ 0
193
+ ]
194
+ }
195
+ },
196
+ "43": {
197
+ "class_type": "KSampler",
198
+ "inputs": {
199
+ "cfg": [
200
+ "53:4",
201
+ 0
202
+ ],
203
+ "denoise": 1,
204
+ "latent_image": [
205
+ "40",
206
+ 1
207
+ ],
208
+ "model": [
209
+ "14",
210
+ 0
211
+ ],
212
+ "negative": [
213
+ "42",
214
+ 0
215
+ ],
216
+ "positive": [
217
+ "40",
218
+ 0
219
+ ],
220
+ "sampler_name": "euler",
221
+ "scheduler": "simple",
222
+ "seed": 440984114065874,
223
+ "steps": [
224
+ "53:3",
225
+ 0
226
+ ]
227
+ }
228
+ },
229
+ "44": {
230
+ "class_type": "VAEDecode",
231
+ "inputs": {
232
+ "samples": [
233
+ "43",
234
+ 0
235
+ ],
236
+ "vae": [
237
+ "4",
238
+ 0
239
+ ]
240
+ }
241
+ },
242
+ "45": {
243
+ "_meta": {
244
+ "title": "Remove padding"
245
+ },
246
+ "class_type": "CropWithPadInfo",
247
+ "inputs": {
248
+ "image": [
249
+ "44",
250
+ 0
251
+ ],
252
+ "pad_info": [
253
+ "41",
254
+ 0
255
+ ]
256
+ }
257
+ },
258
+ "46": {
259
+ "_meta": {
260
+ "title": "upscale_output_to_selected_size"
261
+ },
262
+ "class_type": "PrimitiveBoolean",
263
+ "inputs": {
264
+ "value": true
265
+ }
266
+ },
267
+ "47": {
268
+ "_meta": {
269
+ "title": "Selected output size"
270
+ },
271
+ "class_type": "PrimitiveInt",
272
+ "inputs": {
273
+ "value": 2560
274
+ }
275
+ },
276
+ "48": {
277
+ "_meta": {
278
+ "title": "Scale output"
279
+ },
280
+ "class_type": "ImageScaleToMaxDimension",
281
+ "inputs": {
282
+ "image": [
283
+ "45",
284
+ 0
285
+ ],
286
+ "largest_size": [
287
+ "47",
288
+ 0
289
+ ],
290
+ "upscale_method": "lanczos"
291
+ }
292
+ },
293
+ "49": {
294
+ "_meta": {
295
+ "title": "Output size switch"
296
+ },
297
+ "class_type": "ComfySwitchNode",
298
+ "inputs": {
299
+ "on_false": [
300
+ "45",
301
+ 0
302
+ ],
303
+ "on_true": [
304
+ "48",
305
+ 0
306
+ ],
307
+ "switch": [
308
+ "46",
309
+ 0
310
+ ]
311
+ }
312
+ },
313
+ "5": {
314
+ "_meta": {
315
+ "title": "Lightning Mode (fast)"
316
+ },
317
+ "class_type": "PrimitiveBoolean",
318
+ "inputs": {
319
+ "value": true
320
+ }
321
+ },
322
+ "50": {
323
+ "class_type": "SaveImage",
324
+ "inputs": {
325
+ "filename_prefix": "qwen-edit-turbo-v3",
326
+ "images": [
327
+ "49",
328
+ 0
329
+ ]
330
+ }
331
+ },
332
+ "52": {
333
+ "_meta": {
334
+ "title": "User LoRAs"
335
+ },
336
+ "class_type": "Power Lora Loader (rgthree)",
337
+ "inputs": {
338
+ "lora_1": {
339
+ "lora": "Qwen_LoRA_Skin_Fix_v2.safetensors",
340
+ "on": false,
341
+ "strength": 1,
342
+ "strengthTwo": null
343
+ },
344
+ "lora_2": {
345
+ "lora": "Qwen_LoRA_Amateur_Photo_v1.safetensors",
346
+ "on": false,
347
+ "strength": 1,
348
+ "strengthTwo": null
349
+ },
350
+ "model": [
351
+ "1",
352
+ 0
353
+ ]
354
+ }
355
+ },
356
+ "53:1": {
357
+ "_meta": {
358
+ "title": "LoRA: Lightning 4 steps"
359
+ },
360
+ "class_type": "LoraLoaderModelOnly",
361
+ "inputs": {
362
+ "lora_name": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
363
+ "model": [
364
+ "52",
365
+ 0
366
+ ],
367
+ "strength_model": 1
368
+ }
369
+ },
370
+ "53:2": {
371
+ "_meta": {
372
+ "title": "Model switch"
373
+ },
374
+ "class_type": "ComfySwitchNode",
375
+ "inputs": {
376
+ "on_false": [
377
+ "52",
378
+ 0
379
+ ],
380
+ "on_true": [
381
+ "53:1",
382
+ 0
383
+ ],
384
+ "switch": [
385
+ "5",
386
+ 0
387
+ ]
388
+ }
389
+ },
390
+ "53:3": {
391
+ "_meta": {
392
+ "title": "Steps switch"
393
+ },
394
+ "class_type": "ComfySwitchNode",
395
+ "inputs": {
396
+ "on_false": [
397
+ "53:5",
398
+ 0
399
+ ],
400
+ "on_true": [
401
+ "53:6",
402
+ 0
403
+ ],
404
+ "switch": [
405
+ "5",
406
+ 0
407
+ ]
408
+ }
409
+ },
410
+ "53:4": {
411
+ "_meta": {
412
+ "title": "CFG switch"
413
+ },
414
+ "class_type": "ComfySwitchNode",
415
+ "inputs": {
416
+ "on_false": [
417
+ "53:7",
418
+ 0
419
+ ],
420
+ "on_true": [
421
+ "53:8",
422
+ 0
423
+ ],
424
+ "switch": [
425
+ "5",
426
+ 0
427
+ ]
428
+ }
429
+ },
430
+ "53:5": {
431
+ "_meta": {
432
+ "title": "Steps (quality)"
433
+ },
434
+ "class_type": "PrimitiveInt",
435
+ "inputs": {
436
+ "value": 12
437
+ }
438
+ },
439
+ "53:6": {
440
+ "_meta": {
441
+ "title": "Steps (lightning)"
442
+ },
443
+ "class_type": "PrimitiveInt",
444
+ "inputs": {
445
+ "value": 4
446
+ }
447
+ },
448
+ "53:7": {
449
+ "_meta": {
450
+ "title": "CFG (quality)"
451
+ },
452
+ "class_type": "PrimitiveFloat",
453
+ "inputs": {
454
+ "value": 3
455
+ }
456
+ },
457
+ "53:8": {
458
+ "_meta": {
459
+ "title": "CFG (lightning)"
460
+ },
461
+ "class_type": "PrimitiveFloat",
462
+ "inputs": {
463
+ "value": 1
464
+ }
465
+ },
466
+ "54:1": {
467
+ "_meta": {
468
+ "title": "native edge"
469
+ },
470
+ "class_type": "MathExpression|pysssss",
471
+ "inputs": {
472
+ "a": [
473
+ "20",
474
+ 0
475
+ ],
476
+ "expression": "max(a.width, a.height)"
477
+ }
478
+ },
479
+ "54:2": {
480
+ "_meta": {
481
+ "title": "upscaled edge"
482
+ },
483
+ "class_type": "MathExpression|pysssss",
484
+ "inputs": {
485
+ "a": [
486
+ "20",
487
+ 0
488
+ ],
489
+ "c": [
490
+ "21",
491
+ 0
492
+ ],
493
+ "expression": "max(a.width, a.height, c)"
494
+ }
495
+ },
496
+ "54:3": {
497
+ "_meta": {
498
+ "title": "apply upscale"
499
+ },
500
+ "class_type": "ComfySwitchNode",
501
+ "inputs": {
502
+ "on_false": [
503
+ "54:1",
504
+ 0
505
+ ],
506
+ "on_true": [
507
+ "54:2",
508
+ 0
509
+ ],
510
+ "switch": [
511
+ "15",
512
+ 0
513
+ ]
514
+ }
515
+ },
516
+ "54:4": {
517
+ "_meta": {
518
+ "title": "downscaled edge"
519
+ },
520
+ "class_type": "MathExpression|pysssss",
521
+ "inputs": {
522
+ "a": [
523
+ "54:3",
524
+ 0
525
+ ],
526
+ "c": [
527
+ "21",
528
+ 0
529
+ ],
530
+ "expression": "min(a, c)"
531
+ }
532
+ },
533
+ "54:5": {
534
+ "_meta": {
535
+ "title": "apply downscale"
536
+ },
537
+ "class_type": "ComfySwitchNode",
538
+ "inputs": {
539
+ "on_false": [
540
+ "54:3",
541
+ 0
542
+ ],
543
+ "on_true": [
544
+ "54:4",
545
+ 0
546
+ ],
547
+ "switch": [
548
+ "16",
549
+ 0
550
+ ]
551
+ }
552
+ },
553
+ "55:1": {
554
+ "_meta": {
555
+ "title": "native edge"
556
+ },
557
+ "class_type": "MathExpression|pysssss",
558
+ "inputs": {
559
+ "a": [
560
+ "30",
561
+ 0
562
+ ],
563
+ "expression": "max(a.width, a.height)"
564
+ }
565
+ },
566
+ "55:2": {
567
+ "_meta": {
568
+ "title": "upscaled edge"
569
+ },
570
+ "class_type": "MathExpression|pysssss",
571
+ "inputs": {
572
+ "a": [
573
+ "30",
574
+ 0
575
+ ],
576
+ "c": [
577
+ "31",
578
+ 0
579
+ ],
580
+ "expression": "max(a.width, a.height, c)"
581
+ }
582
+ },
583
+ "55:3": {
584
+ "_meta": {
585
+ "title": "apply upscale"
586
+ },
587
+ "class_type": "ComfySwitchNode",
588
+ "inputs": {
589
+ "on_false": [
590
+ "55:1",
591
+ 0
592
+ ],
593
+ "on_true": [
594
+ "55:2",
595
+ 0
596
+ ],
597
+ "switch": [
598
+ "15",
599
+ 0
600
+ ]
601
+ }
602
+ },
603
+ "55:4": {
604
+ "_meta": {
605
+ "title": "downscaled edge"
606
+ },
607
+ "class_type": "MathExpression|pysssss",
608
+ "inputs": {
609
+ "a": [
610
+ "55:3",
611
+ 0
612
+ ],
613
+ "c": [
614
+ "31",
615
+ 0
616
+ ],
617
+ "expression": "min(a, c)"
618
+ }
619
+ },
620
+ "55:5": {
621
+ "_meta": {
622
+ "title": "apply downscale"
623
+ },
624
+ "class_type": "ComfySwitchNode",
625
+ "inputs": {
626
+ "on_false": [
627
+ "55:3",
628
+ 0
629
+ ],
630
+ "on_true": [
631
+ "55:4",
632
+ 0
633
+ ],
634
+ "switch": [
635
+ "16",
636
+ 0
637
+ ]
638
+ }
639
+ }
640
+ }