Colorize Facial Parts from PoseKPS
ControlNet Preprocessors/Pose Keypoint Postprocess
FacialPartColoringFromPoseKpsExample
JSON Example
{
"class_type": "FacialPartColoringFromPoseKps",
"inputs": {
"pose_kps": [
"node_id",
0
],
"mode": "polygon",
"skin": "rgb(0, 153, 255)",
"left_eye": "rgb(0, 204, 153)",
"right_eye": "rgb(255, 153, 0)",
"nose": "rgb(255, 102, 255)",
"upper_lip": "rgb(102, 0, 51)",
"inner_mouth": "rgb(255, 204, 255)",
"lower_lip": "rgb(255, 0, 102)"
}
}This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.
Inputs
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
pose_kps | POSE_KEYPOINT | required | - | - |
mode | ENUM2 options
| required | - | "polygon" |
skin | STRING | required | - | "rgb(0, 153, 255)" |
left_eye | STRING | required | - | "rgb(0, 204, 153)" |
right_eye | STRING | required | - | "rgb(255, 153, 0)" |
nose | STRING | required | - | "rgb(255, 102, 255)" |
upper_lip | STRING | required | - | "rgb(102, 0, 51)" |
inner_mouth | STRING | required | - | "rgb(255, 204, 255)" |
lower_lip | STRING | required | - | "rgb(255, 0, 102)" |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | IMAGE | IMAGE | No | ["{node_id}", 0] |
How to connect to these outputs
To connect another node's input to an output from this node, use the connection reference format:
["node_id", output_index]Where node_id is the ID of this FacialPartColoringFromPoseKps node in your workflow, and output_index is the index from the table above.
Example
If this node has ID "5" in your workflow:
IMAGE (IMAGE):["5", 0]
Was this page helpful?