ComfyUI Node: FaceSkin PM

Class Name

PM_FaceSkin

Category
protrait/model
Author
THtianhao (Account age: 3700days)
Extension
ComfyUI-Portrait-Maker
Latest Updated
2024-05-22
Github Stars
0.17K

How to Install ComfyUI-Portrait-Maker

Install this extension via the ComfyUI Manager by searching for ComfyUI-Portrait-Maker
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Portrait-Maker in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

FaceSkin PM Description

Generate precise skin masks for face images, enabling targeted enhancements and modifications.

FaceSkin PM:

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.

FaceSkin PM Input Parameters:

image

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.

blur_edge

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.

blur_threshold

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.

FaceSkin PM Output Parameters:

MASK

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.

FaceSkin PM Usage Tips:

  • For best results, ensure that the input image is well-lit and the face is clearly visible. This helps the node accurately detect and segment the skin regions.
  • If you are working on tasks that require smooth transitions, such as makeup transfer, enable the blur_edge option and adjust the blur_threshold to achieve the desired level of smoothness.
  • Use the generated skin mask in combination with other nodes like PM_SkinRetouching or PM_MakeUpTransfer to enhance the overall quality of your portraits.

FaceSkin PM Common Errors and Solutions:

"Input image format not supported"

  • Explanation: The input image is not in a compatible format.
  • Solution: Ensure that the input image is provided as a tensor and follows the required format specifications.

"Face not detected in the image"

  • Explanation: The node was unable to detect a face in the input image.
  • Solution: Verify that the input image contains a clearly visible face and is well-lit. Adjust the image quality if necessary.

"Blur threshold out of range"

  • Explanation: The value provided for the blur_threshold parameter is outside the acceptable range.
  • Solution: Ensure that the blur_threshold value is between 0 and 64. Adjust the value accordingly.

"Error in generating skin mask"

  • Explanation: An internal error occurred while generating the skin mask.
  • Solution: Check the input parameters and ensure they are correctly set. If the issue persists, try using a different input image or consult the documentation for further troubleshooting steps.

FaceSkin PM Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Portrait-Maker
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.