ComfyUI  >  Nodes  >  ComfyUI's ControlNet Auxiliary Preprocessors >  Colorize Facial Parts from PoseKPS

ComfyUI Node: Colorize Facial Parts from PoseKPS

Class Name

FacialPartColoringFromPoseKps

Category
ControlNet Preprocessors/Pose Keypoint Postprocess
Author
Fannovel16 (Account age: 3127 days)
Extension
ComfyUI's ControlNet Auxiliary Preproces...
Latest Updated
6/18/2024
Github Stars
1.6K

How to Install ComfyUI's ControlNet Auxiliary Preprocessors

Install this extension via the ComfyUI Manager by searching for  ComfyUI's ControlNet Auxiliary Preprocessors
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI's ControlNet Auxiliary Preprocessors 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 Cloud 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

Colorize Facial Parts from PoseKPS Description

Enhance AI art with custom facial part coloring based on pose keypoints for detailed and stylized illustrations.

Colorize Facial Parts from PoseKPS:

The FacialPartColoringFromPoseKps node is designed to enhance your AI art projects by colorizing specific facial parts based on pose keypoints. This node takes pose keypoints as input and applies distinct colors to various facial regions such as the eyes, nose, lips, and skin. By leveraging this node, you can create visually appealing and detailed facial illustrations that highlight different facial features with customized colors. This functionality is particularly useful for generating stylized portraits, enhancing character designs, or creating unique visual effects in your AI-generated artwork.

Colorize Facial Parts from PoseKPS Input Parameters:

pose_kps

This parameter represents the pose keypoints of the face, which are essential for identifying the locations of various facial parts. The keypoints should be provided in a format that the node can interpret, typically as a list of dictionaries containing the coordinates of facial landmarks. These keypoints guide the node in accurately applying colors to the corresponding facial regions.

mode

The mode parameter determines how the colors are applied to the facial parts. It accepts two options: "point" and "polygon". In "point" mode, the node will colorize individual keypoints, creating a dotted effect. In "polygon" mode, the node will fill the entire area of each facial part with the specified color, resulting in a more solid and continuous appearance. The default value is "polygon".

skin

This parameter specifies the color to be applied to the skin region of the face. The color should be provided as a string in RGB format, such as "rgb(0, 153, 255)". The default value is "rgb(0, 153, 255)".

left_eye

This parameter specifies the color to be applied to the left eye region. The color should be provided as a string in RGB format. The default value is "rgb(0, 204, 153)".

right_eye

This parameter specifies the color to be applied to the right eye region. The color should be provided as a string in RGB format. The default value is "rgb(255, 153, 0)".

nose

This parameter specifies the color to be applied to the nose region. The color should be provided as a string in RGB format. The default value is "rgb(255, 102, 255)".

upper_lip

This parameter specifies the color to be applied to the upper lip region. The color should be provided as a string in RGB format. The default value is "rgb(102, 0, 51)".

inner_mouth

This parameter specifies the color to be applied to the inner mouth region. The color should be provided as a string in RGB format. The default value is "rgb(255, 204, 255)".

lower_lip

This parameter specifies the color to be applied to the lower lip region. The color should be provided as a string in RGB format. The default value is "rgb(255, 0, 102)".

Colorize Facial Parts from PoseKPS Output Parameters:

IMAGE

The output of this node is an image with the facial parts colorized according to the specified parameters. The image is returned as a tensor, with pixel values normalized between 0 and 1. This output can be directly used in further processing steps or visualized to inspect the colorization results.

Colorize Facial Parts from PoseKPS Usage Tips:

  • To achieve a more stylized look, experiment with different color combinations for the facial parts.
  • Use the "polygon" mode for a more solid and continuous color application, which is ideal for creating cartoon-like effects.
  • If you want to highlight specific facial features, use the "point" mode to create a dotted effect that draws attention to individual keypoints.

Colorize Facial Parts from PoseKPS Common Errors and Solutions:

Invalid keypoints format

  • Explanation: The pose keypoints provided are not in the expected format.
  • Solution: Ensure that the keypoints are provided as a list of dictionaries with the correct coordinates for each facial landmark.

Color format error

  • Explanation: The color specified for a facial part is not in the correct RGB string format.
  • Solution: Verify that the color is provided as a string in the format "rgb(R, G, B)", where R, G, and B are integers between 0 and 255.

Mode not recognized

  • Explanation: The mode specified is not one of the accepted values ("point" or "polygon").
  • Solution: Ensure that the mode parameter is set to either "point" or "polygon".

Colorize Facial Parts from PoseKPS Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI's ControlNet Auxiliary Preprocessors
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.