Visit ComfyUI Online for ready-to-use ComfyUI environment
Duplicates images in a batch to create an interleaved sequence for dataset augmentation and consistent processing.
The ImageBatchRepeatInterleaving
node is designed to duplicate each image in a batch a specified number of times, creating an interleaved sequence of repeated images. This can be particularly useful when you need to augment your dataset or ensure that each image in a batch is processed multiple times in subsequent operations. For example, if you have a batch of 5 images and set the repeat count to 2, the resulting batch will contain 10 images, with each original image appearing twice in succession. This node helps in maintaining consistency and redundancy in image processing workflows, making it easier to handle tasks that require repeated image inputs.
This parameter accepts a batch of images that you want to repeat. The images should be in a tensor format, typically used in deep learning frameworks. The batch size can vary, but each image in the batch will be processed according to the repeat count specified.
This parameter determines how many times each image in the batch will be repeated. The default value is 1, meaning no repetition. The minimum value is 1, and the maximum value is 4096. Increasing this value will proportionally increase the size of the output batch by repeating each image the specified number of times.
The output is a batch of images where each image from the input batch has been repeated the specified number of times. The resulting tensor will have a batch size equal to the original batch size multiplied by the repeat count. This ensures that each image appears consecutively in the output batch, facilitating further processing or analysis.
repeats
parameter based on the specific needs of your workflow. For instance, if you need each image to be processed multiple times in subsequent nodes, set the repeat count accordingly.ValueError: Expected input batch size to be greater than 0
RuntimeError: The repeat count must be a positive integer
repeats
parameter is set to a non-positive value.repeats
parameter to a positive integer value, with a minimum of 1.MemoryError: Unable to allocate memory for the repeated batch
repeats
parameter or process the images in smaller batches to avoid memory overflow.© Copyright 2024 RunComfy. All Rights Reserved.