Files
PozzettiAndrea-ComfyUI-SAM3/workflows/image_seg_point_refinement.json
T
2026-02-20 19:13:11 +01:00

590 lines
10 KiB
JSON

{
"id": "9e5b67d0-53dc-42aa-bdb7-541f1939e114",
"revision": 0,
"last_node_id": 28,
"last_link_id": 58,
"nodes": [
{
"id": 12,
"type": "LoadSAM3Model",
"pos": [
619.424717299163,
120.03196674570798
],
"size": [
270,
82
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "sam3_model",
"type": "SAM3_MODEL",
"links": [
46,
51
]
}
],
"properties": {
"cnr_id": "comfyui-sam3",
"ver": "82c8e4f88a6c0a9242712b827e05f5e67c4a90a7",
"Node name for S&R": "LoadSAM3Model"
},
"widgets_values": [
"auto",
"auto"
]
},
{
"id": 1,
"type": "LoadImage",
"pos": [
487.38811339518077,
311.4558528794742
],
"size": [
274.080078125,
314
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
27,
47,
52
]
},
{
"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": 3,
"type": "PreviewImage",
"pos": [
1762.5681706966186,
-160.2715673533804
],
"size": [
312.1604553633704,
258
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 50
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.72",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 23,
"type": "SAM3Segmentation",
"pos": [
1268.1813021918254,
134.43797048498908
],
"size": [
276.060546875,
210
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "sam3_model",
"type": "SAM3_MODEL",
"link": 46
},
{
"name": "image",
"type": "IMAGE",
"link": 47
},
{
"name": "positive_points",
"shape": 7,
"type": "SAM3_POINTS_PROMPT",
"link": 48
},
{
"name": "negative_points",
"shape": 7,
"type": "SAM3_POINTS_PROMPT",
"link": null
},
{
"name": "box",
"shape": 7,
"type": "SAM3_BOXES_PROMPT",
"link": null
}
],
"outputs": [
{
"name": "mask",
"type": "MASK",
"links": []
},
{
"name": "mask_logits",
"type": "MASK",
"links": null
},
{
"name": "visualization",
"type": "IMAGE",
"links": [
50,
55
]
},
{
"name": "boxes",
"type": "STRING",
"links": null
},
{
"name": "scores",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-sam3",
"ver": "052f936081559c811a20885073bf8232aab14144",
"Node name for S&R": "SAM3Segmentation"
},
"widgets_values": [
0,
false,
false,
false
]
},
{
"id": 24,
"type": "SAM3Segmentation",
"pos": [
1274.402702632252,
462.572940116152
],
"size": [
276.4186749351836,
210
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "sam3_model",
"type": "SAM3_MODEL",
"link": 51
},
{
"name": "image",
"type": "IMAGE",
"link": 52
},
{
"name": "positive_points",
"shape": 7,
"type": "SAM3_POINTS_PROMPT",
"link": 53
},
{
"name": "negative_points",
"shape": 7,
"type": "SAM3_POINTS_PROMPT",
"link": null
},
{
"name": "box",
"shape": 7,
"type": "SAM3_BOXES_PROMPT",
"link": null
}
],
"outputs": [
{
"name": "mask",
"type": "MASK",
"links": []
},
{
"name": "mask_logits",
"type": "MASK",
"links": null
},
{
"name": "visualization",
"type": "IMAGE",
"links": [
56
]
},
{
"name": "boxes",
"type": "STRING",
"links": null
},
{
"name": "scores",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-sam3",
"ver": "052f936081559c811a20885073bf8232aab14144",
"Node name for S&R": "SAM3Segmentation"
},
"widgets_values": [
4,
false,
false,
false
]
},
{
"id": 26,
"type": "ImageCrop",
"pos": [
1652.5625351888166,
182.5401398642125
],
"size": [
270,
130
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 55
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
58
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.75",
"Node name for S&R": "ImageCrop"
},
"widgets_values": [
128,
128,
350,
384
]
},
{
"id": 27,
"type": "ImageCrop",
"pos": [
1607.1480363979374,
461.68996801387937
],
"size": [
270,
130
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 56
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
57
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.75",
"Node name for S&R": "ImageCrop"
},
"widgets_values": [
128,
128,
350,
384
]
},
{
"id": 15,
"type": "SAM3PointCollector",
"pos": [
841.0615574123426,
358.78428795221674
],
"size": [
400,
480
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 27
}
],
"outputs": [
{
"name": "positive_points",
"type": "SAM3_POINTS_PROMPT",
"links": [
48,
53
]
},
{
"name": "negative_points",
"type": "SAM3_POINTS_PROMPT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-sam3",
"ver": "82c8e4f88a6c0a9242712b827e05f5e67c4a90a7",
"Node name for S&R": "SAM3PointCollector"
},
"widgets_values": [
"{\"positive\":[{\"x\":426.27735719657574,\"y\":321.42611685978835},{\"x\":417.13743597288953,\"y\":407.3413796907987},{\"x\":431.76130993078743,\"y\":549.9241563039649}],\"negative\":[]}",
"[{\"x\":426.27735719657574,\"y\":321.42611685978835},{\"x\":417.13743597288953,\"y\":407.3413796907987},{\"x\":431.76130993078743,\"y\":549.9241563039649}]",
"[]",
""
]
},
{
"id": 25,
"type": "PreviewImage",
"pos": [
1921.4050155323594,
509.559669844241
],
"size": [
210,
258
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 57
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.75",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 28,
"type": "PreviewImage",
"pos": [
1941.177283679683,
174.50779670935322
],
"size": [
210,
258
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 58
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.75",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
}
],
"links": [
[
27,
1,
0,
15,
0,
"IMAGE"
],
[
46,
12,
0,
23,
0,
"SAM3_MODEL"
],
[
47,
1,
0,
23,
1,
"IMAGE"
],
[
48,
15,
0,
23,
2,
"SAM3_POINTS_PROMPT"
],
[
50,
23,
2,
3,
0,
"IMAGE"
],
[
51,
12,
0,
24,
0,
"SAM3_MODEL"
],
[
52,
1,
0,
24,
1,
"IMAGE"
],
[
53,
15,
0,
24,
2,
"SAM3_POINTS_PROMPT"
],
[
55,
23,
2,
26,
0,
"IMAGE"
],
[
56,
24,
2,
27,
0,
"IMAGE"
],
[
57,
27,
0,
25,
0,
"IMAGE"
],
[
58,
26,
0,
28,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.6594096011968518,
"offset": [
-50.36107771846349,
469.56130010922163
]
},
"frontendVersion": "1.32.9",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true,
"workflowRendererVersion": "LG"
},
"version": 0.4
}