Skip to main content

Colorize Facial Parts from PoseKPS

ControlNet Preprocessors/Pose Keypoint Postprocess
FacialPartColoringFromPoseKps

Example

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

NameTypeStatusConstraintsDefault
pose_kpsPOSE_KEYPOINTrequired--
modeENUM
2 options
  • point
  • polygon
required-"polygon"
skinSTRINGrequired-"rgb(0, 153, 255)"
left_eyeSTRINGrequired-"rgb(0, 204, 153)"
right_eyeSTRINGrequired-"rgb(255, 153, 0)"
noseSTRINGrequired-"rgb(255, 102, 255)"
upper_lipSTRINGrequired-"rgb(102, 0, 51)"
inner_mouthSTRINGrequired-"rgb(255, 204, 255)"
lower_lipSTRINGrequired-"rgb(255, 0, 102)"

Outputs

IndexNameTypeIs ListConnection Reference
0IMAGEIMAGENo["{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?