ComfyUI Node

Mask Line Cleanup

A ComfyUI node in TJ_Vector with 5 inputs and 2 outputs.

By TJ16th·Created 9 months ago·Updated 9 months ago· 2
Mask Line Cleanup
  • mask
  • cleaned_mask
  • preview
cleanup_mode
merge_distance3
min_component_size10
strength1.0
CategoryTJ_Vector

Inputs (5)

NameTypeDefaultDescription
maskMASK
cleanup_modeCOMBO4 options: merge_close_lines, remove_duplicates, thin_only, distance_based
merge_distanceINT31–20Distance threshold for merging parallel lines
min_component_sizeINT100–1000Remove components smaller than this (0=disabled)
strengthoptFLOAT1.00.1–3Cleanup strength

Outputs (2)

NameTypeDescription
cleaned_maskMASK
previewIMAGE