ComfyUI > Nodes > KJNodes for ComfyUI > Weight Schedule Convert

ComfyUI Node: Weight Schedule Convert

Class Name

WeightScheduleConvert

Category
KJNodes/weights
Author
kijai (Account age: 2192days)
Extension
KJNodes for ComfyUI
Latest Updated
2024-06-25
Github Stars
0.35K

How to Install KJNodes for ComfyUI

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

Weight Schedule Convert Description

Facilitates conversion of weight schedules for precise timing adjustments in animations, ensuring consistency across frame counts.

Weight Schedule Convert:

The WeightScheduleConvert node is designed to facilitate the conversion of weight schedules, particularly useful in scenarios where you need to adapt a batch schedule from Fizz' nodes BatchPromptSchedule to a different frame count. This node is essential for AI artists who work with animations or sequences that require precise timing adjustments. By converting the weight schedule, you can ensure that the transitions and effects in your animations remain consistent, even when the frame count changes. This node simplifies the process of scaling schedules, making it easier to maintain the desired artistic effects across different frame counts.

Weight Schedule Convert Input Parameters:

input_str

This parameter takes a string that represents the initial weight schedule. The string should be formatted as a series of frame numbers and their corresponding weights, for example, 0:(0.0),\n7:(1.0),\n15:(0.0)\n. This input is crucial as it defines the original schedule that will be converted to match the new frame count. The default value is 0:(0.0),\n7:(1.0),\n15:(0.0)\n.

old_frame_count

This integer parameter specifies the original number of frames in the weight schedule. It is used to calculate the scaling factor for converting the schedule to the new frame count. The value must be between 1 and 4096, with a default of 1. This parameter ensures that the node accurately scales the schedule based on the original frame count.

new_frame_count

This integer parameter defines the new number of frames to which the weight schedule will be converted. Similar to old_frame_count, it must be between 1 and 4096, with a default of 1. This parameter is essential for determining the new frame numbers and their corresponding weights after scaling.

Weight Schedule Convert Output Parameters:

STRING

The output is a string that represents the converted weight schedule. This string maintains the format of the input schedule but adjusts the frame numbers to match the new frame count. The output ensures that the weight transitions are consistent with the new frame count, preserving the intended effects of the original schedule.

Weight Schedule Convert Usage Tips:

  • Ensure that the input_str is correctly formatted with frame numbers and weights to avoid errors during conversion.
  • Use old_frame_count and new_frame_count values that accurately reflect the original and desired frame counts to maintain the integrity of the weight schedule.
  • Test the converted schedule with a small number of frames first to verify that the scaling works as expected before applying it to larger projects.

Weight Schedule Convert Common Errors and Solutions:

Invalid input string format

  • Explanation: The input_str is not correctly formatted, causing the node to fail in parsing the frame numbers and weights.
  • Solution: Ensure that the input_str follows the format frame_number:(weight),\n for each frame and weight pair.

Frame count out of range

  • Explanation: The old_frame_count or new_frame_count is set outside the allowed range of 1 to 4096. - Solution: Adjust the frame count parameters to be within the range of 1 to 4096.

Scaling factor calculation error

  • Explanation: An error occurs during the calculation of the scaling factor due to incorrect frame count values.
  • Solution: Double-check the old_frame_count and new_frame_count values to ensure they are correctly set and logical for the intended conversion.

Weight Schedule Convert Related Nodes

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