Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates batch export of stored images for efficient processing in manageable chunks.
The ImageStorageExportLoop
node is designed to facilitate the export of images stored in a global storage system, allowing you to retrieve and process images in batches. This node is particularly useful for handling large datasets of images by breaking them down into manageable chunks, which can be processed iteratively. By specifying a key that identifies the stored images, a batch size, and a loop index, you can efficiently access and manipulate subsets of your image data. This node is essential for workflows that require batch processing of images, such as training machine learning models or performing bulk image transformations.
The key
parameter is a string that identifies the specific set of images stored in the global image storage. This key must match the one used when the images were initially stored. The key is case-sensitive and should not contain leading or trailing spaces. This parameter is required to locate the correct set of images for export.
The batch_size
parameter is an integer that determines the number of images to be processed in each batch. The default value is 1000, with a minimum value of 1. Adjusting the batch size can impact the performance and memory usage of the node, with larger batch sizes potentially requiring more memory but reducing the number of iterations needed to process all images.
The loop_idx
parameter is an integer that specifies the index of the current loop iteration. This index determines which batch of images is being accessed. The default value is 0, with a minimum value of 0. This parameter is crucial for iterating through the batches in a controlled manner, ensuring that each subset of images is processed in sequence.
The opt_pipeline
parameter is an optional parameter that allows you to specify a pipeline for additional processing. This parameter can be used to integrate the node into a larger workflow, enabling more complex image processing tasks.
The IMAGE
output parameter returns the batch of images corresponding to the specified loop_idx
. This output is a tensor containing the images, which can be further processed or analyzed. The images are returned in the format they were stored, ensuring consistency across the workflow.
The LOOP IDX (INT)
output parameter returns the current loop index, which is the same as the input loop_idx
. This output is useful for tracking the progress of the loop and ensuring that the correct batch of images is being processed.
The IDX_IN_BATCH (INT)
output parameter returns the index of the current image within the batch. This index is calculated as loop_idx % batch_size
and is useful for identifying the position of each image within the batch, especially when performing operations that depend on the image's position.
key
parameter matches the key used when storing the images to avoid errors.batch_size
parameter based on your system's memory capacity to optimize performance.loop_idx
parameter to iterate through all batches of images systematically.opt_pipeline
parameter for more complex workflows.{key}
doesn't exist.loop_idx
exceeds the number of available batches.loop_idx
is within the valid range. Adjust the loop_idx
or batch_size
as needed.© Copyright 2024 RunComfy. All Rights Reserved.