aleph65 commited on
Commit
26d84fc
·
verified ·
1 Parent(s): 7d2b4f3

Upload workflows/api/outpaint-qwen.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. workflows/api/outpaint-qwen.json +125 -67
workflows/api/outpaint-qwen.json CHANGED
@@ -210,6 +210,19 @@
210
  }
211
  },
212
  "21": {
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  "class_type": "CLIPLoader",
214
  "inputs": {
215
  "clip_name": "qwen_2.5_vl_7b.safetensors",
@@ -217,13 +230,13 @@
217
  "type": "qwen_image"
218
  }
219
  },
220
- "22": {
221
  "class_type": "VAELoader",
222
  "inputs": {
223
  "vae_name": "qwen_image_vae.safetensors"
224
  }
225
  },
226
- "23": {
227
  "_meta": {
228
  "title": "Prompt"
229
  },
@@ -232,7 +245,7 @@
232
  "value": "Extend the photo beyond its original borders, continuing the scene seamlessly and photorealistically. Keep the original area exactly unchanged. Consistent lighting, colors and perspective. High quality, sharp details."
233
  }
234
  },
235
- "24": {
236
  "_meta": {
237
  "title": "process_long_side (sampling res cap)"
238
  },
@@ -241,7 +254,7 @@
241
  "value": 1344
242
  }
243
  },
244
- "25": {
245
  "_meta": {
246
  "title": "process scale"
247
  },
@@ -252,13 +265,13 @@
252
  0
253
  ],
254
  "c": [
255
- "24",
256
  0
257
  ],
258
  "expression": "min(1, c / max(a.width, a.height))"
259
  }
260
  },
261
- "26": {
262
  "_meta": {
263
  "title": "work width"
264
  },
@@ -269,13 +282,13 @@
269
  0
270
  ],
271
  "b": [
272
- "25",
273
  1
274
  ],
275
  "expression": "round(a.width * b / 16) * 16"
276
  }
277
  },
278
- "27": {
279
  "_meta": {
280
  "title": "work height"
281
  },
@@ -286,13 +299,13 @@
286
  0
287
  ],
288
  "b": [
289
- "25",
290
  1
291
  ],
292
  "expression": "round(a.height * b / 16) * 16"
293
  }
294
  },
295
- "28": {
296
  "_meta": {
297
  "title": "Downscale for sampling"
298
  },
@@ -300,7 +313,7 @@
300
  "inputs": {
301
  "crop": "disabled",
302
  "height": [
303
- "27",
304
  0
305
  ],
306
  "image": [
@@ -309,20 +322,11 @@
309
  ],
310
  "upscale_method": "lanczos",
311
  "width": [
312
- "26",
313
  0
314
  ]
315
  }
316
  },
317
- "29": {
318
- "class_type": "MaskToImage",
319
- "inputs": {
320
- "mask": [
321
- "15",
322
- 1
323
- ]
324
- }
325
- },
326
  "3": {
327
  "_meta": {
328
  "title": "target_height"
@@ -333,6 +337,15 @@
333
  }
334
  },
335
  "30": {
 
 
 
 
 
 
 
 
 
336
  "_meta": {
337
  "title": "Downscale mask"
338
  },
@@ -340,114 +353,114 @@
340
  "inputs": {
341
  "crop": "disabled",
342
  "height": [
343
- "27",
344
  0
345
  ],
346
  "image": [
347
- "29",
348
  0
349
  ],
350
  "upscale_method": "bilinear",
351
  "width": [
352
- "26",
353
  0
354
  ]
355
  }
356
  },
357
- "31": {
358
  "class_type": "ImageToMask",
359
  "inputs": {
360
  "channel": "red",
361
  "image": [
362
- "30",
363
  0
364
  ]
365
  }
366
  },
367
- "32": {
368
  "_meta": {
369
  "title": "Qwen Edit encode"
370
  },
371
  "class_type": "TextEncodeQwenImageEditPlus",
372
  "inputs": {
373
  "clip": [
374
- "21",
375
  0
376
  ],
377
  "image1": [
378
- "28",
379
  0
380
  ],
381
  "prompt": [
382
- "23",
383
  0
384
  ],
385
  "vae": [
386
- "22",
387
  0
388
  ]
389
  }
390
  },
391
- "33": {
392
  "_meta": {
393
  "title": "Negative (zeroed)"
394
  },
395
  "class_type": "ConditioningZeroOut",
396
  "inputs": {
397
  "conditioning": [
398
- "32",
399
  0
400
  ]
401
  }
402
  },
403
- "34": {
404
  "class_type": "VAEEncode",
405
  "inputs": {
406
  "pixels": [
407
- "28",
408
  0
409
  ],
410
  "vae": [
411
- "22",
412
  0
413
  ]
414
  }
415
  },
416
- "35": {
417
  "_meta": {
418
  "title": "Only denoise padded area"
419
  },
420
  "class_type": "SetLatentNoiseMask",
421
  "inputs": {
422
  "mask": [
423
- "31",
424
  0
425
  ],
426
  "samples": [
427
- "34",
428
  0
429
  ]
430
  }
431
  },
432
- "36": {
433
  "class_type": "KSampler",
434
  "inputs": {
435
  "cfg": 1.0,
436
  "denoise": 1.0,
437
  "latent_image": [
438
- "35",
439
  0
440
  ],
441
  "model": [
442
- "20",
443
  0
444
  ],
445
  "negative": [
446
- "33",
447
  0
448
  ],
449
  "positive": [
450
- "32",
451
  0
452
  ],
453
  "sampler_name": "euler",
@@ -456,20 +469,20 @@
456
  "steps": 8
457
  }
458
  },
459
- "37": {
460
  "class_type": "VAEDecode",
461
  "inputs": {
462
  "samples": [
463
- "36",
464
  0
465
  ],
466
  "vae": [
467
- "22",
468
  0
469
  ]
470
  }
471
  },
472
- "38": {
473
  "_meta": {
474
  "title": "Fill detail restorer"
475
  },
@@ -478,32 +491,32 @@
478
  "model_name": "RealESRGAN_x4plus.pth"
479
  }
480
  },
481
- "39": {
 
 
 
 
 
 
 
 
 
482
  "_meta": {
483
  "title": "Upscale sampled result"
484
  },
485
  "class_type": "ImageUpscaleWithModel",
486
  "inputs": {
487
  "image": [
488
- "37",
489
  0
490
  ],
491
  "upscale_model": [
492
- "38",
493
  0
494
  ]
495
  }
496
  },
497
- "4": {
498
- "_meta": {
499
- "title": "anchor_x (0=left 0.5=center 1=right)"
500
- },
501
- "class_type": "PrimitiveFloat",
502
- "inputs": {
503
- "value": 0.5
504
- }
505
- },
506
- "40": {
507
  "_meta": {
508
  "title": "Snap to exact target dims"
509
  },
@@ -515,7 +528,7 @@
515
  0
516
  ],
517
  "image": [
518
- "39",
519
  0
520
  ],
521
  "upscale_method": "lanczos",
@@ -525,14 +538,59 @@
525
  ]
526
  }
527
  },
528
- "41": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
529
  "_meta": {
530
  "title": "Paste original pixels back"
531
  },
532
  "class_type": "ImageCompositeMasked",
533
  "inputs": {
534
  "destination": [
535
- "40",
536
  0
537
  ],
538
  "mask": [
@@ -548,12 +606,12 @@
548
  "y": 0
549
  }
550
  },
551
- "42": {
552
  "class_type": "SaveImage",
553
  "inputs": {
554
  "filename_prefix": "outpaint/qwen",
555
  "images": [
556
- "41",
557
  0
558
  ]
559
  }
@@ -573,7 +631,7 @@
573
  },
574
  "class_type": "PrimitiveInt",
575
  "inputs": {
576
- "value": 40
577
  }
578
  },
579
  "7": {
 
210
  }
211
  },
212
  "21": {
213
+ "_meta": {
214
+ "title": "Gradient-strength denoise (seam blend)"
215
+ },
216
+ "class_type": "DifferentialDiffusion",
217
+ "inputs": {
218
+ "model": [
219
+ "20",
220
+ 0
221
+ ],
222
+ "strength": 1.0
223
+ }
224
+ },
225
+ "22": {
226
  "class_type": "CLIPLoader",
227
  "inputs": {
228
  "clip_name": "qwen_2.5_vl_7b.safetensors",
 
230
  "type": "qwen_image"
231
  }
232
  },
233
+ "23": {
234
  "class_type": "VAELoader",
235
  "inputs": {
236
  "vae_name": "qwen_image_vae.safetensors"
237
  }
238
  },
239
+ "24": {
240
  "_meta": {
241
  "title": "Prompt"
242
  },
 
245
  "value": "Extend the photo beyond its original borders, continuing the scene seamlessly and photorealistically. Keep the original area exactly unchanged. Consistent lighting, colors and perspective. High quality, sharp details."
246
  }
247
  },
248
+ "25": {
249
  "_meta": {
250
  "title": "process_long_side (sampling res cap)"
251
  },
 
254
  "value": 1344
255
  }
256
  },
257
+ "26": {
258
  "_meta": {
259
  "title": "process scale"
260
  },
 
265
  0
266
  ],
267
  "c": [
268
+ "25",
269
  0
270
  ],
271
  "expression": "min(1, c / max(a.width, a.height))"
272
  }
273
  },
274
+ "27": {
275
  "_meta": {
276
  "title": "work width"
277
  },
 
282
  0
283
  ],
284
  "b": [
285
+ "26",
286
  1
287
  ],
288
  "expression": "round(a.width * b / 16) * 16"
289
  }
290
  },
291
+ "28": {
292
  "_meta": {
293
  "title": "work height"
294
  },
 
299
  0
300
  ],
301
  "b": [
302
+ "26",
303
  1
304
  ],
305
  "expression": "round(a.height * b / 16) * 16"
306
  }
307
  },
308
+ "29": {
309
  "_meta": {
310
  "title": "Downscale for sampling"
311
  },
 
313
  "inputs": {
314
  "crop": "disabled",
315
  "height": [
316
+ "28",
317
  0
318
  ],
319
  "image": [
 
322
  ],
323
  "upscale_method": "lanczos",
324
  "width": [
325
+ "27",
326
  0
327
  ]
328
  }
329
  },
 
 
 
 
 
 
 
 
 
330
  "3": {
331
  "_meta": {
332
  "title": "target_height"
 
337
  }
338
  },
339
  "30": {
340
+ "class_type": "MaskToImage",
341
+ "inputs": {
342
+ "mask": [
343
+ "15",
344
+ 1
345
+ ]
346
+ }
347
+ },
348
+ "31": {
349
  "_meta": {
350
  "title": "Downscale mask"
351
  },
 
353
  "inputs": {
354
  "crop": "disabled",
355
  "height": [
356
+ "28",
357
  0
358
  ],
359
  "image": [
360
+ "30",
361
  0
362
  ],
363
  "upscale_method": "bilinear",
364
  "width": [
365
+ "27",
366
  0
367
  ]
368
  }
369
  },
370
+ "32": {
371
  "class_type": "ImageToMask",
372
  "inputs": {
373
  "channel": "red",
374
  "image": [
375
+ "31",
376
  0
377
  ]
378
  }
379
  },
380
+ "33": {
381
  "_meta": {
382
  "title": "Qwen Edit encode"
383
  },
384
  "class_type": "TextEncodeQwenImageEditPlus",
385
  "inputs": {
386
  "clip": [
387
+ "22",
388
  0
389
  ],
390
  "image1": [
391
+ "29",
392
  0
393
  ],
394
  "prompt": [
395
+ "24",
396
  0
397
  ],
398
  "vae": [
399
+ "23",
400
  0
401
  ]
402
  }
403
  },
404
+ "34": {
405
  "_meta": {
406
  "title": "Negative (zeroed)"
407
  },
408
  "class_type": "ConditioningZeroOut",
409
  "inputs": {
410
  "conditioning": [
411
+ "33",
412
  0
413
  ]
414
  }
415
  },
416
+ "35": {
417
  "class_type": "VAEEncode",
418
  "inputs": {
419
  "pixels": [
420
+ "29",
421
  0
422
  ],
423
  "vae": [
424
+ "23",
425
  0
426
  ]
427
  }
428
  },
429
+ "36": {
430
  "_meta": {
431
  "title": "Only denoise padded area"
432
  },
433
  "class_type": "SetLatentNoiseMask",
434
  "inputs": {
435
  "mask": [
436
+ "32",
437
  0
438
  ],
439
  "samples": [
440
+ "35",
441
  0
442
  ]
443
  }
444
  },
445
+ "37": {
446
  "class_type": "KSampler",
447
  "inputs": {
448
  "cfg": 1.0,
449
  "denoise": 1.0,
450
  "latent_image": [
451
+ "36",
452
  0
453
  ],
454
  "model": [
455
+ "21",
456
  0
457
  ],
458
  "negative": [
459
+ "34",
460
  0
461
  ],
462
  "positive": [
463
+ "33",
464
  0
465
  ],
466
  "sampler_name": "euler",
 
469
  "steps": 8
470
  }
471
  },
472
+ "38": {
473
  "class_type": "VAEDecode",
474
  "inputs": {
475
  "samples": [
476
+ "37",
477
  0
478
  ],
479
  "vae": [
480
+ "23",
481
  0
482
  ]
483
  }
484
  },
485
+ "39": {
486
  "_meta": {
487
  "title": "Fill detail restorer"
488
  },
 
491
  "model_name": "RealESRGAN_x4plus.pth"
492
  }
493
  },
494
+ "4": {
495
+ "_meta": {
496
+ "title": "anchor_x (0=left 0.5=center 1=right)"
497
+ },
498
+ "class_type": "PrimitiveFloat",
499
+ "inputs": {
500
+ "value": 0.5
501
+ }
502
+ },
503
+ "40": {
504
  "_meta": {
505
  "title": "Upscale sampled result"
506
  },
507
  "class_type": "ImageUpscaleWithModel",
508
  "inputs": {
509
  "image": [
510
+ "38",
511
  0
512
  ],
513
  "upscale_model": [
514
+ "39",
515
  0
516
  ]
517
  }
518
  },
519
+ "41": {
 
 
 
 
 
 
 
 
 
520
  "_meta": {
521
  "title": "Snap to exact target dims"
522
  },
 
528
  0
529
  ],
530
  "image": [
531
+ "40",
532
  0
533
  ],
534
  "upscale_method": "lanczos",
 
538
  ]
539
  }
540
  },
541
+ "42": {
542
+ "_meta": {
543
+ "title": "Match fill tones to original"
544
+ },
545
+ "class_type": "ColorMatch",
546
+ "inputs": {
547
+ "image_ref": [
548
+ "10",
549
+ 0
550
+ ],
551
+ "image_target": [
552
+ "41",
553
+ 0
554
+ ],
555
+ "method": "mkl",
556
+ "multithread": true,
557
+ "strength": 1.0
558
+ }
559
+ },
560
+ "43": {
561
+ "_meta": {
562
+ "title": "fill_grain (match photo noise, 0=off)"
563
+ },
564
+ "class_type": "PrimitiveFloat",
565
+ "inputs": {
566
+ "value": 0.03
567
+ }
568
+ },
569
+ "44": {
570
+ "_meta": {
571
+ "title": "Grain the fill to match original"
572
+ },
573
+ "class_type": "ImageAddNoise",
574
+ "inputs": {
575
+ "image": [
576
+ "42",
577
+ 0
578
+ ],
579
+ "seed": 0,
580
+ "strength": [
581
+ "43",
582
+ 0
583
+ ]
584
+ }
585
+ },
586
+ "45": {
587
  "_meta": {
588
  "title": "Paste original pixels back"
589
  },
590
  "class_type": "ImageCompositeMasked",
591
  "inputs": {
592
  "destination": [
593
+ "44",
594
  0
595
  ],
596
  "mask": [
 
606
  "y": 0
607
  }
608
  },
609
+ "46": {
610
  "class_type": "SaveImage",
611
  "inputs": {
612
  "filename_prefix": "outpaint/qwen",
613
  "images": [
614
+ "45",
615
  0
616
  ]
617
  }
 
631
  },
632
  "class_type": "PrimitiveInt",
633
  "inputs": {
634
+ "value": 64
635
  }
636
  },
637
  "7": {