diff --git a/workflow/crop_by_mask_&_restore_crop_box_example.json b/workflow/crop_by_mask_&_restore_crop_box_example.json index 84cb0f6..2d81ffe 100644 --- a/workflow/crop_by_mask_&_restore_crop_box_example.json +++ b/workflow/crop_by_mask_&_restore_crop_box_example.json @@ -1,6 +1,6 @@ { - "last_node_id": 37, - "last_link_id": 79, + "last_node_id": 38, + "last_link_id": 82, "nodes": [ { "id": 29, @@ -20,12 +20,12 @@ { "name": "image", "type": "IMAGE", - "link": 58 + "link": 81 }, { "name": "mask_for_crop", "type": "MASK", - "link": 59 + "link": 82 } ], "outputs": [ @@ -87,10 +87,10 @@ 1103, 852 ], - "size": [ - 333.1634277343744, - 246 - ], + "size": { + "0": 333.1634216308594, + "1": 246 + }, "flags": {}, "order": 7, "mode": 0, @@ -128,104 +128,6 @@ "color": "#432", "bgcolor": "#653" }, - { - "id": 16, - "type": "Image Remove Background Rembg (mtb)", - "pos": [ - 787, - 628 - ], - "size": { - "0": 294, - "1": 230 - }, - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 22 - } - ], - "outputs": [ - { - "name": "Image (rgba)", - "type": "IMAGE", - "links": null, - "shape": 3 - }, - { - "name": "Mask", - "type": "MASK", - "links": [ - 59 - ], - "shape": 3, - "slot_index": 1 - }, - { - "name": "Image", - "type": "IMAGE", - "links": [], - "shape": 3, - "slot_index": 2 - } - ], - "properties": { - "Node name for S&R": "Image Remove Background Rembg (mtb)" - }, - "widgets_values": [ - false, - 240, - 10, - 10, - false, - "#000000" - ] - }, - { - "id": 2, - "type": "LoadImage", - "pos": [ - 750, - 242 - ], - "size": { - "0": 315, - "1": 314 - }, - "flags": {}, - "order": 1, - "mode": 0, - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 22, - 58, - 67 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "LoadImage" - }, - "widgets_values": [ - "3840x2160car (13).jpg", - "image" - ] - }, { "id": 4, "type": "PreviewImage", @@ -492,17 +394,100 @@ false, 1024 ] + }, + { + "id": 2, + "type": "LoadImage", + "pos": [ + 729, + 257 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 67, + 80 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "3840x2160car (13).jpg", + "image" + ] + }, + { + "id": 38, + "type": "LayerMask: RemBgUltra", + "pos": [ + 751, + 648 + ], + "size": { + "0": 315, + "1": 150 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 80 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 81 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "mask", + "type": "MASK", + "links": [ + 82 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LayerMask: RemBgUltra" + }, + "widgets_values": [ + 8, + 0.01, + 0.99, + false + ] } ], "links": [ - [ - 22, - 2, - 0, - 16, - 0, - "IMAGE" - ], [ 56, 26, @@ -511,22 +496,6 @@ 0, "IMAGE" ], - [ - 58, - 2, - 0, - 29, - 0, - "IMAGE" - ], - [ - 59, - 16, - 1, - 29, - 1, - "MASK" - ], [ 61, 29, @@ -606,6 +575,30 @@ 26, 1, "IMAGE" + ], + [ + 80, + 2, + 0, + 38, + 0, + "IMAGE" + ], + [ + 81, + 38, + 0, + 29, + 0, + "IMAGE" + ], + [ + 82, + 38, + 1, + 29, + 1, + "MASK" ] ], "groups": [], diff --git a/workflow/image_mask_scale_as_example.json b/workflow/image_mask_scale_as_example.json index d691a8f..eddb054 100644 --- a/workflow/image_mask_scale_as_example.json +++ b/workflow/image_mask_scale_as_example.json @@ -1,6 +1,6 @@ { - "last_node_id": 65, - "last_link_id": 146, + "last_node_id": 66, + "last_link_id": 148, "nodes": [ { "id": 42, @@ -67,63 +67,6 @@ "Node name for S&R": "LayerMask: MaskPreview" } }, - { - "id": 16, - "type": "Image Remove Background Rembg (mtb)", - "pos": [ - 485, - 735 - ], - "size": { - "0": 294, - "1": 230 - }, - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 22 - } - ], - "outputs": [ - { - "name": "Image (rgba)", - "type": "IMAGE", - "links": null, - "shape": 3 - }, - { - "name": "Mask", - "type": "MASK", - "links": [ - 145 - ], - "shape": 3, - "slot_index": 1 - }, - { - "name": "Image", - "type": "IMAGE", - "links": [], - "shape": 3, - "slot_index": 2 - } - ], - "properties": { - "Node name for S&R": "Image Remove Background Rembg (mtb)" - }, - "widgets_values": [ - false, - 240, - 10, - 10, - false, - "#000000" - ] - }, { "id": 58, "type": "PreviewImage", @@ -177,7 +120,7 @@ { "name": "mask", "type": "MASK", - "link": 145 + "link": 148 } ], "outputs": [ @@ -234,8 +177,8 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 22, - 144 + 144, + 147 ], "shape": 3, "slot_index": 0 @@ -254,17 +197,57 @@ "512x512with_background (15).png", "image" ] + }, + { + "id": 66, + "type": "LayerMask: RemBgUltra", + "pos": [ + 521, + 777 + ], + "size": { + "0": 315, + "1": 150 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 147 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": null, + "shape": 3 + }, + { + "name": "mask", + "type": "MASK", + "links": [ + 148 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LayerMask: RemBgUltra" + }, + "widgets_values": [ + 8, + 0.01, + 0.99, + false + ] } ], "links": [ - [ - 22, - 2, - 0, - 16, - 0, - "IMAGE" - ], [ 137, 42, @@ -298,8 +281,16 @@ "IMAGE" ], [ - 145, - 16, + 147, + 2, + 0, + 66, + 0, + "IMAGE" + ], + [ + 148, + 66, 1, 64, 2,