Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate precise facial landmark masks using MediaPipe Face Mesh for isolating facial features in artwork.
The APersonFaceLandmarkMaskGenerator is a specialized node designed to generate precise facial landmark masks from images. Utilizing the powerful MediaPipe Face Mesh solution, this node identifies and processes facial landmarks to create masks for various facial features such as the face oval, eyebrows, eyes, pupils, and lips. This functionality is particularly beneficial for AI artists who need to isolate or highlight specific facial regions in their artwork. By providing detailed and accurate masks, the node enhances the ability to manipulate and edit facial features with high precision, making it an essential tool for advanced image processing and creative projects.
This parameter accepts the input images that you want to process. The images should be in a format compatible with the node's processing capabilities, typically as tensors or arrays. The quality and resolution of the input images can significantly impact the accuracy of the generated masks.
A boolean parameter that, when set to True
, instructs the node to generate a mask for the face oval. This mask outlines the general shape of the face, excluding other facial features. Default value is False
.
A boolean parameter that, when set to True
, instructs the node to generate a mask for the left eyebrow. This mask isolates the left eyebrow region. Default value is False
.
A boolean parameter that, when set to True
, instructs the node to generate a mask for the right eyebrow. This mask isolates the right eyebrow region. Default value is False
.
A boolean parameter that, when set to True
, instructs the node to generate a mask for the left eye. This mask isolates the left eye region. Default value is False
.
A boolean parameter that, when set to True
, instructs the node to generate a mask for the right eye. This mask isolates the right eye region. Default value is False
.
A boolean parameter that, when set to True
, instructs the node to generate a mask for the left pupil. This mask isolates the left pupil region. Default value is False
.
A boolean parameter that, when set to True
, instructs the node to generate a mask for the right pupil. This mask isolates the right pupil region. Default value is False
.
A boolean parameter that, when set to True
, instructs the node to generate a mask for the lips. This mask isolates the lip region. Default value is False
.
An integer parameter that specifies the maximum number of faces to detect in the input images. This allows the node to handle images with multiple faces. The default value is typically 1
, but it can be adjusted based on the specific requirements of your project.
A float parameter that sets the minimum detection confidence threshold for the face mesh model. This value ranges from 0.0
to 1.0
, with higher values indicating stricter confidence requirements for detecting facial landmarks. The default value is usually around 0.5
.
The output is a tensor containing the generated masks for the specified facial features. Each mask is a binary image where the detected regions are highlighted. These masks can be used for further image processing tasks, such as segmentation, editing, or applying effects to specific facial regions.
confidence
parameter to balance between detection accuracy and the inclusion of more facial landmarks.number_of_faces
parameter to handle images with multiple faces, ensuring that all desired faces are processed.face
, left_eye
, lips
) to generate masks for specific regions of interest.confidence
parameter to allow the model to detect faces with lower confidence.number_of_faces
or poor detection.number_of_faces
parameter is set correctly and that the input image contains detectable faces. Adjust the confidence
parameter if necessary.© Copyright 2024 RunComfy. All Rights Reserved.