Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently manage and index image collections for structured navigation and batch processing tasks with flexibility and filtering capabilities.
The AD_ImageIndexer
node is designed to efficiently manage and index a collection of images, allowing you to navigate through them in a structured manner. This node is particularly useful for batch processing tasks where you need to systematically access images either sequentially or randomly. By leveraging an increment value and a seed for randomization, it provides flexibility in how images are selected, making it ideal for scenarios where you need to iterate over images with specific patterns or randomness. Additionally, it can handle optional image names and indexes, offering a comprehensive solution for organizing and accessing image data. The node also includes a mechanism to filter out unwanted system files, ensuring that only relevant images are processed.
This parameter accepts a list of images that you want to index. It is the primary input for the node, and the node will operate on this collection to select and return images based on the specified increment and seed values.
The increment parameter determines the step size for selecting images from the list. It is an integer value with a default of 1, a minimum of 0, and a maximum of 1000. An increment of 0 will trigger random selection based on the seed, while a positive increment will select images in a sequential manner.
The seed parameter is used to initialize the random number generator when the increment is set to 0. It is an integer with a default value of 0 and can range up to 0xffffffffffffffff. This parameter ensures that the random selection of images is reproducible, allowing for consistent results across different runs.
This optional parameter is a list of strings representing the names of the images. If provided, these names will be used to identify the images in the output. If not provided, the node will generate default names based on the image index.
The index parameter is an optional integer that specifies the starting point for image selection. It has a default value of 0, with a minimum of 0 and a maximum of 0xffffffffffffffff. This parameter allows you to start indexing from a specific image, with 0 or 1 both referring to the first image in the list.
This output is the selected image from the input list based on the current index and increment settings. It represents the actual image data that you can use for further processing or analysis.
The image_name output provides the name of the selected image. If the image_names parameter was provided, this will be the corresponding name; otherwise, it will be a default name generated by the node.
This output indicates the current index of the selected image within the list. It helps track the position of the image in the sequence, which is useful for understanding the order of processing.
The total_images output gives the total number of images in the input list. This information is useful for understanding the scope of the dataset and for planning further processing steps.
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.