Files
inventorado7 f2fc83e72a Initial commit: ComfyUI-GROUT custom nodes
Add GROUT segmentation nodes for mosaic grout line detection:
- GROUTSegmentation: Main segmentation node with scale and sliding window modes
- GROUTThreshold: Threshold adjustment without re-running inference
- GROUTHeatmapColorize: Colormap visualization for probability heatmaps

Features:
- Auto-download model from HuggingFace
- Scale mode: resize to 512x512 for inference
- Sliding window mode: process large images with overlapping patches
- Configurable patch size and overlap settings
2026-01-09 10:57:05 +01:00

371 lines
6.6 KiB
JSON

{
"id": "394b6835-e282-4241-9fa2-59aabf7df0da",
"revision": 0,
"last_node_id": 8,
"last_link_id": 12,
"nodes": [
{
"id": 7,
"type": "GROUTSegmentation",
"pos": [
768.0085833444832,
784.4327141076791
],
"size": [
270,
218
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 8
}
],
"outputs": [
{
"name": "probability_heatmap",
"type": "IMAGE",
"links": [
9,
11
]
},
{
"name": "binary_mask",
"type": "IMAGE",
"links": [
10
]
},
{
"name": "mask",
"type": "MASK",
"links": null
}
],
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
},
"Node name for S&R": "GROUTSegmentation"
},
"widgets_values": [
"cuda",
"sliding_window",
0.5,
512,
64,
""
]
},
{
"id": 3,
"type": "PreviewImage",
"pos": [
1162.2081867641314,
937.443471316358
],
"size": [
140,
246
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 10
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "PreviewImage",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": []
},
{
"id": 4,
"type": "PreviewImage",
"pos": [
1341.5829607761143,
940.1493486808127
],
"size": [
140,
246
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 12
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "PreviewImage",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": []
},
{
"id": 8,
"type": "GROUTHeatmapColorize",
"pos": [
1152.6806997969234,
797.2947195049701
],
"size": [
317.595703125,
58
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "probability_heatmap",
"type": "IMAGE",
"link": 11
}
],
"outputs": [
{
"name": "colored_heatmap",
"type": "IMAGE",
"links": [
12
]
}
],
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
},
"Node name for S&R": "GROUTHeatmapColorize"
},
"widgets_values": [
"magma"
]
},
{
"id": 5,
"type": "PreviewImage",
"pos": [
1508.9229534605865,
618.2975674422908
],
"size": [
140,
246
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 3
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "PreviewImage",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": []
},
{
"id": 2,
"type": "GROUTThreshold",
"pos": [
1154.7590602353637,
629.2287088404976
],
"size": [
290.0625,
78
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "probability_heatmap",
"type": "IMAGE",
"link": 9
}
],
"outputs": [
{
"name": "binary_mask",
"type": "IMAGE",
"links": [
3
]
},
{
"name": "mask",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "GROUTThreshold",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": [
0.7
]
},
{
"id": 6,
"type": "LoadImage",
"pos": [
405.75621728266793,
574.4550289159092
],
"size": [
282.798828125,
314
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
8
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "LoadImage",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": [
"fish_mosaic.png",
"image"
]
}
],
"links": [
[
3,
2,
0,
5,
0,
"IMAGE"
],
[
8,
6,
0,
7,
0,
"IMAGE"
],
[
9,
7,
0,
2,
0,
"IMAGE"
],
[
10,
7,
1,
3,
0,
"IMAGE"
],
[
11,
7,
0,
8,
0,
"IMAGE"
],
[
12,
8,
0,
4,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"workflowRendererVersion": "LG",
"ue_links": [],
"links_added_by_ue": [],
"ds": {
"scale": 1.2284597357367253,
"offset": [
-151.1057048390746,
-413.336123673351
]
},
"frontendVersion": "1.34.9",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}