ComfyUI Node
Mouth Masks (A+B) from Sapiens2 Seg
Two-mask Sapiens2 seg extractor: pick up to 4 classes per mask (e.g. mask_a = Tongue [preserve], mask_b = Upper_Teeth + Lower_Teeth [subtract from preserve]). Pair with the Sapiens2 Body-Part Segmentation node's class_id_mask output.
Mouth Masks (A+B) from Sapiens2 Seg
- class_id_mask
- mask_a
- mask_b
- selected_a
- selected_b
◄mask_a_class_1Tongue►
◄mask_a_class_2none►
◄mask_a_class_3none►
◄mask_a_class_4none►
◄mask_a_blur_radius0►
◄mask_a_grow_pixels0►
◄mask_a_fill_holesfalse►
◄mask_a_invertfalse►
◄mask_b_class_1Upper_Teeth►
◄mask_b_class_2Lower_Teeth►
◄mask_b_class_3none►
◄mask_b_class_4none►
◄mask_b_blur_radius0►
◄mask_b_grow_pixels0►
◄mask_b_fill_holesfalse►
◄mask_b_invertfalse►
◄num_classes29►
Categorymask/pose
Inputs (18)
| Name | Type | Default | Description |
|---|---|---|---|
| class_id_mask | MASK | — | |
| mask_a_class_1 | COMBO | Tongue | 30 options: none, Upper_Lip, Lower_Lip, Upper_Teeth, Lower_Teeth, Tongue, +24 |
| mask_a_class_2 | COMBO | none | 30 options: none, Upper_Lip, Lower_Lip, Upper_Teeth, Lower_Teeth, Tongue, +24 |
| mask_a_class_3 | COMBO | none | 30 options: none, Upper_Lip, Lower_Lip, Upper_Teeth, Lower_Teeth, Tongue, +24 |
| mask_a_class_4 | COMBO | none | 30 options: none, Upper_Lip, Lower_Lip, Upper_Teeth, Lower_Teeth, Tongue, +24 |
| mask_a_blur_radius | INT | 00–100 | Mask A: Gaussian blur radius for feathered edges. |
| mask_a_grow_pixels | INT | 00–200 | Mask A: dilate outward by this many pixels. |
| mask_a_fill_holes | BOOLEAN | false | Mask A: close small interior holes. |
| mask_a_invert | BOOLEAN | false | Mask A: invert the binary mask. |
| mask_b_class_1 | COMBO | Upper_Teeth | 30 options: none, Upper_Lip, Lower_Lip, Upper_Teeth, Lower_Teeth, Tongue, +24 |
| mask_b_class_2 | COMBO | Lower_Teeth | 30 options: none, Upper_Lip, Lower_Lip, Upper_Teeth, Lower_Teeth, Tongue, +24 |
| mask_b_class_3 | COMBO | none | 30 options: none, Upper_Lip, Lower_Lip, Upper_Teeth, Lower_Teeth, Tongue, +24 |
| mask_b_class_4 | COMBO | none | 30 options: none, Upper_Lip, Lower_Lip, Upper_Teeth, Lower_Teeth, Tongue, +24 |
| mask_b_blur_radius | INT | 00–100 | Mask B: Gaussian blur radius for feathered edges. |
| mask_b_grow_pixels | INT | 00–200 | Mask B: dilate outward by this many pixels. |
| mask_b_fill_holes | BOOLEAN | false | Mask B: close small interior holes. |
| mask_b_invert | BOOLEAN | false | Mask B: invert the binary mask. |
| num_classes | INT | 292–256 | Total classes in the source segmentation. Sapiens2 standard = 29. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| mask_a | MASK | — |
| mask_b | MASK | — |
| selected_a | STRING | — |
| selected_b | STRING | — |