Visit ComfyUI Online for ready-to-use ComfyUI environment
Insert specific images into existing batch at designated indices for precise control over image placement.
The InsertImagesToBatchIndexed
node is designed to allow you to insert specific images into an existing batch of images at designated indices. This functionality is particularly useful when you need to update or modify a batch of images by adding new images at specific positions without disrupting the overall sequence. By specifying the indices where the new images should be inserted, you can maintain the order and structure of your image batch, ensuring that the new images are seamlessly integrated. This node is essential for tasks that require precise control over the placement of images within a batch, such as creating composite images, updating image sequences, or preparing datasets for machine learning models.
This parameter represents the batch of original images into which new images will be inserted. It is expected to be in the format of an image tensor. The original images serve as the base batch that will be modified by inserting new images at specified indices.
This parameter contains the images that you want to insert into the original batch. These images should be provided in the format of an image tensor. The number of images to insert should match the number of specified indices to ensure proper insertion.
This parameter is a string that specifies the indices at which the new images will be inserted into the original batch. The indices should be provided as a comma-separated list (e.g., "0, 1, 2"). Each index corresponds to a position in the original image batch where a new image will be inserted. The default value is "0, 1, 2", and it supports multiline input for convenience.
The output is the modified batch of images with the new images inserted at the specified indices. This updated batch maintains the original sequence order, with the new images seamlessly integrated at the designated positions. The output is provided as an image tensor.
indexes
parameter to precisely control where each new image will be inserted in the original batch.indexes
string contains non-numeric values or is improperly formatted.indexes
string contains only comma-separated numeric values (e.g., "0, 1, 2").indexes
parameter is out of the range of the original image batch.indexes
parameter are within the valid range of the original image batch.images_to_insert
parameter matches the number of indices specified in the indexes
parameter.© Copyright 2024 RunComfy. All Rights Reserved.