diff --git a/example_workflows/V2.8.0_sam2.json b/example_workflows/V2.8.0_sam2.json new file mode 100644 index 0000000..1e2b1a7 --- /dev/null +++ b/example_workflows/V2.8.0_sam2.json @@ -0,0 +1,388 @@ +{ + "id": "a021d32e-6f42-4d0c-989f-8669c651a8c3", + "revision": 0, + "last_node_id": 9, + "last_link_id": 14, + "nodes": [ + { + "id": 5, + "type": "AILab_LoadImageSimple", + "pos": [ + -2920, + -1240 + ], + "size": [ + 370, + 780 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 11 + ] + }, + { + "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_LoadImageSimple", + "ue_properties": { + "widget_ue_connectable": { + "image_path_or_URL": true, + "image": true, + "upload": true + }, + "version": "7.0.1" + } + }, + "widgets_values": [ + "", + "ComfyUI_temp_qtskx_00017_.png", + "image" + ], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 6, + "type": "AILab_Preview", + "pos": [ + -1760, + -1240 + ], + "size": [ + 750, + 780 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 12 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": 10 + } + ], + "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", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.0.1" + } + }, + "widgets_values": [], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 7, + "type": "AILab_MaskEnhancer", + "pos": [ + -2113.333251953125, + -1160 + ], + "size": [ + 320, + 178 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 13 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 10 + ] + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "Node name for S&R": "AILab_MaskEnhancer", + "ue_properties": { + "widget_ue_connectable": { + "sensitivity": true, + "mask_blur": true, + "mask_offset": true, + "smooth": true, + "fill_holes": true, + "invert_output": true + }, + "version": "7.0.1" + } + }, + "widgets_values": [ + 1, + 0, + 0, + 0, + true, + false + ], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 8, + "type": "SAM2Segment", + "pos": [ + -2516.666748046875, + -1240 + ], + "size": [ + 370, + 356 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 11 + }, + { + "name": "background_color", + "shape": 7, + "type": "COLOR", + "widget": { + "name": "background_color" + }, + "link": 14 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 12 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 13 + ] + }, + { + "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", + "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": [ + "person, backpack", + "sam2.1_hiera_tiny", + "GroundingDINO_SwinT_OGC (694MB)", + "Auto", + 0.35, + 0, + 0, + false, + "Color", + "#222222" + ], + "color": "#222e40", + "bgcolor": "#364254" + }, + { + "id": 9, + "type": "AILab_ColorInput", + "pos": [ + -2516.666748046875, + -800 + ], + "size": [ + 320, + 82 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "COLOR", + "type": "COLOR", + "links": [ + 14 + ] + } + ], + "properties": { + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65, + "Node name for S&R": "AILab_ColorInput", + "ue_properties": { + "widget_ue_connectable": { + "preset": true, + "color": true + }, + "version": "7.0.1" + } + }, + "widgets_values": [ + "teal", + "" + ], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + } + ], + "links": [ + [ + 10, + 7, + 0, + 6, + 1, + "MASK" + ], + [ + 11, + 5, + 0, + 8, + 0, + "IMAGE" + ], + [ + 12, + 8, + 0, + 6, + 0, + "IMAGE" + ], + [ + 13, + 8, + 1, + 7, + 0, + "MASK" + ], + [ + 14, + 9, + 0, + 8, + 1, + "COLOR" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ue_links": [], + "links_added_by_ue": [], + "ds": { + "scale": 0.7247295000000039, + "offset": [ + 3020, + 1340 + ] + }, + "frontendVersion": "1.24.4", + "VHS_latentpreview": false, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true + }, + "version": 0.4 +} \ No newline at end of file