aleph65 commited on
Commit
128b2d7
·
verified ·
1 Parent(s): d2928fe

Upload workflows/outpaint-lama.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. workflows/outpaint-lama.json +91 -48
workflows/outpaint-lama.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "id": "1969700e-a52b-4369-85f7-51a6d627b3c0",
3
  "revision": 0,
4
- "last_node_id": 22,
5
- "last_link_id": 41,
6
  "nodes": [
7
  {
8
  "id": 1,
@@ -73,7 +73,7 @@
73
  6,
74
  14,
75
  17,
76
- 36
77
  ],
78
  "slot_index": 0
79
  }
@@ -113,7 +113,7 @@
113
  9,
114
  20,
115
  23,
116
- 37
117
  ],
118
  "slot_index": 0
119
  }
@@ -768,7 +768,7 @@
768
  "type": "IMAGE",
769
  "links": [
770
  33,
771
- 39
772
  ],
773
  "slot_index": 0
774
  },
@@ -822,7 +822,7 @@
822
  "name": "MASK",
823
  "type": "MASK",
824
  "links": [
825
- 40
826
  ],
827
  "slot_index": 0
828
  }
@@ -866,13 +866,13 @@
866
  "ver": "1.4.3"
867
  },
868
  "widgets_values": [
869
- "big-lama.pt"
870
  ],
871
- "title": "LaMa model"
872
  },
873
  {
874
  "id": 18,
875
- "type": "INPAINT_InpaintWithModel",
876
  "pos": [
877
  1280,
878
  160
@@ -884,6 +884,41 @@
884
  "flags": {},
885
  "order": 18,
886
  "mode": 0,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
887
  "inputs": [
888
  {
889
  "name": "inpaint_model",
@@ -903,7 +938,7 @@
903
  {
904
  "name": "optional_upscale_model",
905
  "type": "UPSCALE_MODEL",
906
- "link": null
907
  }
908
  ],
909
  "outputs": [
@@ -911,7 +946,7 @@
911
  "name": "inpainted image",
912
  "type": "IMAGE",
913
  "links": [
914
- 35
915
  ],
916
  "slot_index": 0
917
  }
@@ -924,10 +959,10 @@
924
  "widgets_values": [
925
  0
926
  ],
927
- "title": "LaMa fill"
928
  },
929
  {
930
- "id": 19,
931
  "type": "ImageScale",
932
  "pos": [
933
  1620,
@@ -938,18 +973,18 @@
938
  100
939
  ],
940
  "flags": {},
941
- "order": 19,
942
  "mode": 0,
943
  "inputs": [
944
  {
945
  "name": "image",
946
  "type": "IMAGE",
947
- "link": 35
948
  },
949
  {
950
  "name": "width",
951
  "type": "INT",
952
- "link": 36,
953
  "widget": {
954
  "name": "width"
955
  }
@@ -957,7 +992,7 @@
957
  {
958
  "name": "height",
959
  "type": "INT",
960
- "link": 37,
961
  "widget": {
962
  "name": "height"
963
  }
@@ -968,7 +1003,7 @@
968
  "name": "IMAGE",
969
  "type": "IMAGE",
970
  "links": [
971
- 38
972
  ],
973
  "slot_index": 0
974
  }
@@ -987,7 +1022,7 @@
987
  "title": "Snap to exact target dims"
988
  },
989
  {
990
- "id": 20,
991
  "type": "ImageCompositeMasked",
992
  "pos": [
993
  1920,
@@ -998,23 +1033,23 @@
998
  100
999
  ],
1000
  "flags": {},
1001
- "order": 20,
1002
  "mode": 0,
1003
  "inputs": [
1004
  {
1005
  "name": "destination",
1006
  "type": "IMAGE",
1007
- "link": 38
1008
  },
1009
  {
1010
  "name": "source",
1011
  "type": "IMAGE",
1012
- "link": 39
1013
  },
1014
  {
1015
  "name": "mask",
1016
  "type": "MASK",
1017
- "link": 40
1018
  }
1019
  ],
1020
  "outputs": [
@@ -1022,7 +1057,7 @@
1022
  "name": "IMAGE",
1023
  "type": "IMAGE",
1024
  "links": [
1025
- 41
1026
  ],
1027
  "slot_index": 0
1028
  }
@@ -1040,7 +1075,7 @@
1040
  "title": "Paste original pixels back"
1041
  },
1042
  {
1043
- "id": 21,
1044
  "type": "SaveImage",
1045
  "pos": [
1046
  2220,
@@ -1051,13 +1086,13 @@
1051
  300
1052
  ],
1053
  "flags": {},
1054
- "order": 21,
1055
  "mode": 0,
1056
  "inputs": [
1057
  {
1058
  "name": "images",
1059
  "type": "IMAGE",
1060
- "link": 41
1061
  }
1062
  ],
1063
  "outputs": [
@@ -1078,7 +1113,7 @@
1078
  ]
1079
  },
1080
  {
1081
- "id": 22,
1082
  "type": "Note",
1083
  "pos": [
1084
  -60,
@@ -1089,13 +1124,13 @@
1089
  240
1090
  ],
1091
  "flags": {},
1092
- "order": 22,
1093
  "mode": 0,
1094
  "inputs": [],
1095
  "outputs": [],
1096
  "properties": {},
1097
  "widgets_values": [
1098
- "## 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."
1099
  ],
1100
  "color": "#432",
1101
  "bgcolor": "#653"
@@ -1354,7 +1389,7 @@
1354
  32,
1355
  17,
1356
  0,
1357
- 18,
1358
  0,
1359
  "INPAINT_MODEL"
1360
  ],
@@ -1362,7 +1397,7 @@
1362
  33,
1363
  15,
1364
  0,
1365
- 18,
1366
  1,
1367
  "IMAGE"
1368
  ],
@@ -1370,7 +1405,7 @@
1370
  34,
1371
  15,
1372
  1,
1373
- 18,
1374
  2,
1375
  "MASK"
1376
  ],
@@ -1379,55 +1414,63 @@
1379
  18,
1380
  0,
1381
  19,
 
 
 
 
 
 
 
 
1382
  0,
1383
  "IMAGE"
1384
  ],
1385
  [
1386
- 36,
1387
  2,
1388
  0,
1389
- 19,
1390
  1,
1391
  "INT"
1392
  ],
1393
  [
1394
- 37,
1395
  3,
1396
  0,
1397
- 19,
1398
  2,
1399
  "INT"
1400
  ],
1401
  [
1402
- 38,
1403
- 19,
1404
- 0,
1405
  20,
1406
  0,
 
 
1407
  "IMAGE"
1408
  ],
1409
  [
1410
- 39,
1411
  15,
1412
  0,
1413
- 20,
1414
  1,
1415
  "IMAGE"
1416
  ],
1417
  [
1418
- 40,
1419
  16,
1420
  0,
1421
- 20,
1422
  2,
1423
  "MASK"
1424
  ],
1425
  [
1426
- 41,
1427
- 20,
1428
- 0,
1429
  21,
1430
  0,
 
 
1431
  "IMAGE"
1432
  ]
1433
  ],
 
1
  {
2
+ "id": "b13d0e46-0841-4f01-b713-c84443dbc228",
3
  "revision": 0,
4
+ "last_node_id": 23,
5
+ "last_link_id": 42,
6
  "nodes": [
7
  {
8
  "id": 1,
 
73
  6,
74
  14,
75
  17,
76
+ 37
77
  ],
78
  "slot_index": 0
79
  }
 
113
  9,
114
  20,
115
  23,
116
+ 38
117
  ],
118
  "slot_index": 0
119
  }
 
768
  "type": "IMAGE",
769
  "links": [
770
  33,
771
+ 40
772
  ],
773
  "slot_index": 0
774
  },
 
822
  "name": "MASK",
823
  "type": "MASK",
824
  "links": [
825
+ 41
826
  ],
827
  "slot_index": 0
828
  }
 
866
  "ver": "1.4.3"
867
  },
868
  "widgets_values": [
869
+ "MAT_Places512_G_fp16.safetensors"
870
  ],
871
+ "title": "Inpaint model (MAT / big-lama)"
872
  },
873
  {
874
  "id": 18,
875
+ "type": "UpscaleModelLoader",
876
  "pos": [
877
  1280,
878
  160
 
884
  "flags": {},
885
  "order": 18,
886
  "mode": 0,
887
+ "inputs": [],
888
+ "outputs": [
889
+ {
890
+ "name": "UPSCALE_MODEL",
891
+ "type": "UPSCALE_MODEL",
892
+ "links": [
893
+ 35
894
+ ],
895
+ "slot_index": 0
896
+ }
897
+ ],
898
+ "properties": {
899
+ "Node name for S&R": "UpscaleModelLoader",
900
+ "cnr_id": "comfy-core",
901
+ "ver": "0.27.0"
902
+ },
903
+ "widgets_values": [
904
+ "RealESRGAN_x4plus.pth"
905
+ ],
906
+ "title": "Fill upscaler (fixes low-res fill)"
907
+ },
908
+ {
909
+ "id": 19,
910
+ "type": "INPAINT_InpaintWithModel",
911
+ "pos": [
912
+ 1280,
913
+ 280
914
+ ],
915
+ "size": [
916
+ 270,
917
+ 100
918
+ ],
919
+ "flags": {},
920
+ "order": 19,
921
+ "mode": 0,
922
  "inputs": [
923
  {
924
  "name": "inpaint_model",
 
938
  {
939
  "name": "optional_upscale_model",
940
  "type": "UPSCALE_MODEL",
941
+ "link": 35
942
  }
943
  ],
944
  "outputs": [
 
946
  "name": "inpainted image",
947
  "type": "IMAGE",
948
  "links": [
949
+ 36
950
  ],
951
  "slot_index": 0
952
  }
 
959
  "widgets_values": [
960
  0
961
  ],
962
+ "title": "LaMa/MAT fill"
963
  },
964
  {
965
+ "id": 20,
966
  "type": "ImageScale",
967
  "pos": [
968
  1620,
 
973
  100
974
  ],
975
  "flags": {},
976
+ "order": 20,
977
  "mode": 0,
978
  "inputs": [
979
  {
980
  "name": "image",
981
  "type": "IMAGE",
982
+ "link": 36
983
  },
984
  {
985
  "name": "width",
986
  "type": "INT",
987
+ "link": 37,
988
  "widget": {
989
  "name": "width"
990
  }
 
992
  {
993
  "name": "height",
994
  "type": "INT",
995
+ "link": 38,
996
  "widget": {
997
  "name": "height"
998
  }
 
1003
  "name": "IMAGE",
1004
  "type": "IMAGE",
1005
  "links": [
1006
+ 39
1007
  ],
1008
  "slot_index": 0
1009
  }
 
1022
  "title": "Snap to exact target dims"
1023
  },
1024
  {
1025
+ "id": 21,
1026
  "type": "ImageCompositeMasked",
1027
  "pos": [
1028
  1920,
 
1033
  100
1034
  ],
1035
  "flags": {},
1036
+ "order": 21,
1037
  "mode": 0,
1038
  "inputs": [
1039
  {
1040
  "name": "destination",
1041
  "type": "IMAGE",
1042
+ "link": 39
1043
  },
1044
  {
1045
  "name": "source",
1046
  "type": "IMAGE",
1047
+ "link": 40
1048
  },
1049
  {
1050
  "name": "mask",
1051
  "type": "MASK",
1052
+ "link": 41
1053
  }
1054
  ],
1055
  "outputs": [
 
1057
  "name": "IMAGE",
1058
  "type": "IMAGE",
1059
  "links": [
1060
+ 42
1061
  ],
1062
  "slot_index": 0
1063
  }
 
1075
  "title": "Paste original pixels back"
1076
  },
1077
  {
1078
+ "id": 22,
1079
  "type": "SaveImage",
1080
  "pos": [
1081
  2220,
 
1086
  300
1087
  ],
1088
  "flags": {},
1089
+ "order": 22,
1090
  "mode": 0,
1091
  "inputs": [
1092
  {
1093
  "name": "images",
1094
  "type": "IMAGE",
1095
+ "link": 42
1096
  }
1097
  ],
1098
  "outputs": [
 
1113
  ]
1114
  },
1115
  {
1116
+ "id": 23,
1117
  "type": "Note",
1118
  "pos": [
1119
  -60,
 
1124
  240
1125
  ],
1126
  "flags": {},
1127
+ "order": 23,
1128
  "mode": 0,
1129
  "inputs": [],
1130
  "outputs": [],
1131
  "properties": {},
1132
  "widgets_values": [
1133
+ "## 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, ~1-2s. 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.\n\nNOTE: the inpaint node internally computes the fill at 256px (LaMa)\nor 512px (MAT) squares - the RealESRGAN upscaler restores the fill to\n1024/2048px effective before it is scaled to the target, which removes\nthe blur/smearing on large outputs. Switch model to MAT_Places512 for\nlarge targets or structured fills; keep big-lama for speed."
1134
  ],
1135
  "color": "#432",
1136
  "bgcolor": "#653"
 
1389
  32,
1390
  17,
1391
  0,
1392
+ 19,
1393
  0,
1394
  "INPAINT_MODEL"
1395
  ],
 
1397
  33,
1398
  15,
1399
  0,
1400
+ 19,
1401
  1,
1402
  "IMAGE"
1403
  ],
 
1405
  34,
1406
  15,
1407
  1,
1408
+ 19,
1409
  2,
1410
  "MASK"
1411
  ],
 
1414
  18,
1415
  0,
1416
  19,
1417
+ 3,
1418
+ "UPSCALE_MODEL"
1419
+ ],
1420
+ [
1421
+ 36,
1422
+ 19,
1423
+ 0,
1424
+ 20,
1425
  0,
1426
  "IMAGE"
1427
  ],
1428
  [
1429
+ 37,
1430
  2,
1431
  0,
1432
+ 20,
1433
  1,
1434
  "INT"
1435
  ],
1436
  [
1437
+ 38,
1438
  3,
1439
  0,
1440
+ 20,
1441
  2,
1442
  "INT"
1443
  ],
1444
  [
1445
+ 39,
 
 
1446
  20,
1447
  0,
1448
+ 21,
1449
+ 0,
1450
  "IMAGE"
1451
  ],
1452
  [
1453
+ 40,
1454
  15,
1455
  0,
1456
+ 21,
1457
  1,
1458
  "IMAGE"
1459
  ],
1460
  [
1461
+ 41,
1462
  16,
1463
  0,
1464
+ 21,
1465
  2,
1466
  "MASK"
1467
  ],
1468
  [
1469
+ 42,
 
 
1470
  21,
1471
  0,
1472
+ 22,
1473
+ 0,
1474
  "IMAGE"
1475
  ]
1476
  ],