Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add node to render openpose kps JSON #381

Merged
merged 4 commits into from
Jun 21, 2024
Merged

Conversation

huchenlei
Copy link
Contributor

This PR adds 2 render nodes to convert openpose keypoints JSON to image. This can be useful for openpose editor.

image

def decode_json_as_poses(
pose_json: dict,
) -> Tuple[List[PoseResult], List[AnimalPoseResult], int, int]:
"""Decode the json_string complying with the openpose JSON output format
to poses that controlnet recognizes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sync with impl in sd-webui-controlnet. This function is not used anywhere else in the repo.

@Fannovel16 Fannovel16 merged commit 4b18c70 into Fannovel16:main Jun 21, 2024
@huchenlei huchenlei deleted the render branch June 21, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants