{ "last_node_id": 97, "last_link_id": 218, "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": [ -8, -168 ], "size": { "0": 351.7801513671875, "1": 130 }, "flags": {}, "order": 1, "mode": 0, "outputs": [ { "name": "sam2_model", "type": "SAM2MODEL", "links": [ 214 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "DownloadAndLoadSAM2Model" }, "widgets_values": [ "sam2_hiera_small.safetensors", "single_image", "cuda", "bf16" ] }, { "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, 215 ], "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": 84, "type": "ImageAndMaskPreview", "pos": [ 742, -308 ], "size": { "0": 667.9199829101562, "1": 541.2733154296875 }, "flags": {}, "order": 5, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 192 }, { "name": "mask", "type": "MASK", "link": 216, "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": 97, "type": "Sam2Segmentation", "pos": [ 374, -65 ], "size": [ 315, 126 ], "flags": {}, "order": 4, "mode": 0, "inputs": [ { "name": "sam2_model", "type": "SAM2MODEL", "link": 214 }, { "name": "image", "type": "IMAGE", "link": 215 }, { "name": "coordinates_positive", "type": "STRING", "link": 218, "widget": { "name": "coordinates_positive" }, "slot_index": 2 }, { "name": "coordinates_negative", "type": "STRING", "link": null, "widget": { "name": "coordinates_negative" } } ], "outputs": [ { "name": "mask", "type": "MASK", "links": [ 216 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "Sam2Segmentation" }, "widgets_values": [ "", true, "" ] }, { "id": 96, "type": "SplineEditor", "pos": [ -138, -1183 ], "size": { "0": 813, "1": 942 }, "flags": {}, "order": 2, "mode": 0, "outputs": [ { "name": "mask", "type": "MASK", "links": null, "shape": 3 }, { "name": "coord_str", "type": "STRING", "links": [ 218 ], "shape": 3, "slot_index": 1 }, { "name": "float", "type": "FLOAT", "links": null, "shape": 3 }, { "name": "count", "type": "INT", "links": null, "shape": 3 }, { "name": "normalized_str", "type": "STRING", "links": [], "shape": 3 } ], "properties": { "Node name for S&R": "SplineEditor", "points": "SplineEditor" }, "widgets_values": [ "[{\"x\":295.0535292738977,\"y\":285.53567349086876},{\"x\":377.54161272681534,\"y\":287.12198278804027}]", "[{\"x\":295.05352783203125,\"y\":285.5356750488281},{\"x\":377.5416259765625,\"y\":287.1219787597656}]", 768, 512, 2, "path", "cardinal", 0.5, 1, "list", 0, 1, null, null ] } ], "links": [ [ 192, 72, 0, 84, 0, "IMAGE" ], [ 196, 83, 0, 72, 0, "IMAGE" ], [ 214, 66, 0, 97, 0, "SAM2MODEL" ], [ 215, 72, 0, 97, 1, "IMAGE" ], [ 216, 97, 0, 84, 1, "MASK" ], [ 218, 96, 1, 97, 2, "STRING" ] ], "groups": [], "config": {}, "extra": { "ds": { "scale": 0.6303940863128483, "offset": [ 725.3145306037434, 1267.6359603669778 ] } }, "version": 0.4 }