{ "id": "6f527ca0-18cf-4ca9-8aa5-c924335496fc", "revision": 0, "last_node_id": 45, "last_link_id": 35, "nodes": [ { "id": 22, "type": "ailab_ImagePreview", "pos": [ 333.8974609375, 1183.48681640625 ], "size": [ 341.25, 656.1900024414062 ], "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 35 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": null } ], "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": 24, "type": "ailab_ImagePreview", "pos": [ 993.8974609375, 1183.48681640625 ], "size": [ 341.25, 656.1900024414062 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 34 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": null } ], "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": 20, "type": "ailab_ImagePreview", "pos": [ 1653.8974609375, 1183.48681640625 ], "size": [ 341.25, 656.1900024414062 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 33 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": null } ], "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": 10, "type": "ailab_ImagePreview", "pos": [ 335.96380615234375, 313.80133056640625 ], "size": [ 235.32000732421875, 440.70001220703125 ], "flags": {}, "order": 6, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 28 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 21 ] } ], "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": 36, "type": "ailab_ImagePreview", "pos": [ 2420, 300 ], "size": [ 341.25, 656.1900024414062 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 31 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": null } ], "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": 33, "type": "ailab_MaskPreview", "pos": [ 1182.557373046875, 336.49273681640625 ], "size": [ 225.98446655273438, 451.2201843261719 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "name": "mask", "type": "MASK", "link": 24 } ], "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": 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, "type": "RMBG", "pos": [ 592.6686401367188, 313.80133056640625 ], "size": [ 304, 290 ], "flags": {}, "order": 13, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 21 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 25 ] }, { "name": "MASK", "type": "MASK", "slot_index": 1, "links": [ 24 ] }, { "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", true ] }, { "id": 41, "type": "AILab_LoadImage", "pos": [ 1440, 310 ], "size": [ 290, 720 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 31 ] }, { "name": "MASK", "type": "MASK", "links": [ 30 ] }, { "name": "MASK_IMAGE", "type": "IMAGE", "links": [ 29 ] }, { "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": [ "pasted/image (24).png", "alpha", 1.5000000000000002, 0, "image", "" ] } ], "links": [ [ 21, 10, 0, 21, 0, "IMAGE" ], [ 24, 21, 1, 33, 0, "MASK" ], [ 25, 21, 0, 34, 0, "IMAGE" ], [ 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": [ { "id": 1, "title": "LoadImage (RGB Mask Output + Mask Image Output)", "bounding": [ 30, 1060, 1980, 820 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 2, "title": "LoadImage Node (Image Resize)", "bounding": [ 30, 230, 1396.232177734375, 809.41162109375 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 3, "title": "Load Image(ImageReszie by Scale + Alpha Channel Mask)", "bounding": [ 1430, 230, 1340, 810 ], "color": "#3f789e", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.5644739300537773, "offset": [ 2262.480006476902, 71.46138897080354 ] }, "ue_links": [], "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, "VHS_KeepIntermediate": true }, "version": 0.4 }