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

242 lines
4.4 KiB
JSON

{
"id": "0b04cdef-0fe9-494a-baa9-ca11511022b9",
"revision": 0,
"last_node_id": 29,
"last_link_id": 47,
"nodes": [
{
"id": 4,
"type": "LoadImage",
"pos": [
720.7491930551824,
325.65793973839186
],
"size": [
274.080078125,
314
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
25
]
},
{
"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": 18,
"type": "SAM3Segmentation",
"pos": [
1309.4661214302075,
206.671144627115
],
"size": [
278.08203125,
226
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "sam3_model",
"type": "SAM3_MODEL",
"link": 26
},
{
"name": "image",
"type": "IMAGE",
"link": 25
},
{
"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": null
},
{
"name": "negative_points",
"shape": 7,
"type": "SAM3_POINTS_PROMPT",
"link": null
},
{
"name": "mask_prompt",
"shape": 7,
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "masks",
"type": "MASK",
"links": null
},
{
"name": "visualization",
"type": "IMAGE",
"links": [
24
]
},
{
"name": "boxes",
"type": "STRING",
"links": null
},
{
"name": "scores",
"type": "STRING",
"links": null
}
],
"properties": {
"aux_id": "PozzettiAndrea/ComfyUI-SAM3",
"ver": "64c86b0bf97593007c32df5dbc544a566d9efd9f",
"Node name for S&R": "SAM3Segmentation"
},
"widgets_values": [
0.2,
"person",
-1
]
},
{
"id": 17,
"type": "PreviewImage",
"pos": [
1648.8953137727447,
219.4458276661956
],
"size": [
395.6990602639653,
274.17023545280983
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 24
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.70",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 1,
"type": "LoadSAM3Model",
"pos": [
714.9282822876021,
89.05810054676962
],
"size": [
270,
130
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "sam3_model",
"type": "SAM3_MODEL",
"links": [
26
]
}
],
"properties": {
"aux_id": "PozzettiAndrea/ComfyUI-SAM3",
"ver": "307654744fa45de98017f92710d4a9cc1b4d63de",
"Node name for S&R": "LoadSAM3Model"
},
"widgets_values": [
"auto",
true,
"",
"YOUR_HF_TOKEN_HERE"
]
}
],
"links": [
[
24,
18,
1,
17,
0,
"IMAGE"
],
[
25,
4,
0,
18,
1,
"IMAGE"
],
[
26,
1,
0,
18,
0,
"SAM3_MODEL"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.0152559799477074,
"offset": [
-477.84258481692046,
-0.7367579498853374
]
},
"frontendVersion": "1.28.8"
},
"version": 0.4
}