Garment mask · clothes parser
A mask of the clothing classes you pick, for garment swaps and fashion edits.
Discover · Wavemaker catalog
When to use it
- Mask the top to restyle a jacket.
- Mask a dress for a colourway change.
- Mask shoes or a bag for a product swap.
What you provide
- One owned still bound to source.image; one boolean binding per class, e.g. mask.Dress (Upper-clothes is on by default).
What you get
- save_mask: greyscale PNG, white = the chosen classes.
- save_cutout: RGBA PNG.
Creative guidance
- A clothing mask from the segformer_b2_clothes parser, for garment swaps and fashion edits: one boolean binding per class, any combination (mask.Upper-clothes, the default; mask.Dress, mask.Skirt, mask.Pants, mask.Belt, mask.Bag, mask.Scarf, mask.Hat, mask.Sunglasses, mask.Left-shoe/Right-shoe, mask.Hair, mask.Face, arms, legs, Background). Outputs save_mask (white = the chosen classes) and save_cutout. Upper-clothes covers a jacket and the shirt under it together; the parser missed a backwards red cap that sam3-text-mask ("red cap") traced, so use sam3-text-mask for one named garment. Runs on the masks T4 variant (masks-image-t4-20261025, one T4). Direct runs on its image 2026-10-25: sandbox start about 32 s, 2.2 s per still. Guide: examples/image-matting/README.md. Offered since 2026-12-02, after one production run by name on masks-image-t4-20261025-prd (see evidence).
Setup and requirements
- Runtime: comfy. Load the listed model weights and node dependencies.
Things to know
- Classes are fixed: a jacket and the shirt under it are both Upper-clothes.
- It can miss accessories (a backwards cap); name them with sam3-text-mask instead.
- Runs on one T4: a still is about 40 s on a cold worker (startup dominates), about 2 s warm.
Example brief
Mask his jacket and shirt so I can change them to a navy overshirt.
Source licenses and model terms continue to apply. Check runtime availability before generation.
Download source · Learn how to reuse resources