ComfyUI > Nodes > WWAA-CustomNodes > 🪠️ WWAA Image Batch Loader

ComfyUI Node: 🪠️ WWAA Image Batch Loader

Class Name

WWAA_ImageLoader

Category
🪠️WWAA
Author
hgabha (Account age: 503days)
Extension
WWAA-CustomNodes
Latest Updated
2025-05-11
Github Stars
0.02K

How to Install WWAA-CustomNodes

Install this extension via the ComfyUI Manager by searching for WWAA-CustomNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WWAA-CustomNodes 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

🪠️ WWAA Image Batch Loader Description

Versatile node for batch image loading and management, with caption file support for AI artists.

🪠️ WWAA Image Batch Loader:

The WWAA_ImageLoader is a versatile node designed to streamline the process of loading and managing image batches from a specified directory. This node is particularly beneficial for AI artists who work with large collections of images, as it allows for efficient looping through images in various orders. One of its standout features is the ability to read corresponding caption files that share the same name as the images, which can be incredibly useful for projects that require metadata or descriptive text alongside visual content. By automating the image loading process, the WWAA_ImageLoader enhances workflow efficiency, enabling you to focus more on creative tasks rather than manual file management.

🪠️ WWAA Image Batch Loader Input Parameters:

directory_path

The directory_path parameter specifies the location of the directory from which images will be loaded. It is crucial for determining the source of the image files that the node will process. This parameter does not have a default value, as it requires a valid directory path to function correctly.

file_extension

The file_extension parameter defines the type of image files to be loaded, such as .jpg or .png. This ensures that only files with the specified extension are considered, allowing for more targeted and efficient image loading. There is no default value, and it must be set according to the file types present in the directory.

reset_index

The reset_index parameter is a boolean that determines whether the index of the image list should be reset to the beginning. This is useful when you want to start the image loading process from the first image again. The default value is typically False, meaning the index will not reset unless specified.

sort_method

The sort_method parameter dictates the order in which images are loaded, such as alphabetically or by date modified. This allows for flexibility in how images are processed, depending on your project needs. There is no default value, and it should be set based on the desired sorting criteria.

reload_directory

The reload_directory parameter is a boolean that indicates whether the directory contents should be reloaded. This is particularly useful if the directory contents have changed and you want to ensure the node processes the most up-to-date files. The default value is usually False.

read_caption

The read_caption parameter is a boolean that specifies whether to read accompanying caption files with the same name as the images. This feature is beneficial for projects that require text data alongside images. The default value is typically False.

starting_index

The starting_index parameter allows you to specify the index from which to start loading images. This is useful if you want to begin processing from a specific point in the image list. If not provided, the default behavior is to start from the beginning or the current index.

🪠️ WWAA Image Batch Loader Output Parameters:

result

The result output parameter is a tuple containing the loaded image as a tensor. This output is crucial for further processing in AI models, as it provides the image data in a format that can be easily manipulated and analyzed. The tensor format ensures compatibility with various machine learning frameworks, facilitating seamless integration into your workflow.

🪠️ WWAA Image Batch Loader Usage Tips:

  • Ensure that the directory_path is correctly set to avoid errors related to file not found. Double-check the path for typos or incorrect directory names.
  • Use the sort_method parameter to organize your images in a way that best suits your project needs, such as sorting by date for chronological processing.
  • If you frequently update the image directory, set reload_directory to True to ensure the node processes the latest files.

🪠️ WWAA Image Batch Loader Common Errors and Solutions:

FileNotFoundError

  • Explanation: This error occurs when the specified directory_path does not exist or is incorrect.
  • Solution: Verify that the directory path is correct and that the directory exists. Check for any typos or incorrect folder names.

UnsupportedFileExtensionError

  • Explanation: This error arises when the file_extension parameter is set to a type not present in the directory.
  • Solution: Ensure that the file extension matches the types of images in the directory. Adjust the parameter to include the correct extension.

IndexOutOfBoundsError

  • Explanation: This error happens when the starting_index is set beyond the number of available images.
  • Solution: Check the total number of images in the directory and set the starting_index within this range.

🪠️ WWAA Image Batch Loader Related Nodes

Go back to the extension to check out more related nodes.
WWAA-CustomNodes
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 Playground, enabling artists to harness the latest AI tools to create incredible art.