update points example
This commit is contained in:
@@ -1,402 +0,0 @@
|
||||
{
|
||||
"last_node_id": 98,
|
||||
"last_link_id": 222,
|
||||
"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": [
|
||||
219
|
||||
],
|
||||
"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,
|
||||
220
|
||||
],
|
||||
"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": 222,
|
||||
"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": {
|
||||
"0": 813,
|
||||
"1": 942
|
||||
},
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"outputs": [
|
||||
{
|
||||
"name": "mask",
|
||||
"type": "MASK",
|
||||
"links": null,
|
||||
"shape": 3
|
||||
},
|
||||
{
|
||||
"name": "coord_str",
|
||||
"type": "STRING",
|
||||
"links": [
|
||||
221
|
||||
],
|
||||
"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.0535292738977,\"y\":285.53567349086876},{\"x\":377.54161272681534,\"y\":287.12198278804027}]",
|
||||
768,
|
||||
512,
|
||||
2,
|
||||
"controlpoints",
|
||||
"linear",
|
||||
0.5,
|
||||
1,
|
||||
"list",
|
||||
0,
|
||||
1,
|
||||
null,
|
||||
null
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 98,
|
||||
"type": "Sam2Segmentation",
|
||||
"pos": [
|
||||
380,
|
||||
-100
|
||||
],
|
||||
"size": [
|
||||
316.01859966191455,
|
||||
162
|
||||
],
|
||||
"flags": {},
|
||||
"order": 4,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "sam2_model",
|
||||
"type": "SAM2MODEL",
|
||||
"link": 219
|
||||
},
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"link": 220
|
||||
},
|
||||
{
|
||||
"name": "bboxes",
|
||||
"type": "BBOX",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "coordinates_positive",
|
||||
"type": "STRING",
|
||||
"link": 221,
|
||||
"widget": {
|
||||
"name": "coordinates_positive"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "coordinates_negative",
|
||||
"type": "STRING",
|
||||
"link": null,
|
||||
"widget": {
|
||||
"name": "coordinates_negative"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "mask",
|
||||
"type": "MASK",
|
||||
"links": [
|
||||
222
|
||||
],
|
||||
"shape": 3
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "Sam2Segmentation"
|
||||
},
|
||||
"widgets_values": [
|
||||
true,
|
||||
"",
|
||||
"",
|
||||
false
|
||||
]
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[
|
||||
192,
|
||||
72,
|
||||
0,
|
||||
84,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
196,
|
||||
83,
|
||||
0,
|
||||
72,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
219,
|
||||
66,
|
||||
0,
|
||||
98,
|
||||
0,
|
||||
"SAM2MODEL"
|
||||
],
|
||||
[
|
||||
220,
|
||||
72,
|
||||
0,
|
||||
98,
|
||||
1,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
221,
|
||||
96,
|
||||
1,
|
||||
98,
|
||||
3,
|
||||
"STRING"
|
||||
],
|
||||
[
|
||||
222,
|
||||
98,
|
||||
0,
|
||||
84,
|
||||
1,
|
||||
"MASK"
|
||||
]
|
||||
],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {
|
||||
"ds": {
|
||||
"scale": 0.6303940863128483,
|
||||
"offset": [
|
||||
672.4375863049054,
|
||||
1167.1697371529935
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user