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

356 lines
6.2 KiB
JSON

{
"id": "9e5b67d0-53dc-42aa-bdb7-541f1939e114",
"revision": 0,
"last_node_id": 7,
"last_link_id": 10,
"nodes": [
{
"id": 4,
"type": "MaskPreview",
"pos": [
1589.7307778177144,
96.54681627376111
],
"size": [
140,
246.00000000000006
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 3
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.72",
"Node name for S&R": "MaskPreview"
},
"widgets_values": []
},
{
"id": 3,
"type": "PreviewImage",
"pos": [
1581.6710130707006,
443.2242576440796
],
"size": [
312.1604553633704,
258
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 2
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.72",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 1,
"type": "LoadImage",
"pos": [
259.9558271571259,
256.4008840168279
],
"size": [
274.080078125,
314
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
1,
8
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.72",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example_image.jpg",
"image"
]
},
{
"id": 7,
"type": "SAM3BBoxCollector",
"pos": [
596.2101933426727,
358.1734897024456
],
"size": [
400,
480
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 8
}
],
"outputs": [
{
"name": "positive_bboxes",
"type": "SAM3_BOXES_PROMPT",
"links": [
9
]
},
{
"name": "negative_bboxes",
"type": "SAM3_BOXES_PROMPT",
"links": [
10
]
}
],
"properties": {
"cnr_id": "comfyui-sam3",
"ver": "aa18b50ac98ca1c2d6900d462dcf7a078b9b4a2c",
"Node name for S&R": "SAM3BBoxCollector"
},
"widgets_values": [
"[]",
"[]",
""
]
},
{
"id": 5,
"type": "LoadSAM3Model",
"pos": [
593.1541722814286,
129.00284778827395
],
"size": [
270,
82
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "sam3_model",
"type": "SAM3_MODEL",
"links": [
4
]
}
],
"properties": {
"cnr_id": "comfyui-sam3",
"ver": "aa18b50ac98ca1c2d6900d462dcf7a078b9b4a2c",
"Node name for S&R": "LoadSAM3Model"
},
"widgets_values": [
"[Download from HuggingFace]",
""
]
},
{
"id": 2,
"type": "SAM3Segmentation",
"pos": [
1141.4093405565593,
306.4225420791634
],
"size": [
278.08203125,
250
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "sam3_model",
"type": "SAM3_MODEL",
"link": 4
},
{
"name": "image",
"type": "IMAGE",
"link": 1
},
{
"name": "positive_boxes",
"shape": 7,
"type": "SAM3_BOXES_PROMPT",
"link": 9
},
{
"name": "negative_boxes",
"shape": 7,
"type": "SAM3_BOXES_PROMPT",
"link": 10
},
{
"name": "mask_prompt",
"shape": 7,
"type": "MASK",
"link": null
},
{
"name": "positive_points",
"shape": 7,
"type": "SAM3_POINTS_PROMPT",
"link": null
},
{
"name": "negative_points",
"shape": 7,
"type": "SAM3_POINTS_PROMPT",
"link": null
}
],
"outputs": [
{
"name": "masks",
"type": "MASK",
"links": [
3
]
},
{
"name": "visualization",
"type": "IMAGE",
"links": [
2
]
},
{
"name": "boxes",
"type": "STRING",
"links": null
},
{
"name": "scores",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-sam3",
"ver": "aa18b50ac98ca1c2d6900d462dcf7a078b9b4a2c",
"Node name for S&R": "SAM3Segmentation"
},
"widgets_values": [
0.3,
"",
1
]
}
],
"links": [
[
1,
1,
0,
2,
1,
"IMAGE"
],
[
2,
2,
1,
3,
0,
"IMAGE"
],
[
3,
2,
0,
4,
0,
"MASK"
],
[
4,
5,
0,
2,
0,
"SAM3_MODEL"
],
[
8,
1,
0,
7,
0,
"IMAGE"
],
[
9,
7,
0,
2,
2,
"SAM3_BOXES_PROMPT"
],
[
10,
7,
1,
2,
3,
"SAM3_BOXES_PROMPT"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.6934334949441335,
"offset": [
39.31060203728551,
188.81029138900294
]
},
"frontendVersion": "1.30.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}