Download comfyui-segment-anything-2/example_workflows/florence_segment_2.json from MarkLilly/mis-custom-nodes: direct link, hf CLI and curl.
- Browser
- Download file 9.85 kB
-
https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/comfyui-segment-anything-2/example_workflows/florence_segment_2.json
- Command line
-
hf download hf://MarkLilly/mis-custom-nodes/comfyui-segment-anything-2/example_workflows/florence_segment_2.json
-
curl -L -o florence_segment_2.json https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/comfyui-segment-anything-2/example_workflows/florence_segment_2.json
9.85 kB
| { | |
| "last_node_id": 102, | |
| "last_link_id": 239, | |
| "nodes": [ | |
| { | |
| "id": 83, | |
| "type": "LoadImage", | |
| "pos": [ | |
| -6, | |
| 40 | |
| ], | |
| "size": { | |
| "0": 315, | |
| "1": 314 | |
| }, | |
| "flags": {}, | |
| "order": 0, | |
| "mode": 0, | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 196 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "MASK", | |
| "type": "MASK", | |
| "links": null, | |
| "shape": 3 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "LoadImage" | |
| }, | |
| "widgets_values": [ | |
| "truck.jpg", | |
| "image" | |
| ] | |
| }, | |
| { | |
| "id": 66, | |
| "type": "DownloadAndLoadSAM2Model", | |
| "pos": [ | |
| -34, | |
| -171 | |
| ], | |
| "size": { | |
| "0": 351.7801513671875, | |
| "1": 130 | |
| }, | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "outputs": [ | |
| { | |
| "name": "sam2_model", | |
| "type": "SAM2MODEL", | |
| "links": [ | |
| 236 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "DownloadAndLoadSAM2Model" | |
| }, | |
| "widgets_values": [ | |
| "sam2_hiera_small.safetensors", | |
| "single_image", | |
| "cuda", | |
| "bf16" | |
| ] | |
| }, | |
| { | |
| "id": 84, | |
| "type": "ImageAndMaskPreview", | |
| "pos": [ | |
| 958, | |
| -293 | |
| ], | |
| "size": { | |
| "0": 667.9199829101562, | |
| "1": 541.2733154296875 | |
| }, | |
| "flags": {}, | |
| "order": 9, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 192 | |
| }, | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "link": 238, | |
| "slot_index": 1 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "composite", | |
| "type": "IMAGE", | |
| "links": null, | |
| "shape": 3 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "ImageAndMaskPreview" | |
| }, | |
| "widgets_values": [ | |
| 1, | |
| "255, 0, 0", | |
| false | |
| ] | |
| }, | |
| { | |
| "id": 72, | |
| "type": "ImageResizeKJ", | |
| "pos": [ | |
| 353, | |
| 127 | |
| ], | |
| "size": { | |
| "0": 315, | |
| "1": 242 | |
| }, | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 196 | |
| }, | |
| { | |
| "name": "get_image_size", | |
| "type": "IMAGE", | |
| "link": null | |
| }, | |
| { | |
| "name": "width_input", | |
| "type": "INT", | |
| "link": null, | |
| "widget": { | |
| "name": "width_input" | |
| } | |
| }, | |
| { | |
| "name": "height_input", | |
| "type": "INT", | |
| "link": null, | |
| "widget": { | |
| "name": "height_input" | |
| } | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 192, | |
| 210, | |
| 226, | |
| 237 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "width", | |
| "type": "INT", | |
| "links": null, | |
| "shape": 3 | |
| }, | |
| { | |
| "name": "height", | |
| "type": "INT", | |
| "links": null, | |
| "shape": 3 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "ImageResizeKJ" | |
| }, | |
| "widgets_values": [ | |
| 768, | |
| 512, | |
| "nearest-exact", | |
| false, | |
| 2, | |
| 0, | |
| 0 | |
| ] | |
| }, | |
| { | |
| "id": 99, | |
| "type": "PreviewImage", | |
| "pos": [ | |
| 1044, | |
| -744 | |
| ], | |
| "size": { | |
| "0": 530.9268798828125, | |
| "1": 363.34893798828125 | |
| }, | |
| "flags": {}, | |
| "order": 5, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 226 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "PreviewImage" | |
| } | |
| }, | |
| { | |
| "id": 90, | |
| "type": "PreviewImage", | |
| "pos": [ | |
| 422, | |
| -800 | |
| ], | |
| "size": { | |
| "0": 568.406494140625, | |
| "1": 384.9489440917969 | |
| }, | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 200 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "PreviewImage" | |
| } | |
| }, | |
| { | |
| "id": 93, | |
| "type": "Florence2toCoordinates", | |
| "pos": [ | |
| 399, | |
| -314 | |
| ], | |
| "size": { | |
| "0": 210, | |
| "1": 78 | |
| }, | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "data", | |
| "type": "JSON", | |
| "link": 204 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "coordinates", | |
| "type": "STRING", | |
| "links": [], | |
| "shape": 3, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "bboxes", | |
| "type": "BBOX", | |
| "links": [ | |
| 239 | |
| ], | |
| "shape": 3, | |
| "slot_index": 1 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "Florence2toCoordinates" | |
| }, | |
| "widgets_values": [ | |
| "" | |
| ] | |
| }, | |
| { | |
| "id": 87, | |
| "type": "Florence2Run", | |
| "pos": [ | |
| -85, | |
| -796 | |
| ], | |
| "size": { | |
| "0": 400, | |
| "1": 304 | |
| }, | |
| "flags": {}, | |
| "order": 4, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 210, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "florence2_model", | |
| "type": "FL2MODEL", | |
| "link": 197, | |
| "slot_index": 1 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "links": [ | |
| 200 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "links": null, | |
| "shape": 3 | |
| }, | |
| { | |
| "name": "caption", | |
| "type": "STRING", | |
| "links": null, | |
| "shape": 3, | |
| "slot_index": 2 | |
| }, | |
| { | |
| "name": "data", | |
| "type": "JSON", | |
| "links": [ | |
| 204 | |
| ], | |
| "shape": 3, | |
| "slot_index": 3 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "Florence2Run" | |
| }, | |
| "widgets_values": [ | |
| "wheel", | |
| "caption_to_phrase_grounding", | |
| true, | |
| false, | |
| 1024, | |
| 3, | |
| true, | |
| "" | |
| ] | |
| }, | |
| { | |
| "id": 102, | |
| "type": "Sam2Segmentation", | |
| "pos": [ | |
| 440, | |
| -120 | |
| ], | |
| "size": [ | |
| 314.5386123916544, | |
| 162 | |
| ], | |
| "flags": {}, | |
| "order": 8, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "sam2_model", | |
| "type": "SAM2MODEL", | |
| "link": 236 | |
| }, | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 237 | |
| }, | |
| { | |
| "name": "bboxes", | |
| "type": "BBOX", | |
| "link": 239 | |
| }, | |
| { | |
| "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": [ | |
| 238 | |
| ], | |
| "shape": 3 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "Sam2Segmentation" | |
| }, | |
| "widgets_values": [ | |
| true, | |
| "", | |
| "", | |
| true | |
| ] | |
| }, | |
| { | |
| "id": 88, | |
| "type": "DownloadAndLoadFlorence2Model", | |
| "pos": [ | |
| -470, | |
| -777 | |
| ], | |
| "size": { | |
| "0": 315, | |
| "1": 106 | |
| }, | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "outputs": [ | |
| { | |
| "name": "florence2_model", | |
| "type": "FL2MODEL", | |
| "links": [ | |
| 197 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "DownloadAndLoadFlorence2Model" | |
| }, | |
| "widgets_values": [ | |
| "microsoft/Florence-2-base", | |
| "fp16", | |
| "sdpa" | |
| ] | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 192, | |
| 72, | |
| 0, | |
| 84, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 196, | |
| 83, | |
| 0, | |
| 72, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 197, | |
| 88, | |
| 0, | |
| 87, | |
| 1, | |
| "FL2MODEL" | |
| ], | |
| [ | |
| 200, | |
| 87, | |
| 0, | |
| 90, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 204, | |
| 87, | |
| 3, | |
| 93, | |
| 0, | |
| "JSON" | |
| ], | |
| [ | |
| 210, | |
| 72, | |
| 0, | |
| 87, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 226, | |
| 72, | |
| 0, | |
| 99, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 236, | |
| 66, | |
| 0, | |
| 102, | |
| 0, | |
| "SAM2MODEL" | |
| ], | |
| [ | |
| 237, | |
| 72, | |
| 0, | |
| 102, | |
| 1, | |
| "IMAGE" | |
| ], | |
| [ | |
| 238, | |
| 102, | |
| 0, | |
| 84, | |
| 1, | |
| "MASK" | |
| ], | |
| [ | |
| 239, | |
| 93, | |
| 1, | |
| 102, | |
| 2, | |
| "BBOX" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": { | |
| "ds": { | |
| "scale": 0.7627768444385467, | |
| "offset": [ | |
| 564.3268832902941, | |
| 896.4031145502903 | |
| ] | |
| } | |
| }, | |
| "version": 0.4 | |
| } |