ComfyUI > Nodes > ComfyUI-Creepy_nodes > Load Batch From Dir (Creepybits)

ComfyUI Node: Load Batch From Dir (Creepybits)

Class Name

LoadBatchImagesDir

Category
Creepybits/image
Author
Creepybits (Account age: 2146days)
Extension
ComfyUI-Creepy_nodes
Latest Updated
2025-12-07
Github Stars
0.02K

How to Install ComfyUI-Creepy_nodes

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

Load Batch From Dir (Creepybits) Description

Efficiently loads and batches images from a directory for AI artists, automating the process and saving time.

Load Batch From Dir (Creepybits):

The LoadBatchImagesDir node is designed to facilitate the loading and batching of images from a specified directory, making it an essential tool for AI artists who work with large datasets of images. This node efficiently handles the process of reading images and their corresponding masks, if available, from a directory, and organizes them into batches for further processing. By automating the image loading and batching process, it saves time and reduces the complexity involved in managing large image datasets. The node is particularly useful in workflows where multiple images need to be processed simultaneously, as it ensures that images are loaded in a structured manner, ready for subsequent operations such as image processing or model training. Its ability to handle both images and masks makes it versatile for various applications, including those that require segmentation or other mask-based operations.

Load Batch From Dir (Creepybits) Input Parameters:

directory

The directory parameter specifies the path to the folder containing the images you wish to load. This parameter is crucial as it determines the source of the images that will be batched. The path should be a valid directory on your system where the images are stored. There are no specific minimum or maximum values for this parameter, but it must be a valid directory path. The default value is typically an empty string, requiring you to specify the directory manually.

image_load_cap

The image_load_cap parameter sets a limit on the number of images to load from the specified directory. This is useful for controlling the size of the dataset you are working with, especially when dealing with large collections of images. The minimum value is 0, which implies no limit, and the maximum value is determined by the number of images available in the directory. The default value is 0, meaning all images will be loaded unless specified otherwise.

start_index

The start_index parameter indicates the starting point in the directory from which images should begin to be loaded. This allows for flexibility in loading images, enabling you to skip a certain number of images at the beginning of the directory. The minimum value is 0, and there is no explicit maximum value, but it should be less than the total number of images in the directory. The default value is 0, meaning loading starts from the first image.

load_always

The load_always parameter is a boolean flag that, when set to true, forces the node to load images every time it is executed, regardless of any caching mechanisms that might be in place. This is useful when you want to ensure that the most current set of images is always loaded. The default value is false, meaning the node may use cached data if available.

force_rescan

The force_rescan parameter is another boolean flag that, when enabled, forces the node to rescan the directory for images, even if a previous scan has been cached. This is particularly useful if the contents of the directory have changed and you want to ensure that the node is aware of the latest files. The default value is false, allowing the node to rely on cached scans unless otherwise specified.

Load Batch From Dir (Creepybits) Output Parameters:

image_batch

The image_batch output parameter provides a batch of images that have been loaded from the specified directory. This batch is a collection of images organized in a format suitable for further processing, such as feeding into a neural network. The images are concatenated along a new dimension, allowing for batch processing. The importance of this output lies in its ability to streamline workflows that require handling multiple images simultaneously.

mask_batch

The mask_batch output parameter contains the corresponding masks for the images in the image_batch, if available. Masks are often used in tasks that require segmentation or other forms of image analysis where specific regions of the image need to be identified. This output ensures that both images and their masks are aligned and ready for any subsequent operations that require both inputs.

Load Batch From Dir (Creepybits) Usage Tips:

  • Ensure that the directory parameter is correctly set to the path where your images are stored to avoid loading errors.
  • Use the image_load_cap parameter to manage memory usage effectively by limiting the number of images loaded at once, especially when working with large datasets.
  • Set the start_index parameter to skip over images you do not need, which can be useful for testing or when working with a specific subset of images.
  • Enable the load_always parameter if you need to ensure that the most recent images are loaded every time, which is useful in dynamic environments where images are frequently updated.
  • Use the force_rescan parameter to refresh the image list if you have added or removed images from the directory since the last scan.

Load Batch From Dir (Creepybits) Common Errors and Solutions:

Load Batch From Dir (Creepybits) ERROR: No images could be loaded from the selected subset of '<directory>'.

  • Explanation: This error occurs when the node is unable to load any images from the specified directory. This might happen if the directory path is incorrect or if the directory does not contain any valid image files.
  • Solution: Verify that the directory parameter is set to the correct path and that the directory contains valid image files. Ensure that the images are in a supported format and that there are no permission issues preventing access to the directory.

Load Batch From Dir (Creepybits) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Creepy_nodes
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.