Nodes/NH-Nodes/Garment Segment (NH)
ComfyUI Node

Garment Segment (NH)

A ComfyUI node in NH-Nodes/Vision with 7 inputs and 3 outputs.

By jetthuangai·Created 5 months ago·Updated about 14 hours ago· 6
Garment Segment (NH)
  • image
  • mask
  • cutout_rgba
  • mask_image
partupper_garment
attach_partstrue
mask_expand0
mask_blur0
fill_holesfalse
devicecuda
CategoryNH-Nodes/Vision

Inputs (7)

NameTypeDefaultDescription
imageIMAGE
partCOMBOupper_garment4 options: upper_garment, lower_garment, footwear, headwear
attach_partsBOOLEANtrueMerge pockets, zippers, bows, ruffles... that touch the selected garment.
mask_expandINT0-64–64Grow (+) or shrink (-) the mask by N pixels.
mask_blurINT00–64Feather the mask edge by N pixels.
fill_holesBOOLEANfalseFill enclosed holes. Off for garments by default: an arm across the torso would be filled in.
deviceCOMBOcuda2 options: cuda, cpu

Outputs (3)

NameTypeDescription
maskMASK
cutout_rgbaIMAGE
mask_imageIMAGE