{ "last_node_id": 96, "last_link_id": 213, "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": [ 179 ], "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": [ 180, 192 ], "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": 78, "type": "Sam2Segmentation", "pos": [ 374, -65 ], "size": { "0": 315, "1": 102 }, "flags": {}, "order": 4, "mode": 0, "inputs": [ { "name": "sam2_model", "type": "SAM2MODEL", "link": 179 }, { "name": "image", "type": "IMAGE", "link": 180 }, { "name": "coordinates", "type": "STRING", "link": 213, "widget": { "name": "coordinates" } } ], "outputs": [ { "name": "mask", "type": "MASK", "links": [ 191 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "Sam2Segmentation" }, "widgets_values": [ "", true ] }, { "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": 191, "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": 96, "type": "SplineEditor", "pos": [ -138, -1183 ], "size": [ 813, 942 ], "flags": {}, "order": 2, "mode": 0, "outputs": [ { "name": "mask", "type": "MASK", "links": null, "shape": 3 }, { "name": "coord_str", "type": "STRING", "links": [ 213 ], "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": null, "shape": 3 } ], "properties": { "Node name for S&R": "SplineEditor", "points": "SplineEditor" }, "widgets_values": [ "[{\"x\":220.24790241719901,\"y\":308.0848635002486},{\"x\":309.3958629193986,\"y\":309.3958629193986}]", "[{\"x\":220.24790954589844,\"y\":308.0848693847656},{\"x\":226.19110107421875,\"y\":308.1722717285156},{\"x\":232.13430786132812,\"y\":308.2596740722656},{\"x\":238.0775146484375,\"y\":308.3470764160156},{\"x\":244.0207061767578,\"y\":308.4344787597656},{\"x\":249.96389770507812,\"y\":308.5218811035156},{\"x\":255.9071044921875,\"y\":308.6092834472656},{\"x\":261.85028076171875,\"y\":308.6966857910156},{\"x\":267.7934875488281,\"y\":308.7840576171875},{\"x\":273.7366943359375,\"y\":308.8714599609375},{\"x\":279.6799011230469,\"y\":308.9588623046875},{\"x\":285.6230773925781,\"y\":309.0462646484375},{\"x\":291.5662841796875,\"y\":309.1336669921875},{\"x\":297.5094909667969,\"y\":309.2210693359375},{\"x\":303.4526672363281,\"y\":309.3084716796875},{\"x\":309.3958740234375,\"y\":309.3958740234375}]", 768, 512, 16, "path", "cardinal", 0.5, 1, "list", 0, 1, null, null ] } ], "links": [ [ 179, 66, 0, 78, 0, "SAM2MODEL" ], [ 180, 72, 0, 78, 1, "IMAGE" ], [ 191, 78, 0, 84, 1, "MASK" ], [ 192, 72, 0, 84, 0, "IMAGE" ], [ 196, 83, 0, 72, 0, "IMAGE" ], [ 213, 96, 1, 78, 2, "STRING" ] ], "groups": [], "config": {}, "extra": { "ds": { "scale": 0.6303940863128483, "offset": [ 725.3145306037434, 1267.6359603669778 ] } }, "version": 0.4 }