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

399 lines
7.2 KiB
JSON

{
"id": "0b04cdef-0fe9-494a-baa9-ca11511022b9",
"revision": 0,
"last_node_id": 10,
"last_link_id": 10,
"nodes": [
{
"id": 1,
"type": "LoadSAM3Model",
"pos": [
542.5579604609694,
73.29852826547737
],
"size": [
270,
130
],
"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",
true,
"",
"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,
9
]
},
{
"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": 10,
"type": "SAM3BBoxCollector",
"pos": [
839.839428916497,
204.70133485214302
],
"size": [
467.8781630432254,
378.655588774223
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 9
}
],
"outputs": [
{
"name": "positive_bboxes",
"type": "SAM3_BOXES_PROMPT",
"links": [
10
]
},
{
"name": "negative_bboxes",
"type": "SAM3_BOXES_PROMPT",
"links": null
}
],
"properties": {
"aux_id": "PozzettiAndrea/ComfyUI-SAM3",
"ver": "fd50ebb19489d6456ca52f16a9f3148fe362d7dd",
"Node name for S&R": "SAM3BBoxCollector"
},
"widgets_values": [
"[{\"x1\":929.4804261719092,\"y1\":286.4583679496013,\"x2\":1217.4543732113764,\"y2\":639.4586553794664}]",
"[]",
""
]
},
{
"id": 2,
"type": "SAM3Segmentation",
"pos": [
1336.270609400984,
208.64171753010945
],
"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": 10
},
{
"name": "negative_boxes",
"shape": 7,
"type": "SAM3_BOXES_PROMPT",
"link": null
},
{
"name": "positive_points",
"shape": 7,
"type": "SAM3_POINTS_PROMPT",
"link": null
},
{
"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": 6,
"type": "PreviewAny",
"pos": [
1640.1784283096267,
439.3832264615093
],
"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": 5,
"type": "PreviewImage",
"pos": [
1634.2775904399837,
98.41074368910283
],
"size": [
383.81586147011535,
258
],
"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": 7,
"type": "MaskPreview",
"pos": [
2036.3685376402395,
108.10740865711047
],
"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": []
}
],
"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"
],
[
9,
4,
0,
10,
0,
"IMAGE"
],
[
10,
10,
0,
2,
2,
"SAM3_BOXES_PROMPT"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.0152559799477054,
"offset": [
-445.7885467463295,
46.70148676532649
]
},
"frontendVersion": "1.28.8",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}