ComfyUI Node: Save Pose Keypoints

Class Name

SavePoseKpsAsJsonFile

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

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 Online 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

Save Pose Keypoints Description

Save pose keypoints data in JSON format for easy storage and retrieval, aiding AI artists and developers.

Save Pose Keypoints:

The SavePoseKpsAsJsonFile node is designed to save pose keypoints data into a JSON file. This node is particularly useful for AI artists and developers working with pose estimation data, as it allows for easy storage and retrieval of keypoint information. By saving the keypoints in a structured JSON format, you can efficiently manage and utilize pose data for various applications, such as animation, motion capture, and further processing in machine learning models. The node ensures that the keypoints are saved with a specified filename prefix, making it easier to organize and identify the files.

Save Pose Keypoints Input Parameters:

pose_kps

The pose_kps parameter represents the pose keypoints data that you want to save. This data is typically in the format of a list of dictionaries, where each dictionary contains keypoints for different parts of the body, such as pose_keypoints_2d, face_keypoints_2d, hand_left_keypoints_2d, and hand_right_keypoints_2d. The keypoints are usually represented as a list of coordinates with confidence scores. This parameter is crucial as it holds the actual data that will be written to the JSON file.

filename_prefix

The filename_prefix parameter is a string that specifies the prefix for the filename of the saved JSON file. By default, this prefix is set to "PoseKeypoint". This parameter allows you to customize the naming convention of your saved files, making it easier to organize and identify them. The prefix will be appended with additional information such as a counter to ensure unique filenames.

Save Pose Keypoints Output Parameters:

None

This node does not produce any direct output parameters. Its primary function is to save the provided pose keypoints data into a JSON file, and it does not return any values upon completion.

Save Pose Keypoints Usage Tips:

  • Ensure that the pose_kps data is correctly formatted and contains all necessary keypoints before passing it to the node.
  • Use a meaningful filename_prefix to easily identify and organize your saved JSON files.
  • Verify that the output directory specified in the node's configuration is accessible and has write permissions to avoid file saving errors.

Save Pose Keypoints Common Errors and Solutions:

"FileNotFoundError: [Errno 2] No such file or directory"

  • Explanation: This error occurs when the specified output directory does not exist or is not accessible.
  • Solution: Ensure that the output directory exists and has the necessary write permissions. You can check and create the directory if it does not exist.

"TypeError: Object of type 'ndarray' is not JSON serializable"

  • Explanation: This error occurs when the pose_kps data contains non-serializable objects, such as NumPy arrays.
  • Solution: Convert any non-serializable objects in the pose_kps data to standard Python data types before passing them to the node. For example, convert NumPy arrays to lists.

"PermissionError: [Errno 13] Permission denied"

  • Explanation: This error occurs when the node does not have the necessary permissions to write to the specified output directory.
  • Solution: Check the permissions of the output directory and ensure that the node has write access. You may need to change the directory permissions or choose a different directory.

Save Pose Keypoints 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.