diff --git a/example_workflows/YOLO_Node.jpg b/example_workflows/YOLO_Node.jpg new file mode 100644 index 0000000..9251cc5 Binary files /dev/null and b/example_workflows/YOLO_Node.jpg differ diff --git a/example_workflows/YOLO_Node.json b/example_workflows/YOLO_Node.json new file mode 100644 index 0000000..cb337e6 --- /dev/null +++ b/example_workflows/YOLO_Node.json @@ -0,0 +1,443 @@ +{ + "id": "24f0d3f4-7207-455e-ae7f-3bd3ce2771bd", + "revision": 0, + "last_node_id": 25, + "last_link_id": 32, + "nodes": [ + { + "id": 21, + "type": "AILab_Preview", + "pos": [ + 771.307386825688, + -660.2734157913325 + ], + "size": [ + 952.968412178257, + 371.1372162152344 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 27 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": 28 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": null + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_Preview" + }, + "widgets_values": [], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 13, + "type": "AILab_MaskPreview", + "pos": [ + 771.3073868256879, + -232.29431299283743 + ], + "size": [ + 952.968412178257, + 258 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 26 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_MaskPreview" + }, + "widgets_values": [], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 22, + "type": "AILab_Preview", + "pos": [ + 771.307386825688, + 77.6079037610424 + ], + "size": [ + 952.968412178257, + 382.4647323538029 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 31 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": 32 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": null + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_Preview" + }, + "widgets_values": [], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 23, + "type": "AILab_MaskPreview", + "pos": [ + 771.307386825688, + 511.9748528687251 + ], + "size": [ + 952.968412178257, + 297.0168186534602 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 30 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_MaskPreview" + }, + "widgets_values": [], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 25, + "type": "AILab_YoloV8Adv", + "pos": [ + 402.6933800921686, + 71.91210239127162 + ], + "size": [ + 340, + 314 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 29 + } + ], + "outputs": [ + { + "name": "ANNOTATED_IMAGE", + "type": "IMAGE", + "links": [ + 31 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 32 + ] + }, + { + "name": "MASK_LIST", + "type": "MASK", + "links": [ + 30 + ] + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_YoloV8Adv" + }, + "widgets_values": [ + "bbox\\face_yolov8m.pt", + "all", + "none", + 0.25, + 0.45, + "", + "auto", + 300, + true, + false + ], + "color": "#222e40", + "bgcolor": "#364254" + }, + { + "id": 24, + "type": "AILab_YoloV8", + "pos": [ + 402.6933800921686, + -660.2734157913325 + ], + "size": [ + 340, + 146 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 25 + } + ], + "outputs": [ + { + "name": "ANNOTATED_IMAGE", + "type": "IMAGE", + "links": [ + 27 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 28 + ] + }, + { + "name": "MASK_LIST", + "type": "MASK", + "links": [ + 26 + ] + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_YoloV8" + }, + "widgets_values": [ + "bbox\\face_yolov8m.pt", + "3", + "1" + ], + "color": "#222e40", + "bgcolor": "#364254" + }, + { + "id": 20, + "type": "AILab_LoadImage", + "pos": [ + -213.87327493951494, + -232.29431299283743 + ], + "size": [ + 586.4611082986776, + 680.5980175220382 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 25, + 29 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + }, + { + "name": "WIDTH", + "type": "INT", + "links": null + }, + { + "name": "HEIGHT", + "type": "INT", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_LoadImage" + }, + "widgets_values": [ + "", + "istockphoto-1368965646-612x612.jpg", + "lanczos", + 0, + 1, + "longest_side", + 0, + "image" + ], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + } + ], + "links": [ + [ + 25, + 20, + 0, + 24, + 0, + "IMAGE" + ], + [ + 26, + 24, + 2, + 13, + 0, + "MASK" + ], + [ + 27, + 24, + 0, + 21, + 0, + "IMAGE" + ], + [ + 28, + 24, + 1, + 21, + 1, + "MASK" + ], + [ + 29, + 20, + 0, + 25, + 0, + "IMAGE" + ], + [ + 30, + 25, + 2, + 23, + 0, + "MASK" + ], + [ + 31, + 25, + 0, + 22, + 0, + "IMAGE" + ], + [ + 32, + 25, + 1, + 22, + 1, + "MASK" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.699183592488379, + "offset": [ + 338.7066798641084, + 1245.140691861602 + ] + }, + "workflowRendererVersion": "LG", + "frontendVersion": "1.38.3", + "VHS_latentpreview": false, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true + }, + "version": 0.4 +} \ No newline at end of file diff --git a/example_workflows/florence2_node.jpg b/example_workflows/florence2_node.jpg new file mode 100644 index 0000000..4050b32 Binary files /dev/null and b/example_workflows/florence2_node.jpg differ diff --git a/example_workflows/florence2_node.json b/example_workflows/florence2_node.json new file mode 100644 index 0000000..67a1beb --- /dev/null +++ b/example_workflows/florence2_node.json @@ -0,0 +1,426 @@ +{ + "id": "24f0d3f4-7207-455e-ae7f-3bd3ce2771bd", + "revision": 0, + "last_node_id": 30, + "last_link_id": 42, + "nodes": [ + { + "id": 20, + "type": "AILab_LoadImage", + "pos": [ + -285.7179837716849, + -697.5816283127367 + ], + "size": [ + 586.4611082986776, + 680.5980175220382 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 36, + 39 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + }, + { + "name": "WIDTH", + "type": "INT", + "links": null + }, + { + "name": "HEIGHT", + "type": "INT", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_LoadImage" + }, + "widgets_values": [ + "", + "117697239.png", + "lanczos", + 0, + 1, + "longest_side", + 0, + "image" + ], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 29, + "type": "PreviewAny", + "pos": [ + 747.9560935974478, + -241.26885677664328 + ], + "size": [ + 210, + 112 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "source", + "type": "*", + "link": 41 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.9.2", + "Node name for S&R": "PreviewAny" + }, + "widgets_values": [ + null, + null, + false + ] + }, + { + "id": 30, + "type": "PreviewAny", + "pos": [ + 747.9560935974478, + -36.63147520797912 + ], + "size": [ + 210, + 166 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "source", + "type": "*", + "link": 42 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.9.2", + "Node name for S&R": "PreviewAny" + }, + "widgets_values": [ + null, + null, + null + ] + }, + { + "id": 21, + "type": "AILab_Preview", + "pos": [ + 747.9560935974478, + -697.5816283127367 + ], + "size": [ + 960.441294669356, + 387.6841968063493 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 37 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": 38 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": null + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_Preview" + }, + "widgets_values": [], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 26, + "type": "AILab_Florence2", + "pos": [ + 354.3496090622202, + -697.5816283127367 + ], + "size": [ + 340, + 296 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 36 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 37 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 38 + ] + }, + { + "name": "DATA", + "type": "JSON", + "links": [ + 35 + ] + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_Florence2" + }, + "widgets_values": [ + "microsoft/Florence-2-base", + "Region Proposals (boxes only)", + "fp16", + "flash_attention_2", + true, + "", + false, + "person" + ], + "color": "#222e40", + "bgcolor": "#364254" + }, + { + "id": 27, + "type": "AILab_Florence2ToCoordinates", + "pos": [ + 354.3496090622202, + -170.98590901469822 + ], + "size": [ + 340, + 122 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "data", + "type": "JSON", + "link": 35 + }, + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 39 + } + ], + "outputs": [ + { + "name": "CENTER_COORDINATES", + "type": "STRING", + "links": [ + 41 + ] + }, + { + "name": "BBOXES", + "type": "BBOX", + "links": [ + 42 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 40 + ] + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_Florence2ToCoordinates" + }, + "widgets_values": [ + "5", + false + ], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + }, + { + "id": 28, + "type": "AILab_MaskPreview", + "pos": [ + 1101.2624693912287, + -133.80513385150948 + ], + "size": [ + 331.00160376765007, + 258 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 40 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-rmbg", + "ver": "112fd6141d07663d5e4a35d66d269542b58f4438", + "Node name for S&R": "AILab_MaskPreview" + }, + "widgets_values": [], + "color": "#2e3e57", + "bgcolor": "#4b5b73" + } + ], + "links": [ + [ + 35, + 26, + 2, + 27, + 0, + "JSON" + ], + [ + 36, + 20, + 0, + 26, + 0, + "IMAGE" + ], + [ + 37, + 26, + 0, + 21, + 0, + "IMAGE" + ], + [ + 38, + 26, + 1, + 21, + 1, + "MASK" + ], + [ + 39, + 20, + 0, + 27, + 1, + "IMAGE" + ], + [ + 40, + 27, + 2, + 28, + 0, + "MASK" + ], + [ + 41, + 27, + 0, + 29, + 0, + "STRING" + ], + [ + 42, + 27, + 1, + 30, + 0, + "BBOX" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 1.1260421675384626, + "offset": [ + 645.8883158285253, + 1053.36676428533 + ] + }, + "workflowRendererVersion": "LG", + "frontendVersion": "1.38.3", + "VHS_latentpreview": false, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true + }, + "version": 0.4 +} \ No newline at end of file