2026-02-12 17:38:25 -05:00
2026-02-12 17:38:25 -05:00
2026-02-12 17:38:25 -05:00
2026-02-12 17:38:25 -05:00
2026-02-12 17:38:25 -05:00
2026-02-12 17:38:25 -05:00
2026-02-12 17:38:25 -05:00

OpenPose Rotator

A ComfyUI custom node that rotates OpenPose figures around their torso pivot point. The node accepts an image and optional pose keypoints, detects the torso, applies Y-axis rotation (left/right), and outputs the rotated pose image.

Features

  • Input: Image (required) + optional POSE_KEYPOINT from OpenPose/DWPose preprocessors
  • Parameters: Direction (left/right), degrees (1-360)
  • Fallback: When POSE_KEYPOINT is not provided, uses DWPose from comfyui-controlnet-aux to extract keypoints (requires that extension)
  • Error handling: Returns input image unchanged if torso cannot be detected

Installation

  1. Clone or copy this folder into your ComfyUI custom_nodes directory. Use a valid Python module name (underscores, not hyphens):

    ComfyUI/custom_nodes/open_pose_rotator/
    

    (If your folder is open-pose-rotator, rename it to open_pose_rotator so Python can import it.)

  2. Install dependencies:

    pip install -r requirements.txt
    
  3. (Optional, for image-only input) Install comfyui-controlnet-aux for DWPose fallback when pose keypoints are not connected.

Usage

  1. Add OpenPose Rotator from the node menu under image/pose
  2. Connect an OpenPose/DWPose image to the image input
  3. Optionally connect POSE_KEYPOINT from DWPose Estimator or OpenPose Pose for better accuracy
  4. Set direction (left = counterclockwise, right = clockwise when viewed from above)
  5. Set degrees (1-360)

Workflow Example

  • With keypoints: Load Image → DWPose Estimator → OpenPose Rotator (connect both IMAGE and POSE_KEYPOINT) → Apply ControlNet
  • Image only: Load Image → OpenPose Rotator → Apply ControlNet (requires comfyui-controlnet-aux for DWPose)

License

MIT

S
Description
No description provided
Readme
82 KiB
Languages
Python 100%