Download comfyui-segment-anything-2/example_workflows/image_batch_bbox_segment.json from MarkLilly/mis-custom-nodes: direct link, hf CLI and curl.
- Browser
- Download file 13.8 kB
-
https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/comfyui-segment-anything-2/example_workflows/image_batch_bbox_segment.json
- Command line
-
hf download hf://MarkLilly/mis-custom-nodes/comfyui-segment-anything-2/example_workflows/image_batch_bbox_segment.json
-
curl -L -o image_batch_bbox_segment.json https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/comfyui-segment-anything-2/example_workflows/image_batch_bbox_segment.json
13.8 kB
| { | |
| "last_node_id": 30, | |
| "last_link_id": 58, | |
| "nodes": [ | |
| { | |
| "id": 2, | |
| "type": "DownloadAndLoadSAM2Model", | |
| "pos": [ | |
| 119, | |
| 52 | |
| ], | |
| "size": { | |
| "0": 315, | |
| "1": 130 | |
| }, | |
| "flags": {}, | |
| "order": 0, | |
| "mode": 0, | |
| "outputs": [ | |
| { | |
| "name": "sam2_model", | |
| "type": "SAM2MODEL", | |
| "links": [ | |
| 9 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "DownloadAndLoadSAM2Model" | |
| }, | |
| "widgets_values": [ | |
| "sam2_hiera_base_plus.safetensors", | |
| "single_image", | |
| "cuda", | |
| "bf16" | |
| ] | |
| }, | |
| { | |
| "id": 13, | |
| "type": "DownloadAndLoadFlorence2Model", | |
| "pos": [ | |
| 105, | |
| -299 | |
| ], | |
| "size": { | |
| "0": 315, | |
| "1": 106 | |
| }, | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "lora", | |
| "type": "PEFTLORA", | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "florence2_model", | |
| "type": "FL2MODEL", | |
| "links": [ | |
| 23 | |
| ], | |
| "shape": 3 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "DownloadAndLoadFlorence2Model" | |
| }, | |
| "widgets_values": [ | |
| "microsoft/Florence-2-large", | |
| "fp16", | |
| "sdpa" | |
| ] | |
| }, | |
| { | |
| "id": 26, | |
| "type": "MaskToImage", | |
| "pos": [ | |
| 1161, | |
| 280 | |
| ], | |
| "size": { | |
| "0": 210, | |
| "1": 26 | |
| }, | |
| "flags": {}, | |
| "order": 8, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "link": 43 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 44 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "MaskToImage" | |
| } | |
| }, | |
| { | |
| "id": 25, | |
| "type": "ImageCompositeMasked", | |
| "pos": [ | |
| 1124, | |
| 364 | |
| ], | |
| "size": { | |
| "0": 315, | |
| "1": 146 | |
| }, | |
| "flags": {}, | |
| "order": 9, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "destination", | |
| "type": "IMAGE", | |
| "link": 55, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "source", | |
| "type": "IMAGE", | |
| "link": 44 | |
| }, | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "link": 45 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 56 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "ImageCompositeMasked" | |
| }, | |
| "widgets_values": [ | |
| 0, | |
| 0, | |
| false | |
| ] | |
| }, | |
| { | |
| "id": 29, | |
| "type": "VHS_VideoCombine", | |
| "pos": [ | |
| 1486, | |
| 58 | |
| ], | |
| "size": [ | |
| 772.7946166992188, | |
| 859.3206163194444 | |
| ], | |
| "flags": {}, | |
| "order": 10, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 56, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "audio", | |
| "type": "VHS_AUDIO", | |
| "link": null | |
| }, | |
| { | |
| "name": "meta_batch", | |
| "type": "VHS_BatchManager", | |
| "link": null | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "Filenames", | |
| "type": "VHS_FILENAMES", | |
| "links": null, | |
| "shape": 3 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VHS_VideoCombine" | |
| }, | |
| "widgets_values": { | |
| "frame_rate": 3, | |
| "loop_count": 0, | |
| "filename_prefix": "AnimateDiff", | |
| "format": "video/h264-mp4", | |
| "pix_fmt": "yuv420p", | |
| "crf": 19, | |
| "save_metadata": true, | |
| "pingpong": false, | |
| "save_output": false, | |
| "videopreview": { | |
| "hidden": false, | |
| "paused": false, | |
| "params": { | |
| "filename": "AnimateDiff_00002.mp4", | |
| "subfolder": "", | |
| "type": "temp", | |
| "format": "video/h264-mp4", | |
| "frame_rate": 3 | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "id": 11, | |
| "type": "VHS_LoadVideo", | |
| "pos": [ | |
| 76, | |
| 274 | |
| ], | |
| "size": [ | |
| 235.1999969482422, | |
| 429.0311089409722 | |
| ], | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "meta_batch", | |
| "type": "VHS_BatchManager", | |
| "link": null | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 28, | |
| 37 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "frame_count", | |
| "type": "INT", | |
| "links": null, | |
| "shape": 3 | |
| }, | |
| { | |
| "name": "audio", | |
| "type": "VHS_AUDIO", | |
| "links": null, | |
| "shape": 3 | |
| }, | |
| { | |
| "name": "video_info", | |
| "type": "VHS_VIDEOINFO", | |
| "links": null, | |
| "shape": 3 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VHS_LoadVideo" | |
| }, | |
| "widgets_values": { | |
| "video": "katana_02.mp4", | |
| "force_rate": 0, | |
| "force_size": "Disabled", | |
| "custom_width": 512, | |
| "custom_height": 512, | |
| "frame_load_cap": 16, | |
| "skip_first_frames": 0, | |
| "select_every_nth": 5, | |
| "choose video to upload": "image", | |
| "videopreview": { | |
| "hidden": false, | |
| "paused": false, | |
| "params": { | |
| "frame_load_cap": 16, | |
| "skip_first_frames": 0, | |
| "force_rate": 0, | |
| "filename": "katana_02.mp4", | |
| "type": "input", | |
| "format": "video/mp4", | |
| "select_every_nth": 5 | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "id": 21, | |
| "type": "GetImageSizeAndCount", | |
| "pos": [ | |
| 393, | |
| 282 | |
| ], | |
| "size": { | |
| "0": 210, | |
| "1": 86 | |
| }, | |
| "flags": {}, | |
| "order": 4, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 37 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "links": [ | |
| 58 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "1440 width", | |
| "type": "INT", | |
| "links": null, | |
| "shape": 3 | |
| }, | |
| { | |
| "name": "1024 height", | |
| "type": "INT", | |
| "links": null, | |
| "shape": 3 | |
| }, | |
| { | |
| "name": "16 count", | |
| "type": "INT", | |
| "links": null, | |
| "shape": 3 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "GetImageSizeAndCount" | |
| } | |
| }, | |
| { | |
| "id": 7, | |
| "type": "Sam2Segmentation", | |
| "pos": [ | |
| 744, | |
| 227 | |
| ], | |
| "size": { | |
| "0": 314.3733825683594, | |
| "1": 190.31338500976562 | |
| }, | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "sam2_model", | |
| "type": "SAM2MODEL", | |
| "link": 9 | |
| }, | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 58 | |
| }, | |
| { | |
| "name": "bboxes", | |
| "type": "BBOX", | |
| "link": 54 | |
| }, | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "link": null, | |
| "slot_index": 3 | |
| }, | |
| { | |
| "name": "coordinates_positive", | |
| "type": "STRING", | |
| "link": null, | |
| "widget": { | |
| "name": "coordinates_positive" | |
| } | |
| }, | |
| { | |
| "name": "coordinates_negative", | |
| "type": "STRING", | |
| "link": null, | |
| "widget": { | |
| "name": "coordinates_negative" | |
| } | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "links": [ | |
| 43, | |
| 45 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "Sam2Segmentation" | |
| }, | |
| "widgets_values": [ | |
| true, | |
| "", | |
| "", | |
| true | |
| ] | |
| }, | |
| { | |
| "id": 30, | |
| "type": "VHS_VideoCombine", | |
| "pos": [ | |
| 1093, | |
| -868 | |
| ], | |
| "size": [ | |
| 772.7946166992188, | |
| 859.3206163194444 | |
| ], | |
| "flags": {}, | |
| "order": 5, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 57, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "audio", | |
| "type": "VHS_AUDIO", | |
| "link": null | |
| }, | |
| { | |
| "name": "meta_batch", | |
| "type": "VHS_BatchManager", | |
| "link": null | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "Filenames", | |
| "type": "VHS_FILENAMES", | |
| "links": null, | |
| "shape": 3 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VHS_VideoCombine" | |
| }, | |
| "widgets_values": { | |
| "frame_rate": 3, | |
| "loop_count": 0, | |
| "filename_prefix": "AnimateDiff", | |
| "format": "video/h264-mp4", | |
| "pix_fmt": "yuv420p", | |
| "crf": 19, | |
| "save_metadata": true, | |
| "pingpong": false, | |
| "save_output": false, | |
| "videopreview": { | |
| "hidden": false, | |
| "paused": false, | |
| "params": { | |
| "filename": "AnimateDiff_00001.mp4", | |
| "subfolder": "", | |
| "type": "temp", | |
| "format": "video/h264-mp4", | |
| "frame_rate": 3 | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "id": 16, | |
| "type": "Florence2toCoordinates", | |
| "pos": [ | |
| 942, | |
| 16 | |
| ], | |
| "size": { | |
| "0": 315, | |
| "1": 102 | |
| }, | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "data", | |
| "type": "JSON", | |
| "link": 26 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "center_coordinates", | |
| "type": "STRING", | |
| "links": [], | |
| "shape": 3, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "bboxes", | |
| "type": "BBOX", | |
| "links": [ | |
| 54 | |
| ], | |
| "shape": 3, | |
| "slot_index": 1 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "Florence2toCoordinates" | |
| }, | |
| "widgets_values": [ | |
| "0", | |
| true | |
| ] | |
| }, | |
| { | |
| "id": 12, | |
| "type": "Florence2Run", | |
| "pos": [ | |
| 506, | |
| -316 | |
| ], | |
| "size": { | |
| "0": 400, | |
| "1": 352 | |
| }, | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 28, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "florence2_model", | |
| "type": "FL2MODEL", | |
| "link": 23, | |
| "slot_index": 1 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "links": [ | |
| 55, | |
| 57 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "links": null, | |
| "shape": 3 | |
| }, | |
| { | |
| "name": "caption", | |
| "type": "STRING", | |
| "links": null, | |
| "shape": 3 | |
| }, | |
| { | |
| "name": "data", | |
| "type": "JSON", | |
| "links": [ | |
| 26 | |
| ], | |
| "shape": 3, | |
| "slot_index": 3 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "Florence2Run" | |
| }, | |
| "widgets_values": [ | |
| "sword", | |
| "caption_to_phrase_grounding", | |
| true, | |
| false, | |
| 1024, | |
| 3, | |
| true, | |
| "", | |
| 3228786869, | |
| "fixed" | |
| ] | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 9, | |
| 2, | |
| 0, | |
| 7, | |
| 0, | |
| "SAM2MODEL" | |
| ], | |
| [ | |
| 23, | |
| 13, | |
| 0, | |
| 12, | |
| 1, | |
| "FL2MODEL" | |
| ], | |
| [ | |
| 26, | |
| 12, | |
| 3, | |
| 16, | |
| 0, | |
| "JSON" | |
| ], | |
| [ | |
| 28, | |
| 11, | |
| 0, | |
| 12, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 37, | |
| 11, | |
| 0, | |
| 21, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 43, | |
| 7, | |
| 0, | |
| 26, | |
| 0, | |
| "MASK" | |
| ], | |
| [ | |
| 44, | |
| 26, | |
| 0, | |
| 25, | |
| 1, | |
| "IMAGE" | |
| ], | |
| [ | |
| 45, | |
| 7, | |
| 0, | |
| 25, | |
| 2, | |
| "MASK" | |
| ], | |
| [ | |
| 54, | |
| 16, | |
| 1, | |
| 7, | |
| 2, | |
| "BBOX" | |
| ], | |
| [ | |
| 55, | |
| 12, | |
| 0, | |
| 25, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 56, | |
| 25, | |
| 0, | |
| 29, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 57, | |
| 12, | |
| 0, | |
| 30, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 58, | |
| 21, | |
| 0, | |
| 7, | |
| 1, | |
| "IMAGE" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": { | |
| "ds": { | |
| "scale": 0.620921323059155, | |
| "offset": [ | |
| 253.5867105157341, | |
| 622.007731477587 | |
| ] | |
| } | |
| }, | |
| "version": 0.4 | |
| } |