Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates iterative processing in AI art workflows, enabling loops to pass information between prompts.
The Cycle node is designed to facilitate iterative processing within your AI art workflows. It allows you to create loops that execute each time a prompt is run, enabling you to pass information forward into subsequent prompts. This iterative approach is particularly useful for workflows that require repeated processing steps, such as refining an image or applying multiple filters. The Cycle node initiates with a 'DRY RUN' where all inputs are set to None, allowing you to reset variables or states at the beginning of each cycle. You can configure the loop to start, end, and step through values as needed, and choose whether the loop should automatically reset to the start value or continue indefinitely.
The initial value for the loop counter. This parameter sets the starting point of the cycle and determines the initial index value. It is an integer value that you can set based on where you want your loop to begin. For example, if you want your loop to start at 0, you would set this parameter to 0.
A positive or negative offset to apply to the loop counter on each iteration. This parameter controls how much the loop counter increments or decrements with each cycle. It is an integer value that can be adjusted to control the pace of the loop. For instance, setting it to 1 will increment the counter by 1 each time, while setting it to -1 will decrement the counter by 1.
The value at which the cycle will be considered complete, and the Finish flag will be set. This parameter defines the endpoint of the loop. Once the loop counter reaches or surpasses this value, the cycle is marked as finished. It is an integer value that you can set based on your desired endpoint for the loop.
A boolean parameter that, when toggled, causes the next cycle to be a 'DRY RUN' and re-initializes all parameters. This means that the Index, Data, and Aux_Data will be set to None for the initial execution. This is useful for resetting the state of your workflow whenever a fresh cycle starts.
A boolean parameter that specifies whether the Cycle should reset to the original start value once the cycle is complete or keep cycling indefinitely. If set to True, the loop will automatically reset to the start value after reaching the end value. If set to False, the loop will continue to apply the step value to the index on each iteration without resetting.
The current value of the loop counter before Step is applied. This output allows you to track the progress of the loop and use the current index value in your workflow. It is an integer value that updates with each iteration of the loop.
A boolean output that returns True if the loop counter has reached or surpassed the value specified by the end parameter. This output indicates whether the cycle has completed its iterations. It can be used to trigger other actions or nodes in your workflow once the loop is finished.
manual_reset
parameter to ensure that your workflow resets variables or states at the beginning of each new cycle.step
parameter to control the pace of your loop, whether you need it to increment or decrement by specific values.finished
output to trigger subsequent actions or nodes once the cycle has completed its iterations.auto_reset
if you need the loop to restart automatically after reaching the end value, which is useful for continuous processing tasks.© Copyright 2024 RunComfy. All Rights Reserved.