aleph65 commited on
Commit
d0ed495
·
verified ·
1 Parent(s): 31b7f1b

Upload workflows/outpaint-lama.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. workflows/outpaint-lama.json +1396 -0
workflows/outpaint-lama.json ADDED
@@ -0,0 +1,1396 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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11
+ -60,
12
+ 40
13
+ ],
14
+ "size": [
15
+ 310,
16
+ 320
17
+ ],
18
+ "flags": {},
19
+ "order": 1,
20
+ "mode": 0,
21
+ "inputs": [],
22
+ "outputs": [
23
+ {
24
+ "name": "IMAGE",
25
+ "type": "IMAGE",
26
+ "links": [
27
+ 1,
28
+ 4,
29
+ 7,
30
+ 10
31
+ ],
32
+ "slot_index": 0
33
+ },
34
+ {
35
+ "name": "MASK",
36
+ "type": "MASK",
37
+ "links": [],
38
+ "slot_index": 1
39
+ }
40
+ ],
41
+ "properties": {
42
+ "Node name for S&R": "LoadImage"
43
+ },
44
+ "widgets_values": [
45
+ "example.png",
46
+ "image"
47
+ ],
48
+ "title": "Source Image"
49
+ },
50
+ {
51
+ "id": 2,
52
+ "type": "PrimitiveInt",
53
+ "pos": [
54
+ -60,
55
+ 420
56
+ ],
57
+ "size": [
58
+ 310,
59
+ 80
60
+ ],
61
+ "flags": {},
62
+ "order": 2,
63
+ "mode": 0,
64
+ "inputs": [],
65
+ "outputs": [
66
+ {
67
+ "name": "INT",
68
+ "type": "INT",
69
+ "links": [
70
+ 2,
71
+ 6,
72
+ 14,
73
+ 17,
74
+ 36
75
+ ],
76
+ "slot_index": 0
77
+ }
78
+ ],
79
+ "properties": {
80
+ "Node name for S&R": "PrimitiveInt"
81
+ },
82
+ "widgets_values": [
83
+ 1216,
84
+ "fixed"
85
+ ],
86
+ "title": "target_width"
87
+ },
88
+ {
89
+ "id": 3,
90
+ "type": "PrimitiveInt",
91
+ "pos": [
92
+ -60,
93
+ 550
94
+ ],
95
+ "size": [
96
+ 310,
97
+ 80
98
+ ],
99
+ "flags": {},
100
+ "order": 3,
101
+ "mode": 0,
102
+ "inputs": [],
103
+ "outputs": [
104
+ {
105
+ "name": "INT",
106
+ "type": "INT",
107
+ "links": [
108
+ 3,
109
+ 9,
110
+ 20,
111
+ 23,
112
+ 37
113
+ ],
114
+ "slot_index": 0
115
+ }
116
+ ],
117
+ "properties": {
118
+ "Node name for S&R": "PrimitiveInt"
119
+ },
120
+ "widgets_values": [
121
+ 1216,
122
+ "fixed"
123
+ ],
124
+ "title": "target_height"
125
+ },
126
+ {
127
+ "id": 4,
128
+ "type": "PrimitiveFloat",
129
+ "pos": [
130
+ -60,
131
+ 680
132
+ ],
133
+ "size": [
134
+ 310,
135
+ 60
136
+ ],
137
+ "flags": {},
138
+ "order": 4,
139
+ "mode": 0,
140
+ "inputs": [],
141
+ "outputs": [
142
+ {
143
+ "name": "FLOAT",
144
+ "type": "FLOAT",
145
+ "links": [
146
+ 15
147
+ ],
148
+ "slot_index": 0
149
+ }
150
+ ],
151
+ "properties": {
152
+ "Node name for S&R": "PrimitiveFloat"
153
+ },
154
+ "widgets_values": [
155
+ 0.5
156
+ ],
157
+ "title": "anchor_x (0=left 0.5=center 1=right)"
158
+ },
159
+ {
160
+ "id": 5,
161
+ "type": "PrimitiveFloat",
162
+ "pos": [
163
+ -60,
164
+ 790
165
+ ],
166
+ "size": [
167
+ 310,
168
+ 60
169
+ ],
170
+ "flags": {},
171
+ "order": 5,
172
+ "mode": 0,
173
+ "inputs": [],
174
+ "outputs": [
175
+ {
176
+ "name": "FLOAT",
177
+ "type": "FLOAT",
178
+ "links": [
179
+ 21
180
+ ],
181
+ "slot_index": 0
182
+ }
183
+ ],
184
+ "properties": {
185
+ "Node name for S&R": "PrimitiveFloat"
186
+ },
187
+ "widgets_values": [
188
+ 0.5
189
+ ],
190
+ "title": "anchor_y (0=top 0.5=center 1=bottom)"
191
+ },
192
+ {
193
+ "id": 6,
194
+ "type": "PrimitiveInt",
195
+ "pos": [
196
+ -60,
197
+ 900
198
+ ],
199
+ "size": [
200
+ 310,
201
+ 80
202
+ ],
203
+ "flags": {},
204
+ "order": 6,
205
+ "mode": 0,
206
+ "inputs": [],
207
+ "outputs": [
208
+ {
209
+ "name": "INT",
210
+ "type": "INT",
211
+ "links": [
212
+ 30
213
+ ],
214
+ "slot_index": 0
215
+ }
216
+ ],
217
+ "properties": {
218
+ "Node name for S&R": "PrimitiveInt"
219
+ },
220
+ "widgets_values": [
221
+ 16,
222
+ "fixed"
223
+ ],
224
+ "title": "feathering (px)"
225
+ },
226
+ {
227
+ "id": 7,
228
+ "type": "MathExpression|pysssss",
229
+ "pos": [
230
+ 330,
231
+ 40
232
+ ],
233
+ "size": [
234
+ 270,
235
+ 100
236
+ ],
237
+ "flags": {},
238
+ "order": 7,
239
+ "mode": 0,
240
+ "inputs": [
241
+ {
242
+ "name": "a",
243
+ "type": "*",
244
+ "link": 1
245
+ },
246
+ {
247
+ "name": "b",
248
+ "type": "*",
249
+ "link": 2
250
+ },
251
+ {
252
+ "name": "c",
253
+ "type": "*",
254
+ "link": 3
255
+ }
256
+ ],
257
+ "outputs": [
258
+ {
259
+ "name": "INT",
260
+ "type": "INT",
261
+ "links": [],
262
+ "slot_index": 0
263
+ },
264
+ {
265
+ "name": "FLOAT",
266
+ "type": "FLOAT",
267
+ "links": [
268
+ 5,
269
+ 8
270
+ ],
271
+ "slot_index": 1
272
+ }
273
+ ],
274
+ "properties": {
275
+ "Node name for S&R": "MathExpression|pysssss"
276
+ },
277
+ "widgets_values": [
278
+ "min(b / a.width, c / a.height)"
279
+ ],
280
+ "title": "fit scale"
281
+ },
282
+ {
283
+ "id": 8,
284
+ "type": "MathExpression|pysssss",
285
+ "pos": [
286
+ 330,
287
+ 200
288
+ ],
289
+ "size": [
290
+ 270,
291
+ 100
292
+ ],
293
+ "flags": {},
294
+ "order": 8,
295
+ "mode": 0,
296
+ "inputs": [
297
+ {
298
+ "name": "a",
299
+ "type": "*",
300
+ "link": 4
301
+ },
302
+ {
303
+ "name": "b",
304
+ "type": "*",
305
+ "link": 5
306
+ },
307
+ {
308
+ "name": "c",
309
+ "type": "*",
310
+ "link": 6
311
+ }
312
+ ],
313
+ "outputs": [
314
+ {
315
+ "name": "INT",
316
+ "type": "INT",
317
+ "links": [
318
+ 11
319
+ ],
320
+ "slot_index": 0
321
+ },
322
+ {
323
+ "name": "FLOAT",
324
+ "type": "FLOAT",
325
+ "links": [],
326
+ "slot_index": 1
327
+ }
328
+ ],
329
+ "properties": {
330
+ "Node name for S&R": "MathExpression|pysssss"
331
+ },
332
+ "widgets_values": [
333
+ "min(round(a.width * b), c)"
334
+ ],
335
+ "title": "fit width"
336
+ },
337
+ {
338
+ "id": 9,
339
+ "type": "MathExpression|pysssss",
340
+ "pos": [
341
+ 330,
342
+ 360
343
+ ],
344
+ "size": [
345
+ 270,
346
+ 100
347
+ ],
348
+ "flags": {},
349
+ "order": 9,
350
+ "mode": 0,
351
+ "inputs": [
352
+ {
353
+ "name": "a",
354
+ "type": "*",
355
+ "link": 7
356
+ },
357
+ {
358
+ "name": "b",
359
+ "type": "*",
360
+ "link": 8
361
+ },
362
+ {
363
+ "name": "c",
364
+ "type": "*",
365
+ "link": 9
366
+ }
367
+ ],
368
+ "outputs": [
369
+ {
370
+ "name": "INT",
371
+ "type": "INT",
372
+ "links": [
373
+ 12
374
+ ],
375
+ "slot_index": 0
376
+ },
377
+ {
378
+ "name": "FLOAT",
379
+ "type": "FLOAT",
380
+ "links": [],
381
+ "slot_index": 1
382
+ }
383
+ ],
384
+ "properties": {
385
+ "Node name for S&R": "MathExpression|pysssss"
386
+ },
387
+ "widgets_values": [
388
+ "min(round(a.height * b), c)"
389
+ ],
390
+ "title": "fit height"
391
+ },
392
+ {
393
+ "id": 10,
394
+ "type": "ImageScale",
395
+ "pos": [
396
+ 620,
397
+ 40
398
+ ],
399
+ "size": [
400
+ 270,
401
+ 100
402
+ ],
403
+ "flags": {},
404
+ "order": 10,
405
+ "mode": 0,
406
+ "inputs": [
407
+ {
408
+ "name": "image",
409
+ "type": "IMAGE",
410
+ "link": 10
411
+ },
412
+ {
413
+ "name": "width",
414
+ "type": "INT",
415
+ "link": 11,
416
+ "widget": {
417
+ "name": "width"
418
+ }
419
+ },
420
+ {
421
+ "name": "height",
422
+ "type": "INT",
423
+ "link": 12,
424
+ "widget": {
425
+ "name": "height"
426
+ }
427
+ }
428
+ ],
429
+ "outputs": [
430
+ {
431
+ "name": "IMAGE",
432
+ "type": "IMAGE",
433
+ "links": [
434
+ 13,
435
+ 16,
436
+ 19,
437
+ 22,
438
+ 25
439
+ ],
440
+ "slot_index": 0
441
+ }
442
+ ],
443
+ "properties": {
444
+ "Node name for S&R": "ImageScale"
445
+ },
446
+ "widgets_values": [
447
+ "lanczos",
448
+ 512,
449
+ 512,
450
+ "disabled"
451
+ ],
452
+ "title": "Resize to fit target"
453
+ },
454
+ {
455
+ "id": 11,
456
+ "type": "MathExpression|pysssss",
457
+ "pos": [
458
+ 620,
459
+ 260
460
+ ],
461
+ "size": [
462
+ 270,
463
+ 100
464
+ ],
465
+ "flags": {},
466
+ "order": 11,
467
+ "mode": 0,
468
+ "inputs": [
469
+ {
470
+ "name": "a",
471
+ "type": "*",
472
+ "link": 13
473
+ },
474
+ {
475
+ "name": "b",
476
+ "type": "*",
477
+ "link": 14
478
+ },
479
+ {
480
+ "name": "c",
481
+ "type": "*",
482
+ "link": 15
483
+ }
484
+ ],
485
+ "outputs": [
486
+ {
487
+ "name": "INT",
488
+ "type": "INT",
489
+ "links": [
490
+ 18,
491
+ 26
492
+ ],
493
+ "slot_index": 0
494
+ },
495
+ {
496
+ "name": "FLOAT",
497
+ "type": "FLOAT",
498
+ "links": [],
499
+ "slot_index": 1
500
+ }
501
+ ],
502
+ "properties": {
503
+ "Node name for S&R": "MathExpression|pysssss"
504
+ },
505
+ "widgets_values": [
506
+ "max(floor((b - a.width) * c), 0)"
507
+ ],
508
+ "title": "pad left"
509
+ },
510
+ {
511
+ "id": 12,
512
+ "type": "MathExpression|pysssss",
513
+ "pos": [
514
+ 620,
515
+ 420
516
+ ],
517
+ "size": [
518
+ 270,
519
+ 100
520
+ ],
521
+ "flags": {},
522
+ "order": 12,
523
+ "mode": 0,
524
+ "inputs": [
525
+ {
526
+ "name": "a",
527
+ "type": "*",
528
+ "link": 16
529
+ },
530
+ {
531
+ "name": "b",
532
+ "type": "*",
533
+ "link": 17
534
+ },
535
+ {
536
+ "name": "c",
537
+ "type": "*",
538
+ "link": 18
539
+ }
540
+ ],
541
+ "outputs": [
542
+ {
543
+ "name": "INT",
544
+ "type": "INT",
545
+ "links": [
546
+ 28
547
+ ],
548
+ "slot_index": 0
549
+ },
550
+ {
551
+ "name": "FLOAT",
552
+ "type": "FLOAT",
553
+ "links": [],
554
+ "slot_index": 1
555
+ }
556
+ ],
557
+ "properties": {
558
+ "Node name for S&R": "MathExpression|pysssss"
559
+ },
560
+ "widgets_values": [
561
+ "max(b - a.width - c, 0)"
562
+ ],
563
+ "title": "pad right"
564
+ },
565
+ {
566
+ "id": 13,
567
+ "type": "MathExpression|pysssss",
568
+ "pos": [
569
+ 620,
570
+ 580
571
+ ],
572
+ "size": [
573
+ 270,
574
+ 100
575
+ ],
576
+ "flags": {},
577
+ "order": 13,
578
+ "mode": 0,
579
+ "inputs": [
580
+ {
581
+ "name": "a",
582
+ "type": "*",
583
+ "link": 19
584
+ },
585
+ {
586
+ "name": "b",
587
+ "type": "*",
588
+ "link": 20
589
+ },
590
+ {
591
+ "name": "c",
592
+ "type": "*",
593
+ "link": 21
594
+ }
595
+ ],
596
+ "outputs": [
597
+ {
598
+ "name": "INT",
599
+ "type": "INT",
600
+ "links": [
601
+ 24,
602
+ 27
603
+ ],
604
+ "slot_index": 0
605
+ },
606
+ {
607
+ "name": "FLOAT",
608
+ "type": "FLOAT",
609
+ "links": [],
610
+ "slot_index": 1
611
+ }
612
+ ],
613
+ "properties": {
614
+ "Node name for S&R": "MathExpression|pysssss"
615
+ },
616
+ "widgets_values": [
617
+ "max(floor((b - a.height) * c), 0)"
618
+ ],
619
+ "title": "pad top"
620
+ },
621
+ {
622
+ "id": 14,
623
+ "type": "MathExpression|pysssss",
624
+ "pos": [
625
+ 620,
626
+ 740
627
+ ],
628
+ "size": [
629
+ 270,
630
+ 100
631
+ ],
632
+ "flags": {},
633
+ "order": 14,
634
+ "mode": 0,
635
+ "inputs": [
636
+ {
637
+ "name": "a",
638
+ "type": "*",
639
+ "link": 22
640
+ },
641
+ {
642
+ "name": "b",
643
+ "type": "*",
644
+ "link": 23
645
+ },
646
+ {
647
+ "name": "c",
648
+ "type": "*",
649
+ "link": 24
650
+ }
651
+ ],
652
+ "outputs": [
653
+ {
654
+ "name": "INT",
655
+ "type": "INT",
656
+ "links": [
657
+ 29
658
+ ],
659
+ "slot_index": 0
660
+ },
661
+ {
662
+ "name": "FLOAT",
663
+ "type": "FLOAT",
664
+ "links": [],
665
+ "slot_index": 1
666
+ }
667
+ ],
668
+ "properties": {
669
+ "Node name for S&R": "MathExpression|pysssss"
670
+ },
671
+ "widgets_values": [
672
+ "max(b - a.height - c, 0)"
673
+ ],
674
+ "title": "pad bottom"
675
+ },
676
+ {
677
+ "id": 15,
678
+ "type": "ImagePadForOutpaint",
679
+ "pos": [
680
+ 920,
681
+ 40
682
+ ],
683
+ "size": [
684
+ 280,
685
+ 190
686
+ ],
687
+ "flags": {},
688
+ "order": 15,
689
+ "mode": 0,
690
+ "inputs": [
691
+ {
692
+ "name": "image",
693
+ "type": "IMAGE",
694
+ "link": 25
695
+ },
696
+ {
697
+ "name": "left",
698
+ "type": "INT",
699
+ "link": 26,
700
+ "widget": {
701
+ "name": "left"
702
+ }
703
+ },
704
+ {
705
+ "name": "top",
706
+ "type": "INT",
707
+ "link": 27,
708
+ "widget": {
709
+ "name": "top"
710
+ }
711
+ },
712
+ {
713
+ "name": "right",
714
+ "type": "INT",
715
+ "link": 28,
716
+ "widget": {
717
+ "name": "right"
718
+ }
719
+ },
720
+ {
721
+ "name": "bottom",
722
+ "type": "INT",
723
+ "link": 29,
724
+ "widget": {
725
+ "name": "bottom"
726
+ }
727
+ },
728
+ {
729
+ "name": "feathering",
730
+ "type": "INT",
731
+ "link": 30,
732
+ "widget": {
733
+ "name": "feathering"
734
+ }
735
+ }
736
+ ],
737
+ "outputs": [
738
+ {
739
+ "name": "IMAGE",
740
+ "type": "IMAGE",
741
+ "links": [
742
+ 33,
743
+ 39
744
+ ],
745
+ "slot_index": 0
746
+ },
747
+ {
748
+ "name": "MASK",
749
+ "type": "MASK",
750
+ "links": [
751
+ 31,
752
+ 34
753
+ ],
754
+ "slot_index": 1
755
+ }
756
+ ],
757
+ "properties": {
758
+ "Node name for S&R": "ImagePadForOutpaint"
759
+ },
760
+ "widgets_values": [
761
+ 0,
762
+ 0,
763
+ 0,
764
+ 0,
765
+ 40
766
+ ],
767
+ "title": "Pad to exact target"
768
+ },
769
+ {
770
+ "id": 16,
771
+ "type": "InvertMask",
772
+ "pos": [
773
+ 920,
774
+ 290
775
+ ],
776
+ "size": [
777
+ 280,
778
+ 40
779
+ ],
780
+ "flags": {},
781
+ "order": 16,
782
+ "mode": 0,
783
+ "inputs": [
784
+ {
785
+ "name": "mask",
786
+ "type": "MASK",
787
+ "link": 31
788
+ }
789
+ ],
790
+ "outputs": [
791
+ {
792
+ "name": "MASK",
793
+ "type": "MASK",
794
+ "links": [
795
+ 40
796
+ ],
797
+ "slot_index": 0
798
+ }
799
+ ],
800
+ "properties": {
801
+ "Node name for S&R": "InvertMask"
802
+ },
803
+ "widgets_values": [],
804
+ "title": "keep-region mask"
805
+ },
806
+ {
807
+ "id": 17,
808
+ "type": "INPAINT_LoadInpaintModel",
809
+ "pos": [
810
+ 1280,
811
+ 40
812
+ ],
813
+ "size": [
814
+ 270,
815
+ 100
816
+ ],
817
+ "flags": {},
818
+ "order": 17,
819
+ "mode": 0,
820
+ "inputs": [],
821
+ "outputs": [
822
+ {
823
+ "name": "inpaint model",
824
+ "type": "INPAINT_MODEL",
825
+ "links": [
826
+ 32
827
+ ],
828
+ "slot_index": 0
829
+ }
830
+ ],
831
+ "properties": {
832
+ "Node name for S&R": "INPAINT_LoadInpaintModel"
833
+ },
834
+ "widgets_values": [
835
+ "big-lama.pt"
836
+ ],
837
+ "title": "LaMa model"
838
+ },
839
+ {
840
+ "id": 18,
841
+ "type": "INPAINT_InpaintWithModel",
842
+ "pos": [
843
+ 1280,
844
+ 160
845
+ ],
846
+ "size": [
847
+ 270,
848
+ 100
849
+ ],
850
+ "flags": {},
851
+ "order": 18,
852
+ "mode": 0,
853
+ "inputs": [
854
+ {
855
+ "name": "inpaint_model",
856
+ "type": "INPAINT_MODEL",
857
+ "link": 32
858
+ },
859
+ {
860
+ "name": "image",
861
+ "type": "IMAGE",
862
+ "link": 33
863
+ },
864
+ {
865
+ "name": "mask",
866
+ "type": "MASK",
867
+ "link": 34
868
+ },
869
+ {
870
+ "name": "optional_upscale_model",
871
+ "type": "UPSCALE_MODEL",
872
+ "link": null
873
+ }
874
+ ],
875
+ "outputs": [
876
+ {
877
+ "name": "inpainted image",
878
+ "type": "IMAGE",
879
+ "links": [
880
+ 35
881
+ ],
882
+ "slot_index": 0
883
+ }
884
+ ],
885
+ "properties": {
886
+ "Node name for S&R": "INPAINT_InpaintWithModel"
887
+ },
888
+ "widgets_values": [
889
+ 0
890
+ ],
891
+ "title": "LaMa fill"
892
+ },
893
+ {
894
+ "id": 19,
895
+ "type": "ImageScale",
896
+ "pos": [
897
+ 1620,
898
+ 40
899
+ ],
900
+ "size": [
901
+ 270,
902
+ 100
903
+ ],
904
+ "flags": {},
905
+ "order": 19,
906
+ "mode": 0,
907
+ "inputs": [
908
+ {
909
+ "name": "image",
910
+ "type": "IMAGE",
911
+ "link": 35
912
+ },
913
+ {
914
+ "name": "width",
915
+ "type": "INT",
916
+ "link": 36,
917
+ "widget": {
918
+ "name": "width"
919
+ }
920
+ },
921
+ {
922
+ "name": "height",
923
+ "type": "INT",
924
+ "link": 37,
925
+ "widget": {
926
+ "name": "height"
927
+ }
928
+ }
929
+ ],
930
+ "outputs": [
931
+ {
932
+ "name": "IMAGE",
933
+ "type": "IMAGE",
934
+ "links": [
935
+ 38
936
+ ],
937
+ "slot_index": 0
938
+ }
939
+ ],
940
+ "properties": {
941
+ "Node name for S&R": "ImageScale"
942
+ },
943
+ "widgets_values": [
944
+ "lanczos",
945
+ 512,
946
+ 512,
947
+ "disabled"
948
+ ],
949
+ "title": "Snap to exact target dims"
950
+ },
951
+ {
952
+ "id": 20,
953
+ "type": "ImageCompositeMasked",
954
+ "pos": [
955
+ 1920,
956
+ 40
957
+ ],
958
+ "size": [
959
+ 270,
960
+ 100
961
+ ],
962
+ "flags": {},
963
+ "order": 20,
964
+ "mode": 0,
965
+ "inputs": [
966
+ {
967
+ "name": "destination",
968
+ "type": "IMAGE",
969
+ "link": 38
970
+ },
971
+ {
972
+ "name": "source",
973
+ "type": "IMAGE",
974
+ "link": 39
975
+ },
976
+ {
977
+ "name": "mask",
978
+ "type": "MASK",
979
+ "link": 40
980
+ }
981
+ ],
982
+ "outputs": [
983
+ {
984
+ "name": "IMAGE",
985
+ "type": "IMAGE",
986
+ "links": [
987
+ 41
988
+ ],
989
+ "slot_index": 0
990
+ }
991
+ ],
992
+ "properties": {
993
+ "Node name for S&R": "ImageCompositeMasked"
994
+ },
995
+ "widgets_values": [
996
+ 0,
997
+ 0,
998
+ false
999
+ ],
1000
+ "title": "Paste original pixels back"
1001
+ },
1002
+ {
1003
+ "id": 21,
1004
+ "type": "SaveImage",
1005
+ "pos": [
1006
+ 2220,
1007
+ 40
1008
+ ],
1009
+ "size": [
1010
+ 310,
1011
+ 300
1012
+ ],
1013
+ "flags": {},
1014
+ "order": 21,
1015
+ "mode": 0,
1016
+ "inputs": [
1017
+ {
1018
+ "name": "images",
1019
+ "type": "IMAGE",
1020
+ "link": 41
1021
+ }
1022
+ ],
1023
+ "outputs": [
1024
+ {
1025
+ "name": "images",
1026
+ "type": "IMAGE",
1027
+ "links": [],
1028
+ "slot_index": 0
1029
+ }
1030
+ ],
1031
+ "properties": {
1032
+ "Node name for S&R": "SaveImage"
1033
+ },
1034
+ "widgets_values": [
1035
+ "outpaint/lama"
1036
+ ]
1037
+ },
1038
+ {
1039
+ "id": 22,
1040
+ "type": "Note",
1041
+ "pos": [
1042
+ -60,
1043
+ -260
1044
+ ],
1045
+ "size": [
1046
+ 420,
1047
+ 240
1048
+ ],
1049
+ "flags": {},
1050
+ "order": 22,
1051
+ "mode": 0,
1052
+ "inputs": [],
1053
+ "outputs": [],
1054
+ "properties": {},
1055
+ "widgets_values": [
1056
+ "## Outpaint to exact dimensions \u2014 LaMa (instant, no prompt)\n\nSet **target_width / target_height** to the EXACT output size you want.\nThe source image is first resized (lanczos) to fit inside the target box,\nthen the remainder is outpainted. Output is always exactly target WxH,\nwith the original pixels composited back untouched.\n\n- **anchor_x**: where the original sits horizontally (0 = left, 0.5 = center, 1 = right)\n- **anchor_y**: same vertically (0 = top, 1 = bottom)\n- **feathering**: seam blend width in px\n\nNo diffusion, no prompt, <1s. Best for simple backgrounds: skies,\nstudio backdrops, bokeh, gradients. Use the Qwen/Flux workflows when\nthe border area has hard structure, patterns, or body parts."
1057
+ ],
1058
+ "color": "#432",
1059
+ "bgcolor": "#653"
1060
+ }
1061
+ ],
1062
+ "links": [
1063
+ [
1064
+ 1,
1065
+ 1,
1066
+ 0,
1067
+ 7,
1068
+ 0,
1069
+ "IMAGE"
1070
+ ],
1071
+ [
1072
+ 2,
1073
+ 2,
1074
+ 0,
1075
+ 7,
1076
+ 1,
1077
+ "INT"
1078
+ ],
1079
+ [
1080
+ 3,
1081
+ 3,
1082
+ 0,
1083
+ 7,
1084
+ 2,
1085
+ "INT"
1086
+ ],
1087
+ [
1088
+ 4,
1089
+ 1,
1090
+ 0,
1091
+ 8,
1092
+ 0,
1093
+ "IMAGE"
1094
+ ],
1095
+ [
1096
+ 5,
1097
+ 7,
1098
+ 1,
1099
+ 8,
1100
+ 1,
1101
+ "FLOAT"
1102
+ ],
1103
+ [
1104
+ 6,
1105
+ 2,
1106
+ 0,
1107
+ 8,
1108
+ 2,
1109
+ "INT"
1110
+ ],
1111
+ [
1112
+ 7,
1113
+ 1,
1114
+ 0,
1115
+ 9,
1116
+ 0,
1117
+ "IMAGE"
1118
+ ],
1119
+ [
1120
+ 8,
1121
+ 7,
1122
+ 1,
1123
+ 9,
1124
+ 1,
1125
+ "FLOAT"
1126
+ ],
1127
+ [
1128
+ 9,
1129
+ 3,
1130
+ 0,
1131
+ 9,
1132
+ 2,
1133
+ "INT"
1134
+ ],
1135
+ [
1136
+ 10,
1137
+ 1,
1138
+ 0,
1139
+ 10,
1140
+ 0,
1141
+ "IMAGE"
1142
+ ],
1143
+ [
1144
+ 11,
1145
+ 8,
1146
+ 0,
1147
+ 10,
1148
+ 1,
1149
+ "INT"
1150
+ ],
1151
+ [
1152
+ 12,
1153
+ 9,
1154
+ 0,
1155
+ 10,
1156
+ 2,
1157
+ "INT"
1158
+ ],
1159
+ [
1160
+ 13,
1161
+ 10,
1162
+ 0,
1163
+ 11,
1164
+ 0,
1165
+ "IMAGE"
1166
+ ],
1167
+ [
1168
+ 14,
1169
+ 2,
1170
+ 0,
1171
+ 11,
1172
+ 1,
1173
+ "INT"
1174
+ ],
1175
+ [
1176
+ 15,
1177
+ 4,
1178
+ 0,
1179
+ 11,
1180
+ 2,
1181
+ "FLOAT"
1182
+ ],
1183
+ [
1184
+ 16,
1185
+ 10,
1186
+ 0,
1187
+ 12,
1188
+ 0,
1189
+ "IMAGE"
1190
+ ],
1191
+ [
1192
+ 17,
1193
+ 2,
1194
+ 0,
1195
+ 12,
1196
+ 1,
1197
+ "INT"
1198
+ ],
1199
+ [
1200
+ 18,
1201
+ 11,
1202
+ 0,
1203
+ 12,
1204
+ 2,
1205
+ "INT"
1206
+ ],
1207
+ [
1208
+ 19,
1209
+ 10,
1210
+ 0,
1211
+ 13,
1212
+ 0,
1213
+ "IMAGE"
1214
+ ],
1215
+ [
1216
+ 20,
1217
+ 3,
1218
+ 0,
1219
+ 13,
1220
+ 1,
1221
+ "INT"
1222
+ ],
1223
+ [
1224
+ 21,
1225
+ 5,
1226
+ 0,
1227
+ 13,
1228
+ 2,
1229
+ "FLOAT"
1230
+ ],
1231
+ [
1232
+ 22,
1233
+ 10,
1234
+ 0,
1235
+ 14,
1236
+ 0,
1237
+ "IMAGE"
1238
+ ],
1239
+ [
1240
+ 23,
1241
+ 3,
1242
+ 0,
1243
+ 14,
1244
+ 1,
1245
+ "INT"
1246
+ ],
1247
+ [
1248
+ 24,
1249
+ 13,
1250
+ 0,
1251
+ 14,
1252
+ 2,
1253
+ "INT"
1254
+ ],
1255
+ [
1256
+ 25,
1257
+ 10,
1258
+ 0,
1259
+ 15,
1260
+ 0,
1261
+ "IMAGE"
1262
+ ],
1263
+ [
1264
+ 26,
1265
+ 11,
1266
+ 0,
1267
+ 15,
1268
+ 1,
1269
+ "INT"
1270
+ ],
1271
+ [
1272
+ 27,
1273
+ 13,
1274
+ 0,
1275
+ 15,
1276
+ 2,
1277
+ "INT"
1278
+ ],
1279
+ [
1280
+ 28,
1281
+ 12,
1282
+ 0,
1283
+ 15,
1284
+ 3,
1285
+ "INT"
1286
+ ],
1287
+ [
1288
+ 29,
1289
+ 14,
1290
+ 0,
1291
+ 15,
1292
+ 4,
1293
+ "INT"
1294
+ ],
1295
+ [
1296
+ 30,
1297
+ 6,
1298
+ 0,
1299
+ 15,
1300
+ 5,
1301
+ "INT"
1302
+ ],
1303
+ [
1304
+ 31,
1305
+ 15,
1306
+ 1,
1307
+ 16,
1308
+ 0,
1309
+ "MASK"
1310
+ ],
1311
+ [
1312
+ 32,
1313
+ 17,
1314
+ 0,
1315
+ 18,
1316
+ 0,
1317
+ "INPAINT_MODEL"
1318
+ ],
1319
+ [
1320
+ 33,
1321
+ 15,
1322
+ 0,
1323
+ 18,
1324
+ 1,
1325
+ "IMAGE"
1326
+ ],
1327
+ [
1328
+ 34,
1329
+ 15,
1330
+ 1,
1331
+ 18,
1332
+ 2,
1333
+ "MASK"
1334
+ ],
1335
+ [
1336
+ 35,
1337
+ 18,
1338
+ 0,
1339
+ 19,
1340
+ 0,
1341
+ "IMAGE"
1342
+ ],
1343
+ [
1344
+ 36,
1345
+ 2,
1346
+ 0,
1347
+ 19,
1348
+ 1,
1349
+ "INT"
1350
+ ],
1351
+ [
1352
+ 37,
1353
+ 3,
1354
+ 0,
1355
+ 19,
1356
+ 2,
1357
+ "INT"
1358
+ ],
1359
+ [
1360
+ 38,
1361
+ 19,
1362
+ 0,
1363
+ 20,
1364
+ 0,
1365
+ "IMAGE"
1366
+ ],
1367
+ [
1368
+ 39,
1369
+ 15,
1370
+ 0,
1371
+ 20,
1372
+ 1,
1373
+ "IMAGE"
1374
+ ],
1375
+ [
1376
+ 40,
1377
+ 16,
1378
+ 0,
1379
+ 20,
1380
+ 2,
1381
+ "MASK"
1382
+ ],
1383
+ [
1384
+ 41,
1385
+ 20,
1386
+ 0,
1387
+ 21,
1388
+ 0,
1389
+ "IMAGE"
1390
+ ]
1391
+ ],
1392
+ "groups": [],
1393
+ "config": {},
1394
+ "extra": {},
1395
+ "version": 0.4
1396
+ }