ComfyUI Node
Mask Line Cleanup
A ComfyUI node in TJ_Vector with 5 inputs and 2 outputs.
Mask Line Cleanup
- mask
- cleaned_mask
- preview
◄cleanup_mode▾►
◄merge_distance3►
◄min_component_size10►
◄strength1.0►
CategoryTJ_Vector
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| mask | MASK | — | |
| cleanup_mode | COMBO | 4 options: merge_close_lines, remove_duplicates, thin_only, distance_based | |
| merge_distance | INT | 31–20 | Distance threshold for merging parallel lines |
| min_component_size | INT | 100–1000 | Remove components smaller than this (0=disabled) |
| strengthopt | FLOAT | 1.00.1–3 | Cleanup strength |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| cleaned_mask | MASK | — |
| preview | IMAGE | — |