ComfyUI > Nodes > ComfyUI Level Pixel > Image Data Iterator [LP]

ComfyUI Node: Image Data Iterator [LP]

Class Name

ImageDataIterator|LP

Category
LevelPixel/Iterators
Author
LevelPixel (Account age: 647days)
Extension
ComfyUI Level Pixel
Latest Updated
2026-02-24
Github Stars
0.03K

How to Install ComfyUI Level Pixel

Install this extension via the ComfyUI Manager by searching for ComfyUI Level Pixel
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Level Pixel 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Data Iterator [LP] Description

Facilitates sequential image processing by iterating over datasets for efficient management.

Image Data Iterator [LP]| Image Data Iterator [LP]:

The ImageDataIterator| Image Data Iterator [LP] node is designed to facilitate the sequential processing of image data by iterating over a collection of images. This node is particularly useful for AI artists who need to manage and process large sets of images efficiently. By leveraging this node, you can systematically access each image in a dataset, allowing for operations such as analysis, transformation, or augmentation to be applied in a controlled manner. The primary function of this node is to iterate through image data, providing essential information about each image's position within the dataset, which can be crucial for tasks that require precise indexing or batch processing. This node is part of the LevelPixel suite, which is tailored to enhance image processing workflows.

Image Data Iterator [LP]| Image Data Iterator [LP] Input Parameters:

iterator_data

The iterator_data parameter is a collection of data that the node will iterate over. It typically consists of a list of dictionaries, each containing information about a set of images, such as the count of images in the set, the index of the set, and the name of the set. This parameter is crucial as it defines the scope and structure of the iteration process, allowing the node to navigate through the image data systematically.

global_index

The global_index parameter is an integer that specifies the starting point for the iteration within the entire dataset. It determines which image in the sequence will be processed first. The default value is 0, meaning the iteration will start from the beginning of the dataset. The minimum value is 0, and there is no explicit maximum value, but it should not exceed the total number of images in the dataset. This parameter is essential for controlling the flow of the iteration, especially when resuming from a specific point in a large dataset.

Image Data Iterator [LP]| Image Data Iterator [LP] Output Parameters:

item_index

The item_index output represents the position of the current image within its specific set. It is an integer value that helps identify the image's order in the subset being processed, which is useful for tasks that require knowledge of the image's relative position within its group.

set_index

The set_index output is an integer that indicates the index of the set to which the current image belongs. This information is valuable for distinguishing between different groups of images, especially when the dataset is divided into multiple sets for organizational or processing purposes.

set_name

The set_name output provides the name of the set containing the current image. This string output is beneficial for labeling or categorizing images based on their set, aiding in tasks that involve set-specific processing or analysis.

global_index

The global_index output returns the current position of the image within the entire dataset. This integer value is crucial for tracking progress through the dataset and can be used to resume processing from a specific point if needed.

Image Data Iterator [LP]| Image Data Iterator [LP] Usage Tips:

  • Ensure that the iterator_data is correctly structured with accurate counts and indices to avoid iteration errors.
  • Use the global_index to resume processing from a specific point in the dataset, which is particularly useful for large datasets where processing might be interrupted.

Image Data Iterator [LP]| Image Data Iterator [LP] Common Errors and Solutions:

Image iteration finished

  • Explanation: This error occurs when the global_index exceeds the total number of images available in the dataset, indicating that there are no more images to process.
  • Solution: Verify the total number of images in your dataset and adjust the global_index accordingly. Ensure that the iterator_data accurately reflects the number of images in each set to prevent this error.

Image Data Iterator [LP] Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Level Pixel
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Image Data Iterator [LP]