ComfyUI Node: Mouth Masks (A+B) from Sapiens2 Seg

Authored by Jalen-Brunson

Created

Updated

1 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Category

mask/pose

Inputs

class_id_mask MASK
mask_a_class_1
  • none
  • Upper_Lip
  • Lower_Lip
  • Upper_Teeth
  • Lower_Teeth
  • Tongue
  • Face_Neck
  • Hair
  • Eyeglass
  • Background
  • Apparel
  • Left_Foot
  • Left_Hand
  • Left_Lower_Arm
  • Left_Lower_Leg
  • Left_Shoe
  • Left_Sock
  • Left_Upper_Arm
  • Left_Upper_Leg
  • Lower_Clothing
  • Right_Foot
  • Right_Hand
  • Right_Lower_Arm
  • Right_Lower_Leg
  • Right_Shoe
  • Right_Sock
  • Right_Upper_Arm
  • Right_Upper_Leg
  • Torso
  • Upper_Clothing
mask_a_class_2
  • none
  • Upper_Lip
  • Lower_Lip
  • Upper_Teeth
  • Lower_Teeth
  • Tongue
  • Face_Neck
  • Hair
  • Eyeglass
  • Background
  • Apparel
  • Left_Foot
  • Left_Hand
  • Left_Lower_Arm
  • Left_Lower_Leg
  • Left_Shoe
  • Left_Sock
  • Left_Upper_Arm
  • Left_Upper_Leg
  • Lower_Clothing
  • Right_Foot
  • Right_Hand
  • Right_Lower_Arm
  • Right_Lower_Leg
  • Right_Shoe
  • Right_Sock
  • Right_Upper_Arm
  • Right_Upper_Leg
  • Torso
  • Upper_Clothing
mask_a_class_3
  • none
  • Upper_Lip
  • Lower_Lip
  • Upper_Teeth
  • Lower_Teeth
  • Tongue
  • Face_Neck
  • Hair
  • Eyeglass
  • Background
  • Apparel
  • Left_Foot
  • Left_Hand
  • Left_Lower_Arm
  • Left_Lower_Leg
  • Left_Shoe
  • Left_Sock
  • Left_Upper_Arm
  • Left_Upper_Leg
  • Lower_Clothing
  • Right_Foot
  • Right_Hand
  • Right_Lower_Arm
  • Right_Lower_Leg
  • Right_Shoe
  • Right_Sock
  • Right_Upper_Arm
  • Right_Upper_Leg
  • Torso
  • Upper_Clothing
mask_a_class_4
  • none
  • Upper_Lip
  • Lower_Lip
  • Upper_Teeth
  • Lower_Teeth
  • Tongue
  • Face_Neck
  • Hair
  • Eyeglass
  • Background
  • Apparel
  • Left_Foot
  • Left_Hand
  • Left_Lower_Arm
  • Left_Lower_Leg
  • Left_Shoe
  • Left_Sock
  • Left_Upper_Arm
  • Left_Upper_Leg
  • Lower_Clothing
  • Right_Foot
  • Right_Hand
  • Right_Lower_Arm
  • Right_Lower_Leg
  • Right_Shoe
  • Right_Sock
  • Right_Upper_Arm
  • Right_Upper_Leg
  • Torso
  • Upper_Clothing
mask_a_blur_radius INT
mask_a_grow_pixels INT
mask_a_fill_holes BOOLEAN
mask_a_invert BOOLEAN
mask_b_class_1
  • none
  • Upper_Lip
  • Lower_Lip
  • Upper_Teeth
  • Lower_Teeth
  • Tongue
  • Face_Neck
  • Hair
  • Eyeglass
  • Background
  • Apparel
  • Left_Foot
  • Left_Hand
  • Left_Lower_Arm
  • Left_Lower_Leg
  • Left_Shoe
  • Left_Sock
  • Left_Upper_Arm
  • Left_Upper_Leg
  • Lower_Clothing
  • Right_Foot
  • Right_Hand
  • Right_Lower_Arm
  • Right_Lower_Leg
  • Right_Shoe
  • Right_Sock
  • Right_Upper_Arm
  • Right_Upper_Leg
  • Torso
  • Upper_Clothing
mask_b_class_2
  • none
  • Upper_Lip
  • Lower_Lip
  • Upper_Teeth
  • Lower_Teeth
  • Tongue
  • Face_Neck
  • Hair
  • Eyeglass
  • Background
  • Apparel
  • Left_Foot
  • Left_Hand
  • Left_Lower_Arm
  • Left_Lower_Leg
  • Left_Shoe
  • Left_Sock
  • Left_Upper_Arm
  • Left_Upper_Leg
  • Lower_Clothing
  • Right_Foot
  • Right_Hand
  • Right_Lower_Arm
  • Right_Lower_Leg
  • Right_Shoe
  • Right_Sock
  • Right_Upper_Arm
  • Right_Upper_Leg
  • Torso
  • Upper_Clothing
mask_b_class_3
  • none
  • Upper_Lip
  • Lower_Lip
  • Upper_Teeth
  • Lower_Teeth
  • Tongue
  • Face_Neck
  • Hair
  • Eyeglass
  • Background
  • Apparel
  • Left_Foot
  • Left_Hand
  • Left_Lower_Arm
  • Left_Lower_Leg
  • Left_Shoe
  • Left_Sock
  • Left_Upper_Arm
  • Left_Upper_Leg
  • Lower_Clothing
  • Right_Foot
  • Right_Hand
  • Right_Lower_Arm
  • Right_Lower_Leg
  • Right_Shoe
  • Right_Sock
  • Right_Upper_Arm
  • Right_Upper_Leg
  • Torso
  • Upper_Clothing
mask_b_class_4
  • none
  • Upper_Lip
  • Lower_Lip
  • Upper_Teeth
  • Lower_Teeth
  • Tongue
  • Face_Neck
  • Hair
  • Eyeglass
  • Background
  • Apparel
  • Left_Foot
  • Left_Hand
  • Left_Lower_Arm
  • Left_Lower_Leg
  • Left_Shoe
  • Left_Sock
  • Left_Upper_Arm
  • Left_Upper_Leg
  • Lower_Clothing
  • Right_Foot
  • Right_Hand
  • Right_Lower_Arm
  • Right_Lower_Leg
  • Right_Shoe
  • Right_Sock
  • Right_Upper_Arm
  • Right_Upper_Leg
  • Torso
  • Upper_Clothing
mask_b_blur_radius INT
mask_b_grow_pixels INT
mask_b_fill_holes BOOLEAN
mask_b_invert BOOLEAN
num_classes INT

Outputs

MASK

MASK

STRING

STRING

Extension: lip_mask_from_pose

A ComfyUI custom node that generates precise mouth and lip masks from DWPose output with multiple mask modes for inpainting teeth, lips, or mouth regions.

Authored by Jalen-Brunson

Looking for a different node?

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Learn more