diff --git a/example_workflows/V2.9.0_Matte_matting.json b/example_workflows/V2.9.0_Matte_matting.json new file mode 100644 index 0000000..4601b38 --- /dev/null +++ b/example_workflows/V2.9.0_Matte_matting.json @@ -0,0 +1,694 @@ +{ + "id": "74342077-0447-4ff9-807a-91e88dac173a", + "revision": 0, + "last_node_id": 40, + "last_link_id": 94, + "nodes": [ + { + "id": 15, + "type": "AILab_Preview", + "pos": [ + 1306, + 55.727264404296875 + ], + "size": [ + 720, + 1000 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 86 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": 87 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 91 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 94 + ] + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "Node name for S&R": "AILab_Preview", + "cnr_id": "comfyui-rmbg", + "ver": "c36a6a819fef2208316693c29c055b5c558c89e8", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.0.1" + } + }, + "widgets_values": [], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 17, + "type": "SAM2Segment", + "pos": [ + 582, + 170 + ], + "size": [ + 340, + 356 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 36 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 88 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 89, + 90 + ] + }, + { + "name": "MASK_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": "SAM2Segment", + "cnr_id": "comfyui-rmbg", + "ver": "c36a6a819fef2208316693c29c055b5c558c89e8", + "ue_properties": { + "widget_ue_connectable": { + "prompt": true, + "sam2_model": true, + "dino_model": true, + "device": true, + "threshold": true, + "mask_blur": true, + "mask_offset": true, + "invert_output": true, + "background": true, + "background_color": true + }, + "version": "7.0.1" + } + }, + "widgets_values": [ + "ice", + "sam2.1_hiera_tiny", + "GroundingDINO_SwinT_OGC (694MB)", + "Auto", + 0.35, + 0, + 0, + false, + "Alpha", + "#222222" + ], + "color": "#222e40", + "bgcolor": "#364254" + }, + { + "id": 21, + "type": "AILab_LoadImage", + "pos": [ + -50, + 55.727264404296875 + ], + "size": [ + 600, + 650 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 36, + 85 + ] + }, + { + "name": "MASK", + "type": "MASK", + "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, + "Node name for S&R": "AILab_LoadImage", + "cnr_id": "comfyui-rmbg", + "ver": "c36a6a819fef2208316693c29c055b5c558c89e8", + "ue_properties": { + "widget_ue_connectable": { + "image_path_or_URL": true, + "image": true, + "upscale_method": true, + "scale_by": true, + "resize_mode": true, + "size": true, + "upload": true + }, + "version": "7.0.1" + } + }, + "widgets_values": [ + "", + "142772_shutterstock_92541790.jpg", + "lanczos", + 1, + "longest_side", + 1024, + "image" + ], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 36, + "type": "AILab_SDMatte", + "pos": [ + 954, + 55.727264404296875 + ], + "size": [ + 320, + 350 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 85 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": 90 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 86 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 87 + ] + }, + { + "name": "MASK_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_SDMatte", + "ue_properties": { + "widget_ue_connectable": { + "model": true, + "device": true, + "process_res": true, + "transparent_object": true, + "mask_refine": true, + "sensitivity": true, + "mask_blur": true, + "mask_offset": true, + "invert_output": true, + "background": true, + "background_color": true + }, + "version": "7.0.1" + } + }, + "widgets_values": [ + "SDMatte", + "Auto", + 1024, + true, + true, + 0.9, + 0, + 0, + false, + "Color", + "#222222" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 37, + "type": "AILab_Preview", + "pos": [ + 580, + 580 + ], + "size": [ + 700, + 970 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 88 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": 89 + } + ], + "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, + "Node name for S&R": "AILab_Preview", + "cnr_id": "comfyui-rmbg", + "ver": "c36a6a819fef2208316693c29c055b5c558c89e8", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.0.1" + } + }, + "widgets_values": [], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 38, + "type": "AILab_ImageCombiner", + "pos": [ + 2058, + 55.727264404296875 + ], + "size": [ + 320, + 194 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "foreground", + "type": "IMAGE", + "link": 91 + }, + { + "name": "background", + "type": "IMAGE", + "link": 92 + }, + { + "name": "foreground_mask", + "shape": 7, + "type": "MASK", + "link": 94 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 93 + ] + }, + { + "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, + "Node name for S&R": "AILab_ImageCombiner", + "ue_properties": { + "widget_ue_connectable": { + "mode": true, + "foreground_opacity": true, + "foreground_scale": true, + "position_x": true, + "position_y": true + }, + "version": "7.0.1" + } + }, + "widgets_values": [ + "normal", + 1, + 1, + 50, + 60 + ], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 39, + "type": "AILab_LoadImage", + "pos": [ + 2058, + 320 + ], + "size": [ + 320, + 474.00006103515625 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 92 + ] + }, + { + "name": "MASK", + "type": "MASK", + "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, + "Node name for S&R": "AILab_LoadImage", + "cnr_id": "comfyui-rmbg", + "ver": "c36a6a819fef2208316693c29c055b5c558c89e8", + "ue_properties": { + "widget_ue_connectable": { + "image_path_or_URL": true, + "image": true, + "upscale_method": true, + "scale_by": true, + "resize_mode": true, + "size": true, + "upload": true + }, + "version": "7.0.1" + } + }, + "widgets_values": [ + "", + "lb2.jpg", + "lanczos", + 1, + "longest_side", + 1024, + "image" + ], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 40, + "type": "AILab_ImagePreview", + "pos": [ + 2410, + 55.727264404296875 + ], + "size": [ + 900, + 550 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 93 + } + ], + "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", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.0.1" + } + }, + "widgets_values": [], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + } + ], + "links": [ + [ + 36, + 21, + 0, + 17, + 0, + "IMAGE" + ], + [ + 85, + 21, + 0, + 36, + 0, + "IMAGE" + ], + [ + 86, + 36, + 0, + 15, + 0, + "IMAGE" + ], + [ + 87, + 36, + 1, + 15, + 1, + "MASK" + ], + [ + 88, + 17, + 0, + 37, + 0, + "IMAGE" + ], + [ + 89, + 17, + 1, + 37, + 1, + "MASK" + ], + [ + 90, + 17, + 1, + 36, + 1, + "MASK" + ], + [ + 91, + 15, + 0, + 38, + 0, + "IMAGE" + ], + [ + 92, + 39, + 0, + 38, + 1, + "IMAGE" + ], + [ + 93, + 38, + 0, + 40, + 0, + "IMAGE" + ], + [ + 94, + 15, + 1, + 38, + 2, + "MASK" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.6830134553650705, + "offset": [ + 150, + 44.272735595703125 + ] + }, + "ue_links": [], + "links_added_by_ue": [], + "frontendVersion": "1.25.8", + "VHS_latentpreview": false, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true + }, + "version": 0.4 +} \ No newline at end of file