Files
PozzettiAndrea-ComfyUI-SAM3/tests/workflows/point_segmentation.json
T
2026-02-10 04:22:49 +01:00

230 lines
4.5 KiB
JSON

{
"id": "sam3-test-point-segmentation",
"revision": 0,
"last_node_id": 7,
"last_link_id": 6,
"nodes": [
{
"id": 1,
"type": "LoadImage",
"pos": [100, 200],
"size": [274, 314],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [1]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": ["example.png", "image"]
},
{
"id": 2,
"type": "LoadSAM3Model",
"pos": [100, 50],
"size": [270, 82],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "sam3_model",
"type": "SAM3_MODEL",
"links": [2]
}
],
"properties": {
"Node name for S&R": "LoadSAM3Model"
},
"widgets_values": ["sam3_hiera_large.safetensors"]
},
{
"id": 3,
"type": "SAM3CreatePoint",
"pos": [100, 550],
"size": [270, 130],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "point",
"type": "SAM3_POINT",
"links": [3]
}
],
"properties": {
"Node name for S&R": "SAM3CreatePoint"
},
"widgets_values": [0.5, 0.5, "positive"]
},
{
"id": 4,
"type": "SAM3CombinePoints",
"pos": [420, 550],
"size": [270, 130],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "point_1",
"type": "SAM3_POINT",
"link": 3
},
{
"name": "point_2",
"type": "SAM3_POINT",
"link": null
},
{
"name": "point_3",
"type": "SAM3_POINT",
"link": null
},
{
"name": "point_4",
"type": "SAM3_POINT",
"link": null
},
{
"name": "point_5",
"type": "SAM3_POINT",
"link": null
}
],
"outputs": [
{
"name": "points",
"type": "SAM3_POINTS",
"links": [4]
}
],
"properties": {
"Node name for S&R": "SAM3CombinePoints"
},
"widgets_values": []
},
{
"id": 5,
"type": "SAM3Segmentation",
"pos": [500, 200],
"size": [320, 200],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "sam3_model",
"type": "SAM3_MODEL",
"link": 2
},
{
"name": "image",
"type": "IMAGE",
"link": 1
},
{
"name": "points",
"type": "SAM3_POINTS",
"link": 4
},
{
"name": "boxes",
"type": "SAM3_BOXES",
"link": null
},
{
"name": "text_prompt",
"type": "STRING",
"link": null
}
],
"outputs": [
{
"name": "masks",
"type": "MASK",
"links": [5]
},
{
"name": "visualization",
"type": "IMAGE",
"links": [6]
}
],
"properties": {
"Node name for S&R": "SAM3Segmentation"
},
"widgets_values": [3, false, false]
},
{
"id": 6,
"type": "MaskPreview",
"pos": [900, 100],
"size": [210, 258],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 5
}
],
"outputs": [],
"properties": {
"Node name for S&R": "MaskPreview"
},
"widgets_values": []
},
{
"id": 7,
"type": "PreviewImage",
"pos": [900, 400],
"size": [210, 258],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 6
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
}
],
"links": [
[1, 1, 0, 5, 1, "IMAGE"],
[2, 2, 0, 5, 0, "SAM3_MODEL"],
[3, 3, 0, 4, 0, "SAM3_POINT"],
[4, 4, 0, 5, 2, "SAM3_POINTS"],
[5, 5, 0, 6, 0, "MASK"],
[6, 5, 1, 7, 0, "IMAGE"]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}