ComfyUI Node
Lip Mask from Sapiens2 Pose
Lip/mouth mask from Sapiens2 308-keypoint pose. Select up to 4 named regions (outer/inner top/bottom lip, mouth corners, cupid bow, etc.); selected regions are unioned. Sapiens2 has no tongue/teeth keypoints — use MouthMaskFromSapiens2Seg for those.
Lip Mask from Sapiens2 Pose
- pose_keypoint
- mask
- centroid_x_list
- centroid_y_list
- fallback_active_list
◄region_1full_inner_lip►
◄region_2none►
◄region_3none►
◄region_4none►
◄blur_radius5►
◄grow_pixels0►
◄point_radius6►
◄person_index0►
◄confidence_threshold0.30►
◄auto_fallbacktrue►
◄fallback_area_threshold0.15►
◄fallback_pad_h1.20►
◄fallback_pad_v1.30►
Categorymask/pose
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| pose_keypoint | POSE_KEYPOINT | — | |
| region_1 | COMBO | full_inner_lip | 14 options: full_outer_lip, full_inner_lip, full_mouth, lips_only, outer_top_lip, outer_bottom_lip, +8 |
| region_2 | COMBO | none | 14 options: full_outer_lip, full_inner_lip, full_mouth, lips_only, outer_top_lip, outer_bottom_lip, +8 |
| region_3 | COMBO | none | 14 options: full_outer_lip, full_inner_lip, full_mouth, lips_only, outer_top_lip, outer_bottom_lip, +8 |
| region_4 | COMBO | none | 14 options: full_outer_lip, full_inner_lip, full_mouth, lips_only, outer_top_lip, outer_bottom_lip, +8 |
| blur_radius | INT | 50–100 | Gaussian blur radius for feathered edges. 0 = hard edge. |
| grow_pixels | INT | 00–200 | Dilate the unioned mask outward by this many pixels. |
| point_radius | INT | 61–100 | Disk radius used when a selected region is point-based (mouth_corners, cupid_bow, inner_centers). |
| person_index | INT | 0-1–99 | Which detected person to use (0 = first). -1 = union all people. |
| confidence_threshold | FLOAT | 0.300–1 | Skip a person/frame when avg lip-keypoint score is below this. |
| auto_fallback | BOOLEAN | true | Fall back to an anchor-based ellipse when the inner ring collapses (puckered/occluded lips). |
| fallback_area_threshold | FLOAT | 0.150.01–1 | Inner-ring area / outer-ring area below which the ring is considered collapsed. |
| fallback_pad_h | FLOAT | 1.200.5–3 | Horizontal scale for the fallback ellipse. |
| fallback_pad_v | FLOAT | 1.300.5–3 | Vertical scale for the fallback ellipse. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |
| centroid_x_list | FLOAT | — |
| centroid_y_list | FLOAT | — |
| fallback_active_list | BOOLEAN | — |