ComfyUI Extension: ComfyUI Iterator Nodes
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
ComfyUI nodes for iterating over files (images, text) in directories.
Looking for a different extension?
Custom Nodes (0)
README
ComfyUI Iterator Nodes
A set of custom nodes for ComfyUI that allows you to iterate over files in a directory. This is useful for batch processing images or text files.
Features
- Iterator List Files: Scans a directory for files matching specific extensions and outputs them as a list.
- Iterator Load Image: Loads an image from a file path.
- Iterator Load String: Loads text content from a file path.
Installation
- Navigate to your ComfyUI
custom_nodesdirectory. - Clone this repository:
git clone https://github.com/AIMovieStudio/comfyui-iterator.git - Restart ComfyUI.
Usage Guide
The core concept is to use Iterator List Files to generate a list of file paths, and then feed that list into Iterator Load Image or Iterator Load String.
Batch Processing Images
- Add Iterator List Files node.
- Set the
directoryto your image folder. - Set
extensiontopng, jpg(or whatever you need). - Add Iterator Load Image node.
- Connect
file_pathsfrom Iterator List Files tofile_pathon Iterator Load Image. - ComfyUI will automatically execute the Iterator Load Image node (and any subsequent nodes) for each file in the list.
Batch Processing Text
- Add Iterator List Files node.
- Set
directoryto your text folder. - Set
extensiontotxt. - Add Iterator Load String node.
- Connect
file_pathstofile_path.
Nodes
Iterator List Files
- Inputs:
directory: Path to the directory.extension: File extensions to filter (e.g., "png, jpg").limit: Max files to process (0 for all).
- Output: List of file paths.
Iterator Load Image
- Inputs:
file_path: Path to an image file.
- Output: Image tensor and filename.
Iterator Load String
- Inputs:
file_path: Path to a text file.
- Output: String content and filename.
License
GPL-3.0 license
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.