ComfyUI  >  Nodes  >  pythongosssss/ComfyUI-Custom-Scripts >  Repeater 🐍

ComfyUI Node: Repeater 🐍

Class Name

Repeater|pysssss

Category
utils
Author
pythongosssss (Account age: 538 days)
Extension
pythongosssss/ComfyUI-Custom-Scripts
Latest Updated
8/2/2024
Github Stars
1.5K

How to Install pythongosssss/ComfyUI-Custom-Scripts

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

Repeater 🐍 Description

Automate data duplication for AI art generation with flexible output options for consistent replication and streamlined workflow.

Repeater 🐍| Repeater 🐍:

The Repeater| Repeater 🐍 node is designed to facilitate the duplication of input data within your AI art generation workflow. This node is particularly useful when you need to repeat a specific input multiple times, either by reusing the same input node or by creating new nodes dynamically. It offers flexibility in how the repeated data is output, allowing you to choose between a single consolidated output or multiple individual outputs. This can be especially beneficial for tasks that require consistent replication of data, such as generating multiple variations of an image or text based on a single source. By automating the repetition process, the Repeater| Repeater 🐍 node helps streamline your workflow and ensures uniformity across repeated elements.

Repeater 🐍| Repeater 🐍 Input Parameters:

source

The source parameter represents the initial input data that you want to repeat. This can be any type of data, such as an image, text, or other media. The source acts as the base element that will be duplicated according to the specified number of repeats.

repeats

The repeats parameter determines the number of times the source input will be repeated. It accepts an integer value with a minimum of 0 and a maximum of 5000, with a default value of 2. Adjusting this parameter allows you to control the extent of repetition, enabling you to generate the desired number of duplicates.

output

The output parameter specifies how the repeated data will be structured in the output. It offers two options: "single" and "multi". Choosing "single" will consolidate all repeated elements into a single output, while selecting "multi" will generate multiple individual outputs for each repeated element. This flexibility allows you to tailor the output format to your specific needs.

node_mode

The node_mode parameter defines the method of repetition. It provides two options: "reuse" and "create". When set to "reuse", the node will use a single input node and repeat it the specified number of times. When set to "create", new nodes will be dynamically added during the graph serialization process, each containing the repeated data. This parameter allows you to choose between reusing existing nodes or creating new ones for each repetition.

Repeater 🐍| Repeater 🐍 Output Parameters:

*

The output parameter is a wildcard type, represented by *, which indicates that the output can be of any type, depending on the input source. The output will contain the repeated elements as specified by the repeats, output, and node_mode parameters. This flexibility ensures that the node can handle various types of data and output formats, making it adaptable to different use cases.

Repeater 🐍| Repeater 🐍 Usage Tips:

  • To generate multiple variations of an image or text, set the repeats parameter to the desired number of variations and choose the "multi" option for the output parameter.
  • If you need to reuse the same input node multiple times, set the node_mode parameter to "reuse" to avoid creating additional nodes and keep your workflow streamlined.
  • For dynamic node creation, set the node_mode parameter to "create" to ensure that each repetition is handled by a new node, which can be useful for complex workflows requiring distinct processing for each repeated element.

Repeater 🐍| Repeater 🐍 Common Errors and Solutions:

"Invalid input type for source"

  • Explanation: The source parameter received an input type that is not supported by the node.
  • Solution: Ensure that the source input is of a valid type, such as an image, text, or other media that the node can process.

"Repeats value out of range"

  • Explanation: The repeats parameter value is outside the allowed range of 0 to 5000.
  • Solution: Adjust the repeats parameter to a value within the specified range to ensure proper node execution.

"Unsupported output option"

  • Explanation: The output parameter received an option that is not recognized by the node.
  • Solution: Verify that the output parameter is set to either "single" or "multi" to ensure correct output formatting.

"Invalid node_mode option"

  • Explanation: The node_mode parameter received an option that is not recognized by the node.
  • Solution: Ensure that the node_mode parameter is set to either "reuse" or "create" to define the repetition method correctly.

Repeater 🐍 Related Nodes

Go back to the extension to check out more related nodes.
pythongosssss/ComfyUI-Custom-Scripts
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.