From e96e69d218b3ab1ef4a04314ad6518f9360819c8 Mon Sep 17 00:00:00 2001 From: AI Lab <129358391+1038lab@users.noreply.github.com> Date: Mon, 7 Apr 2025 01:53:36 -0700 Subject: [PATCH] Add files via upload --- example_workflows/LoadImage_Node.json | 1045 ++++++++++++--------- example_workflows/image_mask_preview.json | 506 +++++----- 2 files changed, 853 insertions(+), 698 deletions(-) diff --git a/example_workflows/LoadImage_Node.json b/example_workflows/LoadImage_Node.json index ce0d1dd..d2564bf 100644 --- a/example_workflows/LoadImage_Node.json +++ b/example_workflows/LoadImage_Node.json @@ -1,6 +1,8 @@ { - "last_node_id": 39, - "last_link_id": 27, + "id": "6f527ca0-18cf-4ca9-8aa5-c924335496fc", + "revision": 0, + "last_node_id": 45, + "last_link_id": 35, "nodes": [ { "id": 22, @@ -14,13 +16,13 @@ 656.1900024414062 ], "flags": {}, - "order": 9, + "order": 7, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", - "link": 17 + "link": 35 } ], "outputs": [ @@ -31,9 +33,18 @@ } ], "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, "Node name for S&R": "ailab_ImagePreview" }, - "widgets_values": [] + "widgets_values": [ + "" + ] }, { "id": 24, @@ -47,13 +58,13 @@ 656.1900024414062 ], "flags": {}, - "order": 6, + "order": 8, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", - "link": 18 + "link": 34 } ], "outputs": [ @@ -64,128 +75,17 @@ } ], "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, "Node name for S&R": "ailab_ImagePreview" }, - "widgets_values": [] - }, - { - "id": 23, - "type": "AiLab_LoadImage", - "pos": [ - 693.8974609375, - 1133.48681640625 - ], - "size": [ - 277.489990234375, - 712.2000122070312 - ], - "flags": {}, - "order": 0, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [], - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": [], - "slot_index": 1 - }, - { - "name": "MASK_IMAGE", - "type": "IMAGE", - "links": [ - 18 - ], - "slot_index": 2 - }, - { - "name": "WIDTH", - "type": "INT", - "links": null - }, - { - "name": "HEIGHT", - "type": "INT", - "links": null - } - ], - "properties": { - "cnr_id": "comfyui-rmbg", - "ver": "d85dd7527028200e200e502342ab448c89cf81be", - "Node name for S&R": "AiLab_LoadImage" - }, "widgets_values": [ - "4232e0395939ffa9326d71d33308607d.jpg", - "green", - 1, - 800, - "image" - ] - }, - { - "id": 18, - "type": "AiLab_LoadImage", - "pos": [ - 1353.8974609375, - 1133.48681640625 - ], - "size": [ - 277.489990234375, - 712.2000122070312 - ], - "flags": {}, - "order": 1, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [], - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": [], - "slot_index": 1 - }, - { - "name": "MASK_IMAGE", - "type": "IMAGE", - "links": [ - 15 - ], - "slot_index": 2 - }, - { - "name": "WIDTH", - "type": "INT", - "links": null - }, - { - "name": "HEIGHT", - "type": "INT", - "links": null - } - ], - "properties": { - "cnr_id": "comfyui-rmbg", - "ver": "d85dd7527028200e200e502342ab448c89cf81be", - "Node name for S&R": "AiLab_LoadImage" - }, - "widgets_values": [ - "4232e0395939ffa9326d71d33308607d.jpg", - "blue", - 1, - 800, - "image" + "" ] }, { @@ -200,13 +100,13 @@ 656.1900024414062 ], "flags": {}, - "order": 7, + "order": 9, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", - "link": 15 + "link": 33 } ], "outputs": [ @@ -217,9 +117,18 @@ } ], "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, "Node name for S&R": "ailab_ImagePreview" }, - "widgets_values": [] + "widgets_values": [ + "" + ] }, { "id": 10, @@ -233,70 +142,45 @@ 440.70001220703125 ], "flags": {}, - "order": 8, + "order": 6, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", - "link": 9 + "link": 28 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", + "slot_index": 0, "links": [ 21 - ], - "slot_index": 0 + ] } ], "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, "Node name for S&R": "ailab_ImagePreview" }, - "widgets_values": [] - }, - { - "id": 34, - "type": "ailab_ImagePreview", - "pos": [ - 921.7638549804688, - 313.80133056640625 - ], - "size": [ - 242.40625, - 474.35968017578125 - ], - "flags": {}, - "order": 14, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 25 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ailab_ImagePreview" - }, - "widgets_values": [] + "widgets_values": [ + "" + ] }, { "id": 36, "type": "ailab_ImagePreview", "pos": [ - 2419.923583984375, - 315.84368896484375 + 2420, + 300 ], "size": [ 341.25, @@ -309,7 +193,7 @@ { "name": "image", "type": "IMAGE", - "link": 26 + "link": 31 } ], "outputs": [ @@ -320,128 +204,17 @@ } ], "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, "Node name for S&R": "ailab_ImagePreview" }, - "widgets_values": [] - }, - { - "id": 6, - "type": "AiLab_LoadImage", - "pos": [ - 40.0096435546875, - 313.80133056640625 - ], - "size": [ - 277.489990234375, - 712.2000122070312 - ], - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 9 - ], - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": [], - "slot_index": 1 - }, - { - "name": "MASK_IMAGE", - "type": "IMAGE", - "links": [], - "slot_index": 2 - }, - { - "name": "WIDTH", - "type": "INT", - "links": null - }, - { - "name": "HEIGHT", - "type": "INT", - "links": null - } - ], - "properties": { - "cnr_id": "comfyui-rmbg", - "ver": "d85dd7527028200e200e502342ab448c89cf81be", - "Node name for S&R": "AiLab_LoadImage" - }, "widgets_values": [ - "4232e0395939ffa9326d71d33308607d.jpg", - "alpha", - 1, - 400, - "image" - ] - }, - { - "id": 15, - "type": "AiLab_LoadImage", - "pos": [ - 43.897430419921875, - 1133.48681640625 - ], - "size": [ - 277.489990234375, - 712.2000122070312 - ], - "flags": {}, - "order": 3, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [], - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": [], - "slot_index": 1 - }, - { - "name": "MASK_IMAGE", - "type": "IMAGE", - "links": [ - 17 - ], - "slot_index": 2 - }, - { - "name": "WIDTH", - "type": "INT", - "links": null - }, - { - "name": "HEIGHT", - "type": "INT", - "links": null - } - ], - "properties": { - "cnr_id": "comfyui-rmbg", - "ver": "d85dd7527028200e200e502342ab448c89cf81be", - "Node name for S&R": "AiLab_LoadImage" - }, - "widgets_values": [ - "4232e0395939ffa9326d71d33308607d.jpg", - "red", - 1, - 800, - "image" + "" ] }, { @@ -473,9 +246,424 @@ } ], "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, "Node name for S&R": "ailab_MaskPreview" }, - "widgets_values": [] + "widgets_values": [ + "" + ] + }, + { + "id": 39, + "type": "MarkdownNote", + "pos": [ + 2024.1990966796875, + 1094.8106689453125 + ], + "size": [ + 431.7767028808594, + 315.57635498046875 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": {}, + "widgets_values": [ + "# AILab Image and Mask Tools Node\n\n## LoadImage\n### Functionality\n- Loads images and extracts the specified channel as a mask.\n- Supports loading various image formats.\n\n### Features\n- Supports image scaling and adjusting the longest side.\n- Provides multiple channel options (alpha, red, green, blue) for mask extraction.\n- Automatically handles EXIF information to ensure correct orientation of images.\n\n---\nhttps://github.com/1038lab/ComfyUI-RMBG" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 40, + "type": "AILab_LoadImage", + "pos": [ + 40, + 310 + ], + "size": [ + 280, + 720 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 28 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + }, + { + "name": "MASK_IMAGE", + "type": "IMAGE", + "links": null + }, + { + "name": "WIDTH", + "type": "INT", + "links": null + }, + { + "name": "HEIGHT", + "type": "INT", + "links": null + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "cnr_id": "comfyui-rmbg", + "ver": "4faa7c7c12147db95345ee78b30f38273443ff99", + "Node name for S&R": "AILab_LoadImage" + }, + "widgets_values": [ + "00046-3837505280.jpg", + "alpha", + 1, + 0, + "image", + "" + ] + }, + { + "id": 31, + "type": "PreviewImage", + "pos": [ + 2080, + 310 + ], + "size": [ + 332.80377197265625, + 642.8572998046875 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 29 + } + ], + "outputs": [], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "cnr_id": "comfy-core", + "ver": "0.3.26", + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [ + "" + ] + }, + { + "id": 42, + "type": "AILab_LoadImage", + "pos": [ + 40, + 1140 + ], + "size": [ + 280, + 720 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + }, + { + "name": "MASK_IMAGE", + "type": "IMAGE", + "links": [ + 35 + ] + }, + { + "name": "WIDTH", + "type": "INT", + "links": null + }, + { + "name": "HEIGHT", + "type": "INT", + "links": null + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "cnr_id": "comfyui-rmbg", + "ver": "4faa7c7c12147db95345ee78b30f38273443ff99", + "Node name for S&R": "AILab_LoadImage" + }, + "widgets_values": [ + "00046-3837505280.jpg", + "red", + 1, + 0, + "image", + "" + ] + }, + { + "id": 43, + "type": "AILab_LoadImage", + "pos": [ + 700, + 1140 + ], + "size": [ + 280, + 720 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + }, + { + "name": "MASK_IMAGE", + "type": "IMAGE", + "links": [ + 34 + ] + }, + { + "name": "WIDTH", + "type": "INT", + "links": null + }, + { + "name": "HEIGHT", + "type": "INT", + "links": null + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "cnr_id": "comfyui-rmbg", + "ver": "4faa7c7c12147db95345ee78b30f38273443ff99", + "Node name for S&R": "AILab_LoadImage" + }, + "widgets_values": [ + "00046-3837505280.jpg", + "green", + 1, + 0, + "image", + "" + ] + }, + { + "id": 44, + "type": "AILab_LoadImage", + "pos": [ + 1360, + 1140 + ], + "size": [ + 280, + 720 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + }, + { + "name": "MASK_IMAGE", + "type": "IMAGE", + "links": [ + 33 + ] + }, + { + "name": "WIDTH", + "type": "INT", + "links": null + }, + { + "name": "HEIGHT", + "type": "INT", + "links": null + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "cnr_id": "comfyui-rmbg", + "ver": "4faa7c7c12147db95345ee78b30f38273443ff99", + "Node name for S&R": "AILab_LoadImage" + }, + "widgets_values": [ + "00046-3837505280.jpg", + "blue", + 1, + 0, + "image", + "" + ] + }, + { + "id": 34, + "type": "ailab_ImagePreview", + "pos": [ + 921.7638549804688, + 313.80133056640625 + ], + "size": [ + 242.40625, + 474.35968017578125 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 25 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "slot_index": 0, + "links": [] + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "Node name for S&R": "ailab_ImagePreview" + }, + "widgets_values": [ + "" + ] + }, + { + "id": 32, + "type": "ailab_MaskPreview", + "pos": [ + 1740, + 330 + ], + "size": [ + 336.4051818847656, + 647.3681640625 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 30 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "Node name for S&R": "ailab_MaskPreview" + }, + "widgets_values": [ + "" + ] }, { "id": 21, @@ -502,18 +690,18 @@ { "name": "IMAGE", "type": "IMAGE", + "slot_index": 0, "links": [ 25 - ], - "slot_index": 0 + ] }, { "name": "MASK", "type": "MASK", + "slot_index": 1, "links": [ 24 - ], - "slot_index": 1 + ] }, { "name": "MASK_IMAGE", @@ -522,6 +710,13 @@ } ], "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, "cnr_id": "comfyui-rmbg", "ver": "d85dd7527028200e200e502342ab448c89cf81be", "Node name for S&R": "RMBG" @@ -535,22 +730,22 @@ "Alpha", false, "default", - false + true ] }, { - "id": 29, - "type": "AiLab_LoadImage", + "id": 41, + "type": "AILab_LoadImage", "pos": [ - 1441.9066162109375, - 311.94622802734375 + 1440, + 310 ], "size": [ - 277.489990234375, - 712.2000122070312 + 290, + 720 ], "flags": {}, - "order": 4, + "order": 5, "mode": 0, "inputs": [], "outputs": [ @@ -558,25 +753,22 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 26 - ], - "slot_index": 0 + 31 + ] }, { "name": "MASK", "type": "MASK", "links": [ - 22 - ], - "slot_index": 1 + 30 + ] }, { "name": "MASK_IMAGE", "type": "IMAGE", "links": [ - 23 - ], - "slot_index": 2 + 29 + ] }, { "name": "WIDTH", @@ -590,137 +782,28 @@ } ], "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, "cnr_id": "comfyui-rmbg", - "ver": "d85dd7527028200e200e502342ab448c89cf81be", - "Node name for S&R": "AiLab_LoadImage" + "ver": "4faa7c7c12147db95345ee78b30f38273443ff99", + "Node name for S&R": "AILab_LoadImage" }, "widgets_values": [ - "image_preview_0030.png", + "pasted/image (24).png", "alpha", - 1.5, + 1.5000000000000002, 0, - "image" + "image", + "" ] - }, - { - "id": 32, - "type": "ailab_MaskPreview", - "pos": [ - 1735.2513427734375, - 327.2447204589844 - ], - "size": [ - 336.4051818847656, - 647.3681640625 - ], - "flags": {}, - "order": 11, - "mode": 0, - "inputs": [ - { - "name": "mask", - "type": "MASK", - "link": 22 - } - ], - "outputs": [ - { - "name": "MASK", - "type": "MASK", - "links": null - } - ], - "properties": { - "Node name for S&R": "ailab_MaskPreview" - }, - "widgets_values": [] - }, - { - "id": 31, - "type": "PreviewImage", - "pos": [ - 2077.5830078125, - 330.533935546875 - ], - "size": [ - 332.80377197265625, - 642.8572998046875 - ], - "flags": {}, - "order": 12, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 23 - } - ], - "outputs": [], - "properties": { - "cnr_id": "comfy-core", - "ver": "0.3.26", - "Node name for S&R": "PreviewImage" - }, - "widgets_values": [] - }, - { - "id": 39, - "type": "MarkdownNote", - "pos": [ - 2024.1990966796875, - 1094.8106689453125 - ], - "size": [ - 431.7767028808594, - 315.57635498046875 - ], - "flags": {}, - "order": 5, - "mode": 0, - "inputs": [], - "outputs": [], - "properties": {}, - "widgets_values": [ - "# AILab Image and Mask Tools Node\n\n## LoadImage\n### Functionality\n- Loads images and extracts the specified channel as a mask.\n- Supports loading various image formats.\n\n### Features\n- Supports image scaling and adjusting the longest side.\n- Provides multiple channel options (alpha, red, green, blue) for mask extraction.\n- Automatically handles EXIF information to ensure correct orientation of images.\n\n---\nhttps://github.com/1038lab/ComfyUI-RMBG" - ], - "color": "#432", - "bgcolor": "#653" } ], "links": [ - [ - 9, - 6, - 0, - 10, - 0, - "IMAGE" - ], - [ - 15, - 18, - 2, - 20, - 0, - "IMAGE" - ], - [ - 17, - 15, - 2, - 22, - 0, - "IMAGE" - ], - [ - 18, - 23, - 2, - 24, - 0, - "IMAGE" - ], [ 21, 10, @@ -729,22 +812,6 @@ 0, "IMAGE" ], - [ - 22, - 29, - 1, - 32, - 0, - "MASK" - ], - [ - 23, - 29, - 2, - 31, - 0, - "IMAGE" - ], [ 24, 21, @@ -762,12 +829,60 @@ "IMAGE" ], [ - 26, + 28, + 40, + 0, + 10, + 0, + "IMAGE" + ], + [ 29, + 41, + 2, + 31, + 0, + "IMAGE" + ], + [ + 30, + 41, + 1, + 32, + 0, + "MASK" + ], + [ + 31, + 41, 0, 36, 0, "IMAGE" + ], + [ + 33, + 44, + 2, + 20, + 0, + "IMAGE" + ], + [ + 34, + 43, + 2, + 24, + 0, + "IMAGE" + ], + [ + 35, + 42, + 2, + 22, + 0, + "IMAGE" ] ], "groups": [ @@ -775,10 +890,10 @@ "id": 1, "title": "LoadImage (RGB Mask Output + Mask Image Output)", "bounding": [ - 33.89743423461914, - 1059.8868408203125, - 1971.25, - 795.7999267578125 + 30, + 1060, + 1980, + 820 ], "color": "#3f789e", "font_size": 24, @@ -788,8 +903,8 @@ "id": 2, "title": "LoadImage Node (Image Resize)", "bounding": [ - 27.809642791748047, - 233.601318359375, + 30, + 230, 1396.232177734375, 809.41162109375 ], @@ -801,10 +916,10 @@ "id": 3, "title": "Load Image(ImageReszie by Scale + Alpha Channel Mask)", "bounding": [ - 1431.9066162109375, - 238.3462371826172, - 1339.269775390625, - 801.6460571289062 + 1430, + 230, + 1340, + 810 ], "color": "#3f789e", "font_size": 24, @@ -814,10 +929,10 @@ "config": {}, "extra": { "ds": { - "scale": 0.6209213230591554, + "scale": 0.5644739300537773, "offset": [ - 653.311977192503, - 53.29461542271815 + 2262.480006476902, + 71.46138897080354 ] }, "ue_links": [], @@ -827,4 +942,4 @@ "VHS_KeepIntermediate": true }, "version": 0.4 -} +} \ No newline at end of file diff --git a/example_workflows/image_mask_preview.json b/example_workflows/image_mask_preview.json index 34a532b..83e7ade 100644 --- a/example_workflows/image_mask_preview.json +++ b/example_workflows/image_mask_preview.json @@ -1,203 +1,19 @@ { - "last_node_id": 10, - "last_link_id": 8, + "id": "cd67a262-8745-409f-95f3-e0de35db28c6", + "revision": 0, + "last_node_id": 14, + "last_link_id": 13, "nodes": [ { - "id": 3, - "type": "AiLab_Preview", + "id": 11, + "type": "AILab_LoadImage", "pos": [ - 1068.05078125, - -179.740478515625 + -500, + -630 ], "size": [ - 666.8098754882812, - 532.9207763671875 - ], - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "shape": 7, - "link": 3 - }, - { - "name": "mask", - "type": "MASK", - "shape": 7, - "link": 4 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": null - }, - { - "name": "MASK", - "type": "MASK", - "links": null - } - ], - "properties": { - "cnr_id": "comfyui-rmbg", - "ver": "d85dd7527028200e200e502342ab448c89cf81be", - "Node name for S&R": "AiLab_Preview" - }, - "widgets_values": [], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 2, - "type": "AiLab_MaskPreview", - "pos": [ - 547.4395141601562, - -172.17669677734375 - ], - "size": [ - 335.42462158203125, - 516.5322875976562 - ], - "flags": {}, - "order": 3, - "mode": 0, - "inputs": [ - { - "name": "mask", - "type": "MASK", - "link": 2 - } - ], - "outputs": [ - { - "name": "MASK", - "type": "MASK", - "links": null - } - ], - "properties": { - "cnr_id": "comfyui-rmbg", - "ver": "d85dd7527028200e200e502342ab448c89cf81be", - "Node name for S&R": "AiLab_MaskPreview" - }, - "widgets_values": [], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 1, - "type": "AiLab_ImagePreview", - "pos": [ - 899.152099609375, - -728.5360107421875 - ], - "size": [ - 309.9009094238281, - 483.359619140625 - ], - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 1 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": null - } - ], - "properties": { - "cnr_id": "comfyui-rmbg", - "ver": "d85dd7527028200e200e502342ab448c89cf81be", - "Node name for S&R": "AiLab_ImagePreview" - }, - "widgets_values": [], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 5, - "type": "RMBG", - "pos": [ - 185.55421447753906, - -486.91412353515625 - ], - "size": [ - 315, - 290 - ], - "flags": {}, - "order": 1, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 8 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 1, - 3 - ], - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": [ - 2, - 4 - ], - "slot_index": 1 - }, - { - "name": "MASK_IMAGE", - "type": "IMAGE", - "links": null - } - ], - "properties": { - "cnr_id": "comfyui-rmbg", - "ver": "d85dd7527028200e200e502342ab448c89cf81be", - "Node name for S&R": "RMBG" - }, - "widgets_values": [ - "RMBG-2.0", - 1, - 1024, - 0, - 0, - "Alpha", - false, - "default", - false - ] - }, - { - "id": 10, - "type": "AiLab_LoadImage", - "pos": [ - -415.5882568359375, - -691.2813110351562 - ], - "size": [ - 517.4749755859375, - 1015.3758544921875 + 640, + 1020 ], "flags": {}, "order": 0, @@ -208,9 +24,8 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 8 - ], - "slot_index": 0 + 9 + ] }, { "name": "MASK", @@ -234,69 +49,294 @@ } ], "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, "cnr_id": "comfyui-rmbg", - "ver": "d85dd7527028200e200e502342ab448c89cf81be", - "Node name for S&R": "AiLab_LoadImage" + "ver": "4faa7c7c12147db95345ee78b30f38273443ff99", + "Node name for S&R": "AILab_LoadImage" }, "widgets_values": [ - "ComfyUI_03216_.png", + "(G)I-DLE.webp", "alpha", 1, 0, - "image" + "image", + "" + ] + }, + { + "id": 5, + "type": "RMBG", + "pos": [ + 160, + -630 + ], + "size": [ + 315, + 290 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 9 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "slot_index": 0, + "links": [ + 1, + 3, + 10, + 12 + ] + }, + { + "name": "MASK", + "type": "MASK", + "slot_index": 1, + "links": [ + 4, + 11, + 13 + ] + }, + { + "name": "MASK_IMAGE", + "type": "IMAGE", + "links": null + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "cnr_id": "comfyui-rmbg", + "ver": "d85dd7527028200e200e502342ab448c89cf81be", + "Node name for S&R": "RMBG" + }, + "widgets_values": [ + "RMBG-2.0", + 1, + 1024, + 0, + 0, + "Alpha", + false, + "default", + false + ] + }, + { + "id": 13, + "type": "AILab_ImagePreview", + "pos": [ + 900, + -740 + ], + "size": [ + 600, + 390 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 12 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": null + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "cnr_id": "comfyui-rmbg", + "ver": "4faa7c7c12147db95345ee78b30f38273443ff99", + "Node name for S&R": "AILab_ImagePreview" + }, + "widgets_values": [ + "" + ] + }, + { + "id": 12, + "type": "AILab_Preview", + "pos": [ + 1050, + -200 + ], + "size": [ + 740, + 400 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 10 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": 11 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": null + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "cnr_id": "comfyui-rmbg", + "ver": "4faa7c7c12147db95345ee78b30f38273443ff99", + "Node name for S&R": "AILab_Preview" + }, + "widgets_values": [ + "" + ] + }, + { + "id": 14, + "type": "AILab_MaskPreview", + "pos": [ + 390, + -180 + ], + "size": [ + 500, + 380 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 13 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "cnr_id": "comfyui-rmbg", + "ver": "4faa7c7c12147db95345ee78b30f38273443ff99", + "Node name for S&R": "AILab_MaskPreview" + }, + "widgets_values": [ + "" ] } ], "links": [ [ - 1, - 5, + 9, + 11, 0, - 1, + 5, 0, "IMAGE" ], [ - 2, - 5, - 1, - 2, - 0, - "MASK" - ], - [ - 3, - 5, - 0, - 3, - 0, - "IMAGE" - ], - [ - 4, - 5, - 1, - 3, - 1, - "MASK" - ], - [ - 8, 10, - 0, 5, 0, + 12, + 0, "IMAGE" + ], + [ + 11, + 5, + 1, + 12, + 1, + "MASK" + ], + [ + 12, + 5, + 0, + 13, + 0, + "IMAGE" + ], + [ + 13, + 5, + 1, + 14, + 0, + "MASK" ] ], "groups": [], "config": {}, "extra": { "ds": { - "scale": 0.7358934708584591, + "scale": 0.9090909090909091, "offset": [ - 295.42900570307074, - 771.4978382707495 + 1228.8999659836627, + 884.7086008875567 ] }, "ue_links": [],