aleph65 commited on
Commit
4682ab4
·
verified ·
1 Parent(s): ba7de86

Upload workflows/api/outpaint-flux-fill.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. workflows/api/outpaint-flux-fill.json +175 -27
workflows/api/outpaint-flux-fill.json CHANGED
@@ -255,11 +255,143 @@
255
  }
256
  },
257
  "25": {
258
- "class_type": "InpaintModelConditioning",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
259
  "inputs": {
260
  "mask": [
261
  "15",
262
  1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
  ],
264
  "negative": [
265
  "24",
@@ -267,7 +399,7 @@
267
  ],
268
  "noise_mask": true,
269
  "pixels": [
270
- "15",
271
  0
272
  ],
273
  "positive": [
@@ -280,13 +412,13 @@
280
  ]
281
  }
282
  },
283
- "26": {
284
  "class_type": "KSampler",
285
  "inputs": {
286
  "cfg": 1.0,
287
  "denoise": 1.0,
288
  "latent_image": [
289
- "25",
290
  2
291
  ],
292
  "model": [
@@ -294,11 +426,11 @@
294
  0
295
  ],
296
  "negative": [
297
- "25",
298
  1
299
  ],
300
  "positive": [
301
- "25",
302
  0
303
  ],
304
  "sampler_name": "euler",
@@ -307,11 +439,11 @@
307
  "steps": 8
308
  }
309
  },
310
- "27": {
311
  "class_type": "VAEDecode",
312
  "inputs": {
313
  "samples": [
314
- "26",
315
  0
316
  ],
317
  "vae": [
@@ -320,7 +452,32 @@
320
  ]
321
  }
322
  },
323
- "28": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
324
  "_meta": {
325
  "title": "Snap to exact target dims"
326
  },
@@ -332,7 +489,7 @@
332
  0
333
  ],
334
  "image": [
335
- "27",
336
  0
337
  ],
338
  "upscale_method": "lanczos",
@@ -342,14 +499,14 @@
342
  ]
343
  }
344
  },
345
- "29": {
346
  "_meta": {
347
  "title": "Paste original pixels back"
348
  },
349
  "class_type": "ImageCompositeMasked",
350
  "inputs": {
351
  "destination": [
352
- "28",
353
  0
354
  ],
355
  "mask": [
@@ -365,34 +522,25 @@
365
  "y": 0
366
  }
367
  },
368
- "3": {
369
  "_meta": {
370
- "title": "target_height"
371
  },
372
- "class_type": "PrimitiveInt",
373
  "inputs": {
374
- "value": 1216
375
  }
376
  },
377
- "30": {
378
  "class_type": "SaveImage",
379
  "inputs": {
380
  "filename_prefix": "outpaint/flux-fill",
381
  "images": [
382
- "29",
383
  0
384
  ]
385
  }
386
  },
387
- "4": {
388
- "_meta": {
389
- "title": "anchor_x (0=left 0.5=center 1=right)"
390
- },
391
- "class_type": "PrimitiveFloat",
392
- "inputs": {
393
- "value": 0.5
394
- }
395
- },
396
  "5": {
397
  "_meta": {
398
  "title": "anchor_y (0=top 0.5=center 1=bottom)"
 
255
  }
256
  },
257
  "25": {
258
+ "_meta": {
259
+ "title": "process_long_side (sampling res cap)"
260
+ },
261
+ "class_type": "PrimitiveInt",
262
+ "inputs": {
263
+ "value": 1536
264
+ }
265
+ },
266
+ "26": {
267
+ "_meta": {
268
+ "title": "process scale"
269
+ },
270
+ "class_type": "MathExpression|pysssss",
271
+ "inputs": {
272
+ "a": [
273
+ "15",
274
+ 0
275
+ ],
276
+ "c": [
277
+ "25",
278
+ 0
279
+ ],
280
+ "expression": "min(1, c / max(a.width, a.height))"
281
+ }
282
+ },
283
+ "27": {
284
+ "_meta": {
285
+ "title": "work width"
286
+ },
287
+ "class_type": "MathExpression|pysssss",
288
+ "inputs": {
289
+ "a": [
290
+ "15",
291
+ 0
292
+ ],
293
+ "b": [
294
+ "26",
295
+ 1
296
+ ],
297
+ "expression": "round(a.width * b / 16) * 16"
298
+ }
299
+ },
300
+ "28": {
301
+ "_meta": {
302
+ "title": "work height"
303
+ },
304
+ "class_type": "MathExpression|pysssss",
305
+ "inputs": {
306
+ "a": [
307
+ "15",
308
+ 0
309
+ ],
310
+ "b": [
311
+ "26",
312
+ 1
313
+ ],
314
+ "expression": "round(a.height * b / 16) * 16"
315
+ }
316
+ },
317
+ "29": {
318
+ "_meta": {
319
+ "title": "Downscale for sampling"
320
+ },
321
+ "class_type": "ImageScale",
322
+ "inputs": {
323
+ "crop": "disabled",
324
+ "height": [
325
+ "28",
326
+ 0
327
+ ],
328
+ "image": [
329
+ "15",
330
+ 0
331
+ ],
332
+ "upscale_method": "lanczos",
333
+ "width": [
334
+ "27",
335
+ 0
336
+ ]
337
+ }
338
+ },
339
+ "3": {
340
+ "_meta": {
341
+ "title": "target_height"
342
+ },
343
+ "class_type": "PrimitiveInt",
344
+ "inputs": {
345
+ "value": 1216
346
+ }
347
+ },
348
+ "30": {
349
+ "class_type": "MaskToImage",
350
  "inputs": {
351
  "mask": [
352
  "15",
353
  1
354
+ ]
355
+ }
356
+ },
357
+ "31": {
358
+ "_meta": {
359
+ "title": "Downscale mask"
360
+ },
361
+ "class_type": "ImageScale",
362
+ "inputs": {
363
+ "crop": "disabled",
364
+ "height": [
365
+ "28",
366
+ 0
367
+ ],
368
+ "image": [
369
+ "30",
370
+ 0
371
+ ],
372
+ "upscale_method": "bilinear",
373
+ "width": [
374
+ "27",
375
+ 0
376
+ ]
377
+ }
378
+ },
379
+ "32": {
380
+ "class_type": "ImageToMask",
381
+ "inputs": {
382
+ "channel": "red",
383
+ "image": [
384
+ "31",
385
+ 0
386
+ ]
387
+ }
388
+ },
389
+ "33": {
390
+ "class_type": "InpaintModelConditioning",
391
+ "inputs": {
392
+ "mask": [
393
+ "32",
394
+ 0
395
  ],
396
  "negative": [
397
  "24",
 
399
  ],
400
  "noise_mask": true,
401
  "pixels": [
402
+ "29",
403
  0
404
  ],
405
  "positive": [
 
412
  ]
413
  }
414
  },
415
+ "34": {
416
  "class_type": "KSampler",
417
  "inputs": {
418
  "cfg": 1.0,
419
  "denoise": 1.0,
420
  "latent_image": [
421
+ "33",
422
  2
423
  ],
424
  "model": [
 
426
  0
427
  ],
428
  "negative": [
429
+ "33",
430
  1
431
  ],
432
  "positive": [
433
+ "33",
434
  0
435
  ],
436
  "sampler_name": "euler",
 
439
  "steps": 8
440
  }
441
  },
442
+ "35": {
443
  "class_type": "VAEDecode",
444
  "inputs": {
445
  "samples": [
446
+ "34",
447
  0
448
  ],
449
  "vae": [
 
452
  ]
453
  }
454
  },
455
+ "36": {
456
+ "_meta": {
457
+ "title": "Fill detail restorer"
458
+ },
459
+ "class_type": "UpscaleModelLoader",
460
+ "inputs": {
461
+ "model_name": "RealESRGAN_x4plus.pth"
462
+ }
463
+ },
464
+ "37": {
465
+ "_meta": {
466
+ "title": "Upscale sampled result"
467
+ },
468
+ "class_type": "ImageUpscaleWithModel",
469
+ "inputs": {
470
+ "image": [
471
+ "35",
472
+ 0
473
+ ],
474
+ "upscale_model": [
475
+ "36",
476
+ 0
477
+ ]
478
+ }
479
+ },
480
+ "38": {
481
  "_meta": {
482
  "title": "Snap to exact target dims"
483
  },
 
489
  0
490
  ],
491
  "image": [
492
+ "37",
493
  0
494
  ],
495
  "upscale_method": "lanczos",
 
499
  ]
500
  }
501
  },
502
+ "39": {
503
  "_meta": {
504
  "title": "Paste original pixels back"
505
  },
506
  "class_type": "ImageCompositeMasked",
507
  "inputs": {
508
  "destination": [
509
+ "38",
510
  0
511
  ],
512
  "mask": [
 
522
  "y": 0
523
  }
524
  },
525
+ "4": {
526
  "_meta": {
527
+ "title": "anchor_x (0=left 0.5=center 1=right)"
528
  },
529
+ "class_type": "PrimitiveFloat",
530
  "inputs": {
531
+ "value": 0.5
532
  }
533
  },
534
+ "40": {
535
  "class_type": "SaveImage",
536
  "inputs": {
537
  "filename_prefix": "outpaint/flux-fill",
538
  "images": [
539
+ "39",
540
  0
541
  ]
542
  }
543
  },
 
 
 
 
 
 
 
 
 
544
  "5": {
545
  "_meta": {
546
  "title": "anchor_y (0=top 0.5=center 1=bottom)"