Files
PozzettiAndrea-ComfyUI-SAM3/workflows/example_segmentation_points.json
T
2026-02-10 02:44:49 +01:00

395 lines
6.9 KiB
JSON

{
"id": "0b04cdef-0fe9-494a-baa9-ca11511022b9",
"revision": 0,
"last_node_id": 9,
"last_link_id": 8,
"nodes": [
{
"id": 7,
"type": "MaskPreview",
"pos": [
1285.1917567959822,
-164.2376998289703
],
"size": [
140,
246
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 5
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.70",
"Node name for S&R": "MaskPreview"
},
"widgets_values": []
},
{
"id": 1,
"type": "LoadSAM3Model",
"pos": [
530.73828125,
128.45703125
],
"size": [
270,
106
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "sam3_model",
"type": "SAM3_MODEL",
"links": [
1
]
}
],
"properties": {
"aux_id": "PozzettiAndrea/ComfyUI-SAM3",
"ver": "307654744fa45de98017f92710d4a9cc1b4d63de",
"Node name for S&R": "LoadSAM3Model"
},
"widgets_values": [
"auto",
"",
"YOUR_HF_TOKEN_HERE"
]
},
{
"id": 4,
"type": "LoadImage",
"pos": [
535.57421875,
284.2890625
],
"size": [
274.080078125,
314
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
2,
7
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.70",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example_image.jpg",
"image"
]
},
{
"id": 5,
"type": "PreviewImage",
"pos": [
1710.4529605215105,
147.12305834352858
],
"size": [
140,
246
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 3
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.70",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 6,
"type": "PreviewAny",
"pos": [
1578.2128366336826,
509.43098550417255
],
"size": [
233.69546594584722,
164.65461903779413
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 4
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.70",
"Node name for S&R": "PreviewAny"
},
"widgets_values": []
},
{
"id": 2,
"type": "SAM3Segmentation",
"pos": [
1413.3547712239274,
213.48039870709997
],
"size": [
278.08203125,
266
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "sam3_model",
"type": "SAM3_MODEL",
"link": 1
},
{
"name": "image",
"type": "IMAGE",
"link": 2
},
{
"name": "positive_boxes",
"shape": 7,
"type": "SAM3_BOXES_PROMPT",
"link": null
},
{
"name": "negative_boxes",
"shape": 7,
"type": "SAM3_BOXES_PROMPT",
"link": null
},
{
"name": "positive_points",
"shape": 7,
"type": "SAM3_POINTS_PROMPT",
"link": 8
},
{
"name": "negative_points",
"shape": 7,
"type": "SAM3_POINTS_PROMPT",
"link": null
},
{
"name": "mask_prompt",
"shape": 7,
"type": "MASK",
"link": null
},
{
"name": "boxes_prompt",
"shape": 7,
"type": "SAM3_BOXES_PROMPT",
"link": null
},
{
"name": "points_prompt",
"shape": 7,
"type": "SAM3_POINTS_PROMPT",
"link": null
}
],
"outputs": [
{
"name": "masks",
"type": "MASK",
"links": [
5
]
},
{
"name": "visualization",
"type": "IMAGE",
"links": [
3
]
},
{
"name": "boxes",
"type": "STRING",
"links": [
4
]
},
{
"name": "scores",
"type": "STRING",
"links": null
}
],
"properties": {
"aux_id": "PozzettiAndrea/ComfyUI-SAM3",
"ver": "307654744fa45de98017f92710d4a9cc1b4d63de",
"Node name for S&R": "SAM3Segmentation"
},
"widgets_values": [
0.21,
"person",
-1
]
},
{
"id": 9,
"type": "SAM3PointCollector",
"pos": [
929.3727386768797,
184.97597369457938
],
"size": [
400,
480
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 7
}
],
"outputs": [
{
"name": "positive_points",
"type": "SAM3_POINTS_PROMPT",
"links": [
8
]
},
{
"name": "negative_points",
"type": "SAM3_POINTS_PROMPT",
"links": null
}
],
"properties": {
"aux_id": "PozzettiAndrea/ComfyUI-SAM3",
"ver": "64c86b0bf97593007c32df5dbc544a566d9efd9f",
"Node name for S&R": "SAM3PointCollector"
},
"widgets_values": [
"{}",
"[]",
"[]",
""
]
}
],
"links": [
[
1,
1,
0,
2,
0,
"SAM3_MODEL"
],
[
2,
4,
0,
2,
1,
"IMAGE"
],
[
3,
2,
1,
5,
0,
"IMAGE"
],
[
4,
2,
2,
6,
0,
"*"
],
[
5,
2,
0,
7,
0,
"MASK"
],
[
7,
4,
0,
9,
0,
"IMAGE"
],
[
8,
9,
0,
2,
4,
"SAM3_POINTS_PROMPT"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.0152559799477059,
"offset": [
-484.16482173037514,
102.63622043900284
]
},
"frontendVersion": "1.28.8"
},
"version": 0.4
}