Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate precise skin masks for face images, enabling targeted enhancements and modifications.
The PM_FaceSkin node is designed to generate a mask that isolates the skin regions of a face within an image. This node is particularly useful for tasks that require precise skin segmentation, such as portrait enhancement, makeup transfer, or skin retouching. By focusing on the skin areas, it allows for targeted modifications and enhancements, ensuring that changes are applied only where needed. The node leverages advanced face detection and segmentation techniques to accurately identify and mask skin regions, providing a reliable foundation for further image processing tasks.
This parameter accepts the input image in which the face skin regions need to be identified. The image should be in a format compatible with the node's processing capabilities, typically a tensor representation of the image.
This boolean parameter determines whether the edges of the skin mask should be blurred. Enabling this option can help create a more natural transition between the skin and non-skin areas, which is particularly useful in applications like makeup transfer or skin retouching. The default value is False
, with True
enabling the blur effect.
This integer parameter sets the intensity of the blur effect applied to the edges of the skin mask. It is only relevant if blur_edge
is enabled. The value ranges from 0 to 64, with a default value of 32. A higher value results in a stronger blur effect, which can help in creating smoother transitions.
The output of this node is a mask that highlights the skin regions of the face within the input image. This mask can be used in subsequent image processing tasks to apply targeted modifications to the skin areas, ensuring that changes are confined to the desired regions.
blur_edge
option and adjust the blur_threshold
to achieve the desired level of smoothness.blur_threshold
parameter is outside the acceptable range.blur_threshold
value is between 0 and 64. Adjust the value accordingly.© Copyright 2024 RunComfy. All Rights Reserved.