Visit ComfyUI Online for ready-to-use ComfyUI environment
Extracts facial keypoints from video frames for AI animation and facial analysis tasks.
The Load_Kps_Path_From_Video
node is designed to extract keypoint sequences (KPS) from a video file, which are essential for various AI-driven animation and facial analysis tasks. This node processes each frame of the video to detect facial keypoints, ensuring that only one face is present per frame. It then saves these keypoints in a specified format, making them ready for further processing or analysis. This functionality is particularly useful for AI artists who need to work with precise facial movements and expressions derived from video content, enabling more accurate and dynamic animations.
This parameter specifies the path to the V-Express model directory, which contains the necessary models for facial keypoint detection. The correct model path ensures that the node can accurately detect and process facial keypoints. There is no specific minimum or maximum value, but it must be a valid directory path containing the required models.
This parameter indicates the path to the video file from which the keypoints will be extracted. The video file should be in a supported format such as mp4, webm, mkv, or avi. The video path must be valid and accessible for the node to function correctly.
This parameter defines the size to which each video frame will be resized before processing. It ensures that the frames are of a consistent size, which is crucial for accurate keypoint detection. The value should be an integer representing the width and height of the frame (e.g., 512 for a 512x512 frame). The default value is typically set to 512.
This output parameter provides the path to the saved keypoint sequence file. The file contains the extracted keypoints from the video, stored in a format that can be easily loaded and used for further processing. This path is essential for accessing the keypoint data for subsequent tasks.
ValueError: <kps_path> not exists! Please check the input!
AssertionError: There are <n> faces in the <frame_idx>-th frame. Only one face is supported.
FileNotFoundError: <video_path> does not exist
© Copyright 2024 RunComfy. All Rights Reserved.