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

400 lines
8.5 KiB
JSON

{
"id": "0b04cdef-0fe9-494a-baa9-ca11511022b9",
"revision": 0,
"last_node_id": 9,
"last_link_id": 8,
"nodes": [
{
"id": 4,
"type": "LoadImage",
"pos": [
535.57421875,
284.2890625
],
"size": [
274.080078125,
314
],
"flags": {},
"order": 0,
"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": 1,
"type": "LoadSAM3Model",
"pos": [
542.5579604609694,
73.29852826547737
],
"size": [
270,
130
],
"flags": {},
"order": 1,
"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",
true,
"",
"YOUR_HF_TOKEN_HERE"
]
},
{
"id": 2,
"type": "SAM3Segmentation",
"pos": [
1390.6018887428118,
223.23163405614952
],
"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,
"",
1
]
},
{
"id": 9,
"type": "SAM3PointCollector",
"pos": [
841.9151923745438,
221.41767606397147
],
"size": [
522.7453678789645,
431.1041571234509
],
"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": [
"{\"positive\":[{\"x\":439.17063605019285,\"y\":400.46567653655416},{\"x\":433.6535253018933,\"y\":461.1546362919299},{\"x\":428.1364145535937,\"y\":499.7748834089872},{\"x\":422.61930380529407,\"y\":554.9466650047834},{\"x\":441.92919142434266,\"y\":593.5669121218407},{\"x\":435.1456026524755,\"y\":310.52980372055475},{\"x\":422.40542591077593,\"y\":358.6599436366127},{\"x\":411.08082436259855,\"y\":388.38738299653085},{\"x\":391.26277165328815,\"y\":385.5561982955862},{\"x\":372.8602941374999,\"y\":395.4653447488923},{\"x\":379.93817010511077,\"y\":419.53041470692125},{\"x\":391.26277165328815,\"y\":597.89505086643},{\"x\":385.60047087919946,\"y\":621.960120824459}],\"negative\":[]}",
"[{\"x\":439.17063605019285,\"y\":400.46567653655416},{\"x\":433.6535253018933,\"y\":461.1546362919299},{\"x\":428.1364145535937,\"y\":499.7748834089872},{\"x\":422.61930380529407,\"y\":554.9466650047834},{\"x\":441.92919142434266,\"y\":593.5669121218407},{\"x\":435.1456026524755,\"y\":310.52980372055475},{\"x\":422.40542591077593,\"y\":358.6599436366127},{\"x\":411.08082436259855,\"y\":388.38738299653085},{\"x\":391.26277165328815,\"y\":385.5561982955862},{\"x\":372.8602941374999,\"y\":395.4653447488923},{\"x\":379.93817010511077,\"y\":419.53041470692125},{\"x\":391.26277165328815,\"y\":597.89505086643},{\"x\":385.60047087919946,\"y\":621.960120824459}]",
"[]",
""
]
},
{
"id": 5,
"type": "PreviewImage",
"pos": [
1716.7844918071783,
152.98480355118204
],
"size": [
438.2470473106064,
264.02426579680423
],
"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": [
1926.0526063321483,
474.44974070463036
],
"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": 7,
"type": "MaskPreview",
"pos": [
1448.285820398549,
532.667751078023
],
"size": [
374.1155742716239,
258
],
"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": []
}
],
"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": 0.8390545288824024,
"offset": [
-119.05884443644504,
61.173116165367716
]
},
"frontendVersion": "1.28.8",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}