Files
PozzettiAndrea-ComfyUI-Grou…/workflows/batch_processing_sam2.json
T

411 lines
7.2 KiB
JSON

{
"id": "b29971c7-6074-4707-895e-9f2360e11e2d",
"revision": 0,
"last_node_id": 35,
"last_link_id": 48,
"nodes": [
{
"id": 18,
"type": "GroundingModelLoader",
"pos": [
761.1567094157901,
37.11377863503034
],
"size": [
272.064453125,
106
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "model",
"type": "GROUNDING_MODEL",
"links": [
27
]
}
],
"properties": {
"aux_id": "PozzettiAndrea/ComfyUI-Grounding",
"ver": "c9c72642cd7affb18d5aa54f21ee7d3acf7412eb",
"Node name for S&R": "GroundingModelLoader"
},
"widgets_values": [
"Florence-2: Large (0.77B params)",
true,
"eager"
]
},
{
"id": 31,
"type": "LoadImagesFromFolderKJ",
"pos": [
681.3852212888811,
257.2916550578389
],
"size": [
290.5201171875,
262
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
41,
43
]
},
{
"name": "mask",
"type": "MASK",
"links": null
},
{
"name": "count",
"type": "INT",
"links": null
},
{
"name": "image_path",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "1.1.8",
"Node name for S&R": "LoadImagesFromFolderKJ"
},
"widgets_values": [
"/workspace/depthy/ComfyUI/custom_nodes/ComfyUI-Grounding/docs/tobatch/",
1200,
1200,
"pad",
0,
0,
false
]
},
{
"id": 34,
"type": "MaskPreview",
"pos": [
2238.8322620750596,
-304.2753331354774
],
"size": [
140,
246
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 45
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.67",
"Node name for S&R": "MaskPreview"
},
"widgets_values": []
},
{
"id": 32,
"type": "DownloadAndLoadSAM2Model",
"pos": [
1361.2896454187016,
-358.19085905073246
],
"size": [
270,
130
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "sam2_model",
"type": "SAM2MODEL",
"links": [
42
]
}
],
"properties": {
"aux_id": "PozzettiAndrea/ComfyUI-Grounding",
"ver": "7bfc6241cba9a88ffc5ec2b837fd30d2af73d95c",
"Node name for S&R": "DownloadAndLoadSAM2Model"
},
"widgets_values": [
"sam2_hiera_large.safetensors",
"single_image",
"cuda",
"fp16"
]
},
{
"id": 30,
"type": "PreviewImage",
"pos": [
1717.3721807161592,
-103.37955289789586
],
"size": [
140,
246
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 39
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.65",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 19,
"type": "GroundingDetector",
"pos": [
1147.1057310247927,
-143.3627616665786
],
"size": [
400,
268
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "GROUNDING_MODEL",
"link": 27
},
{
"name": "image",
"type": "IMAGE",
"link": 41
}
],
"outputs": [
{
"name": "bboxes",
"type": "BBOX",
"links": [
48
]
},
{
"name": "annotated_image",
"type": "IMAGE",
"links": [
39
]
},
{
"name": "labels",
"type": "STRING",
"links": null
},
{
"name": "masks",
"type": "MASK",
"links": [
47
]
}
],
"properties": {
"aux_id": "PozzettiAndrea/ComfyUI-Grounding",
"ver": "c9c72642cd7affb18d5aa54f21ee7d3acf7412eb",
"Node name for S&R": "GroundingDetector"
},
"widgets_values": [
"main object",
0.35,
0.35,
true,
"list_only",
true
]
},
{
"id": 33,
"type": "Sam2Segmentation",
"pos": [
1780.1313139653494,
-413.51370234675784
],
"size": [
272.087890625,
254
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "sam2_model",
"type": "SAM2MODEL",
"link": 42
},
{
"name": "image",
"type": "IMAGE",
"link": 43
},
{
"name": "coordinates_positive",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "coordinates_negative",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "bboxes",
"shape": 7,
"type": "BBOX",
"link": 48
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 47
}
],
"outputs": [
{
"name": "mask",
"type": "MASK",
"links": [
45
]
}
],
"properties": {
"aux_id": "PozzettiAndrea/ComfyUI-Grounding",
"ver": "7bfc6241cba9a88ffc5ec2b837fd30d2af73d95c",
"Node name for S&R": "Sam2Segmentation"
},
"widgets_values": [
true,
false,
2,
0,
0
]
}
],
"links": [
[
27,
18,
0,
19,
0,
"GROUNDING_MODEL"
],
[
39,
19,
1,
30,
0,
"IMAGE"
],
[
41,
31,
0,
19,
1,
"IMAGE"
],
[
42,
32,
0,
33,
0,
"SAM2MODEL"
],
[
43,
31,
0,
33,
1,
"IMAGE"
],
[
45,
33,
0,
34,
0,
"MASK"
],
[
47,
19,
3,
33,
5,
"MASK"
],
[
48,
19,
0,
33,
4,
"BBOX"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9483253215897468,
"offset": [
-802.6149662434965,
550.1068245397717
]
},
"frontendVersion": "1.28.8"
},
"version": 0.4
}