{ "last_node_id": 73, "last_link_id": 170, "nodes": [ { "id": 72, "type": "ImageResizeKJ", "pos": [ 656, 298 ], "size": { "0": 315, "1": 242 }, "flags": {}, "order": 2, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 166 }, { "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": [], "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": [ 512, 512, "nearest-exact", false, 2, 0, 0 ] }, { "id": 71, "type": "ImageAndMaskPreview", "pos": [ 1480, 89 ], "size": { "0": 493.91461181640625, "1": 498.041259765625 }, "flags": {}, "order": 4, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 170 }, { "name": "mask", "type": "MASK", "link": 165 } ], "outputs": [ { "name": "composite", "type": "IMAGE", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "ImageAndMaskPreview" }, "widgets_values": [ 1, "255, 0, 0", false ] }, { "id": 1, "type": "LoadImage", "pos": [ 283, 191 ], "size": { "0": 315, "1": 314 }, "flags": {}, "order": 0, "mode": 0, "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 166, 169, 170 ], "shape": 3, "slot_index": 0 }, { "name": "MASK", "type": "MASK", "links": [], "shape": 3, "slot_index": 1 } ], "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "oldman.jpg", "image" ] }, { "id": 69, "type": "Sam2Segmentation", "pos": [ 1033, 279 ], "size": { "0": 400, "1": 200 }, "flags": {}, "order": 3, "mode": 0, "inputs": [ { "name": "sam2_model", "type": "SAM2MODEL", "link": 162 }, { "name": "image", "type": "IMAGE", "link": 169 } ], "outputs": [ { "name": "mask", "type": "MASK", "links": [ 165 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "Sam2Segmentation" }, "widgets_values": [ 250, 375, 1, false ] }, { "id": 66, "type": "DownloadAndLoadSAM2Model", "pos": [ 281, -115 ], "size": { "0": 315, "1": 106 }, "flags": {}, "order": 1, "mode": 0, "outputs": [ { "name": "sam2_model", "type": "SAM2MODEL", "links": [ 162 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "DownloadAndLoadSAM2Model" }, "widgets_values": [ "sam2_hiera_base_plus.pt", "cpu", "fp32" ] } ], "links": [ [ 162, 66, 0, 69, 0, "SAM2MODEL" ], [ 165, 69, 0, 71, 1, "MASK" ], [ 166, 1, 0, 72, 0, "IMAGE" ], [ 169, 1, 0, 69, 1, "IMAGE" ], [ 170, 1, 0, 71, 0, "IMAGE" ] ], "groups": [], "config": {}, "extra": { "ds": { "scale": 1, "offset": [ -116.78008375824405, 342.20531168336925 ] } }, "version": 0.4 }