ComfyUI > Nodes > ComfyUI Inspire Pack > Load Image List From Dir (Inspire)

ComfyUI Node: Load Image List From Dir (Inspire)

Class Name

LoadImageListFromDir __Inspire

Category
image
Author
Dr.Lt.Data (Account age: 471days)
Extension
ComfyUI Inspire Pack
Latest Updated
2024-07-02
Github Stars
0.3K

How to Install ComfyUI Inspire Pack

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

Run ComfyUI Online

Load Image List From Dir (Inspire) Description

Efficiently load and process multiple images from a directory for AI art workflow, supporting various formats and automating tasks.

Load Image List From Dir (Inspire):

The Load Image List From Dir (Inspire) node is designed to streamline the process of loading multiple images from a specified directory into your AI art workflow. This node is particularly useful for artists who need to batch process images, as it allows you to load a list of images efficiently while ensuring compatibility with various image formats such as .jpg, .jpeg, .png, and .webp. By leveraging this node, you can automate the image loading process, saving time and reducing manual effort. The node also handles image orientation corrections and converts images to a suitable format for further processing, making it an essential tool for managing large image datasets.

Load Image List From Dir (Inspire) 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 directs the node to the correct location of your image files. Ensure that the directory path is accurate and accessible to avoid errors. There is no default value for this parameter, and it must be provided by the user.

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 when you only need to process a subset of images from a large collection. The default value is 0, which means there is no limit, and all images in the directory will be loaded. You can set this to any positive integer to restrict the number of images loaded.

start_index

The start_index parameter determines the starting point in the directory's file list from which images will begin to load. This is helpful if you want to skip a certain number of images at the beginning of the directory. The default value is 0, meaning the loading will start from the first image in the directory.

load_always

The load_always parameter is a boolean flag that, when set to True, forces the node to load images even if certain conditions are not met. This can be useful in scenarios where you want to ensure images are loaded regardless of other settings or constraints. The default value is False.

Load Image List From Dir (Inspire) Output Parameters:

images

The images output parameter is a list of loaded images in a format suitable for further processing in your AI art workflow. Each image is converted to an RGB format and normalized to a float32 array, making it ready for use in various image processing tasks.

masks

The masks output parameter is a list of corresponding masks for the loaded images. If an image contains an alpha channel, the mask will represent the transparency information. If no alpha channel is present, a default mask of zeros will be provided. These masks can be used for tasks that require image segmentation or masking.

Load Image List From Dir (Inspire) Usage Tips:

  • Ensure that the directory path provided is correct and accessible to avoid FileNotFoundError.
  • Use the image_load_cap parameter to limit the number of images loaded, which can help manage memory usage and processing time.
  • Adjust the start_index parameter if you need to skip a certain number of images at the beginning of the directory.
  • Set the load_always parameter to True if you want to ensure images are loaded regardless of other conditions.

Load Image List From Dir (Inspire) Common Errors and Solutions:

Directory 'directory' cannot be found.

  • Explanation: This error occurs when the specified directory path is incorrect or inaccessible.
  • Solution: Verify that the directory path is correct and that you have the necessary permissions to access it.

No files in directory 'directory'.

  • Explanation: This error indicates that the specified directory does not contain any files.
  • Solution: Ensure that the directory contains image files and that the path is correct.

Unsupported file format.

  • Explanation: This error occurs when the directory contains files with unsupported formats.
  • Solution: Ensure that the directory only contains files with supported formats such as .jpg, .jpeg, .png, and .webp.

Image loading exceeded the specified cap.

  • Explanation: This error occurs when the number of images in the directory exceeds the image_load_cap parameter.
  • Solution: Increase the image_load_cap value or reduce the number of images in the directory.

Load Image List From Dir (Inspire) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Inspire Pack
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.