ComfyUI > Nodes > SaltAI_AudioViz > Schedule Metrics

ComfyUI Node: Schedule Metrics

Class Name

SaltKeyframeMetrics

Category
SALT/AudioViz/Scheduling/Util
Author
SaltAI (Account age: 146days)
Extension
SaltAI_AudioViz
Latest Updated
2024-06-29
Github Stars
0.01K

How to Install SaltAI_AudioViz

Install this extension via the ComfyUI Manager by searching for SaltAI_AudioViz
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter SaltAI_AudioViz 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

Schedule Metrics Description

Analyze keyframe values for statistical metrics within specified frame range, aiding AI artists in animations and visualizations.

Schedule Metrics:

SaltKeyframeMetrics is a node designed to analyze and compute various statistical metrics from a list of keyframe values within a specified range of frames. This node is particularly useful for AI artists working with animations or audio visualizations, as it provides essential metrics such as minimum, maximum, sum, average, absolute sum, and absolute average of the keyframe values, along with the duration of the analyzed frames. By leveraging these metrics, you can gain deeper insights into the behavior and characteristics of your keyframe data, enabling more informed decisions and adjustments in your creative projects.

Schedule Metrics Input Parameters:

schedule_list

The schedule_list parameter is a list of keyframe values that you want to analyze. This list represents the values at each frame in your animation or audio visualization. The function will compute various metrics based on the values within the specified frame range. Ensure that the list contains numerical values for accurate metric calculations.

start_frame

The start_frame parameter specifies the starting frame index for the analysis. It determines the beginning of the frame range within the schedule_list that will be considered for metric computation. The default value is 0, meaning the analysis will start from the first frame. This parameter should be a non-negative integer.

end_frame

The end_frame parameter specifies the ending frame index for the analysis. It determines the end of the frame range within the schedule_list that will be considered for metric computation. If set to -1, the analysis will include all frames up to the end of the schedule_list. This parameter should be an integer, and if it exceeds the length of the schedule_list, it will be adjusted to the list's length.

frame_rate

The frame_rate parameter defines the frame rate of the animation or audio visualization. It is used to calculate the duration of the analyzed frames. The default value is 24.0 frames per second. This parameter should be a positive float value.

Schedule Metrics Output Parameters:

value_min

The value_min output parameter represents the minimum value found within the specified frame range of the schedule_list. This metric helps identify the lowest point in your keyframe data, which can be useful for understanding the range and behavior of your animation or audio visualization.

value_max

The value_max output parameter represents the maximum value found within the specified frame range of the schedule_list. This metric helps identify the highest point in your keyframe data, providing insights into the peak values of your animation or audio visualization.

value_sum

The value_sum output parameter represents the sum of all values within the specified frame range of the schedule_list. This metric gives an overall total of the keyframe values, which can be useful for understanding the cumulative effect of the values over the analyzed frames.

value_avg

The value_avg output parameter represents the average value within the specified frame range of the schedule_list. This metric provides the mean value of the keyframe data, offering insights into the central tendency of your animation or audio visualization.

abs_sum

The abs_sum output parameter represents the sum of the absolute values within the specified frame range of the schedule_list. This metric helps understand the total magnitude of the keyframe values, regardless of their direction (positive or negative).

abs_avg

The abs_avg output parameter represents the average of the absolute values within the specified frame range of the schedule_list. This metric provides the mean magnitude of the keyframe values, offering insights into the overall intensity of your animation or audio visualization.

duration

The duration output parameter represents the duration of the analyzed frames, calculated based on the frame_rate. This metric helps understand the time span of the keyframe data within the specified frame range, providing context for the other computed metrics.

Schedule Metrics Usage Tips:

  • Ensure that your schedule_list contains numerical values to avoid errors in metric computation.
  • Use the start_frame and end_frame parameters to focus the analysis on specific segments of your keyframe data, allowing for more targeted insights.
  • Adjust the frame_rate parameter to match the frame rate of your animation or audio visualization for accurate duration calculations.
  • Utilize the computed metrics to identify trends, peaks, and overall behavior in your keyframe data, enabling more informed adjustments and enhancements in your creative projects.

Schedule Metrics Common Errors and Solutions:

"ValueError: a is not a valid int, float, boolean, or schedule_list"

  • Explanation: This error occurs when the parameter a is provided with an invalid type.
  • Solution: Ensure that a is an integer, float, boolean, or a valid schedule list.

"ValueError: b is not a valid int, float, or boolean, or schedule_list"

  • Explanation: This error occurs when the parameter b is provided with an invalid type.
  • Solution: Ensure that b is an integer, float, boolean, or a valid schedule list.

"ValueError: Unsupported cond_keyframes_type: <type>"

  • Explanation: This error occurs when an unsupported keyframe type is provided.
  • Solution: Ensure that the keyframe type is one of the supported types: "linear", "sinus", "sinus_inverted", "half_sinus", or "half_sinus_inverted".

"Error evaluating index expression '<expr>': <error_message>"

  • Explanation: This error occurs when there is an issue evaluating the index expression in the keyframe schedule.
  • Solution: Check the index expression for any syntax errors or invalid references and correct them. Ensure that end_frame is specified and greater than 0 if using 'z'.

Schedule Metrics Related Nodes

Go back to the extension to check out more related nodes.
SaltAI_AudioViz
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.