Visit ComfyUI Online for ready-to-use ComfyUI environment
Save pose keypoints data in JSON format for easy storage and retrieval, aiding AI artists and developers.
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.
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.
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.
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.
pose_kps
data is correctly formatted and contains all necessary keypoints before passing it to the node.filename_prefix
to easily identify and organize your saved JSON files.pose_kps
data contains non-serializable objects, such as NumPy arrays.pose_kps
data to standard Python data types before passing them to the node. For example, convert NumPy arrays to lists.© Copyright 2024 RunComfy. All Rights Reserved.