388 lines
7.3 KiB
JSON
388 lines
7.3 KiB
JSON
{
|
|
"last_node_id": 75,
|
|
"last_link_id": 174,
|
|
"nodes": [
|
|
{
|
|
"id": 72,
|
|
"type": "ImageResizeKJ",
|
|
"pos": [
|
|
656,
|
|
298
|
|
],
|
|
"size": {
|
|
"0": 315,
|
|
"1": 242
|
|
},
|
|
"flags": {},
|
|
"order": 3,
|
|
"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": 5,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 170
|
|
},
|
|
{
|
|
"name": "mask",
|
|
"type": "MASK",
|
|
"link": 173
|
|
}
|
|
],
|
|
"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,
|
|
170,
|
|
172
|
|
],
|
|
"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": 74,
|
|
"type": "Sam2Segmentation",
|
|
"pos": [
|
|
1076,
|
|
298
|
|
],
|
|
"size": {
|
|
"0": 315,
|
|
"1": 126
|
|
},
|
|
"flags": {},
|
|
"order": 4,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "sam2_model",
|
|
"type": "SAM2MODEL",
|
|
"link": 171
|
|
},
|
|
{
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 172
|
|
},
|
|
{
|
|
"name": "coordinates",
|
|
"type": "STRING",
|
|
"link": 174,
|
|
"widget": {
|
|
"name": "coordinates"
|
|
},
|
|
"slot_index": 2
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "mask",
|
|
"type": "MASK",
|
|
"links": [
|
|
173
|
|
],
|
|
"shape": 3,
|
|
"slot_index": 0
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "Sam2Segmentation"
|
|
},
|
|
"widgets_values": [
|
|
"",
|
|
0,
|
|
false
|
|
]
|
|
},
|
|
{
|
|
"id": 66,
|
|
"type": "DownloadAndLoadSAM2Model",
|
|
"pos": [
|
|
281,
|
|
-115
|
|
],
|
|
"size": {
|
|
"0": 351.7801513671875,
|
|
"1": 106
|
|
},
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"outputs": [
|
|
{
|
|
"name": "sam2_model",
|
|
"type": "SAM2MODEL",
|
|
"links": [
|
|
171
|
|
],
|
|
"shape": 3,
|
|
"slot_index": 0
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "DownloadAndLoadSAM2Model"
|
|
},
|
|
"widgets_values": [
|
|
"sam2_hiera_base_plus.safetensors",
|
|
"cuda",
|
|
"bf16"
|
|
]
|
|
},
|
|
{
|
|
"id": 75,
|
|
"type": "SplineEditor",
|
|
"pos": [
|
|
338,
|
|
617
|
|
],
|
|
"size": {
|
|
"0": 557,
|
|
"1": 942
|
|
},
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"outputs": [
|
|
{
|
|
"name": "mask",
|
|
"type": "MASK",
|
|
"links": null,
|
|
"shape": 3
|
|
},
|
|
{
|
|
"name": "coord_str",
|
|
"type": "STRING",
|
|
"links": [
|
|
174
|
|
],
|
|
"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\":257.68160000000006,\"y\":144.94590000000002},{\"x\":361.79,\"y\":323.07000000000005}]",
|
|
"[{\"x\":257.6816101074219,\"y\":144.94590759277344},{\"x\":257.6816101074219,\"y\":144.94590759277344},{\"x\":257.6816101074219,\"y\":144.94590759277344},{\"x\":257.6816101074219,\"y\":144.94590759277344},{\"x\":257.6816101074219,\"y\":144.94590759277344},{\"x\":257.6816101074219,\"y\":144.94590759277344},{\"x\":257.6816101074219,\"y\":144.94590759277344},{\"x\":257.6816101074219,\"y\":144.94590759277344},{\"x\":273.60162353515625,\"y\":172.18423461914062},{\"x\":306.45086669921875,\"y\":228.3876190185547},{\"x\":340.9425964355469,\"y\":287.4011535644531},{\"x\":361.473388671875,\"y\":322.5282897949219},{\"x\":361.473388671875,\"y\":322.5282897949219},{\"x\":361.473388671875,\"y\":322.5282897949219},{\"x\":361.473388671875,\"y\":322.5282897949219},{\"x\":361.473388671875,\"y\":322.5282897949219}]",
|
|
512,
|
|
512,
|
|
16,
|
|
"time",
|
|
"cardinal",
|
|
0.5,
|
|
1,
|
|
"list",
|
|
0,
|
|
1,
|
|
null,
|
|
null
|
|
]
|
|
}
|
|
],
|
|
"links": [
|
|
[
|
|
166,
|
|
1,
|
|
0,
|
|
72,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
170,
|
|
1,
|
|
0,
|
|
71,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
171,
|
|
66,
|
|
0,
|
|
74,
|
|
0,
|
|
"SAM2MODEL"
|
|
],
|
|
[
|
|
172,
|
|
1,
|
|
0,
|
|
74,
|
|
1,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
173,
|
|
74,
|
|
0,
|
|
71,
|
|
1,
|
|
"MASK"
|
|
],
|
|
[
|
|
174,
|
|
75,
|
|
1,
|
|
74,
|
|
2,
|
|
"STRING"
|
|
]
|
|
],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {
|
|
"ds": {
|
|
"scale": 0.620921323059155,
|
|
"offset": [
|
|
203.51441124053537,
|
|
257.3895937323198
|
|
]
|
|
}
|
|
},
|
|
"version": 0.4
|
|
} |