ComfyUI > Nodes > ComfyUI-YCNodes > Load Images From Folder YC

ComfyUI Node: Load Images From Folder YC

Class Name

LoadImagesFromFolder

Category
YCNode/Image
Author
yichengup (Account age: 473days)
Extension
ComfyUI-YCNodes
Latest Updated
2025-06-03
Github Stars
0.02K

How to Install ComfyUI-YCNodes

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

Efficiently load and manage images from specified directory with various criteria and loading modes for AI artists.

Load Images From Folder YC:

The LoadImagesFromFolder node is designed to streamline the process of loading images from a specified directory, making it an essential tool for AI artists who work with large collections of images. This node allows you to efficiently manage and retrieve images based on various criteria, such as file type and naming patterns, without needing to manually sift through directories. It supports multiple image formats, including .png, .jpg, .jpeg, .bmp, .webp, .tiff, and .gif, ensuring compatibility with a wide range of image files. By offering different loading modes, such as single, incremental, random, and batch, the node provides flexibility in how images are accessed and utilized, catering to diverse artistic workflows. This functionality is particularly beneficial for tasks that require consistent image processing or analysis, as it automates the retrieval process and reduces the potential for human error.

Load Images From Folder YC Input Parameters:

path_type

The path_type parameter determines the source of the images to be loaded. It can be set to either input_dir, which uses a predefined input directory, or custom_path, which allows you to specify a custom directory path. This flexibility enables you to organize your image files according to your project needs, either by using a standard directory structure or by selecting a specific folder for more targeted image loading.

mode

The mode parameter specifies how images are loaded from the directory. Options include single, incremental, random, and batch. The single mode loads one image at a time, incremental mode loads images sequentially, random mode selects images randomly, and batch mode loads a group of images at once. This parameter allows you to tailor the image loading process to suit your workflow, whether you need to process images individually or in groups.

seed

The seed parameter is an integer value used to initialize the random number generator when the random mode is selected. It ensures that the sequence of randomly selected images is reproducible. The default value is 0, and it can range from 0 to 0xffffffffffffffff. By setting a specific seed, you can achieve consistent results across different runs, which is useful for experiments that require repeatability.

image_index

The image_index parameter is an integer that specifies the starting index for image loading in incremental mode. It defaults to 0 and can range from 0 to 99999. This parameter allows you to resume image loading from a specific point in the directory, which is helpful if you need to continue processing from where you left off in a previous session.

folder_name

The folder_name parameter allows you to select a specific subfolder within the input directory. By default, it includes the <root> option, which refers to the main directory, along with any other subfolders present. This parameter helps you organize and access images stored in different subdirectories without changing the overall directory structure.

custom_path

The custom_path parameter is a string that specifies a custom directory path for loading images. The default value is "C:/Users/Pictures". This parameter provides the flexibility to load images from any directory on your system, making it easy to integrate the node into various project setups and workflows.

label

The label parameter is a string used to tag the batch of images being processed. The default value is "batch 001". This parameter helps in organizing and identifying different batches of images, especially when working with multiple sets of data. It ensures that the images are correctly associated with their respective processing tasks.

output_filename

The output_filename parameter is a boolean option (true or false) that determines whether the filenames of the loaded images should be included in the output. When set to false, the filename cache for the label is cleared. This parameter is useful for managing output data, especially when filenames are not needed for further processing.

allow_RGBA

The allow_RGBA parameter is a boolean option (false or true) that specifies whether images with an RGBA color mode should be allowed. By default, it is set to false. This parameter is important for ensuring that only images with the desired color mode are processed, which can be crucial for certain types of image analysis or processing tasks.

image_pattern

The image_pattern parameter is a string that defines the file types to be loaded, using a semicolon-separated list of patterns (e.g., "*.png;*.jpg;*.jpeg;*.webp"). This parameter allows you to filter images based on their file extensions, ensuring that only relevant files are loaded for processing. It provides a convenient way to manage and organize image files within a directory.

Load Images From Folder YC Output Parameters:

image

The image output parameter provides the loaded image data. This data is essential for any subsequent image processing or analysis tasks, as it represents the visual content that you will work with. The node ensures that the images are loaded in a format compatible with further processing steps, making it easier to integrate into your workflow.

filename

The filename output parameter returns the name of the loaded image file. This information is useful for tracking and organizing images, especially when dealing with large datasets. It allows you to maintain a clear record of which images have been processed, facilitating better management and documentation of your work.

Load Images From Folder YC Usage Tips:

  • Use the mode parameter to tailor the image loading process to your specific needs, whether you require individual images or batches for processing.
  • Set a specific seed value when using random mode to ensure reproducibility in your experiments or projects.
  • Utilize the image_pattern parameter to filter and load only the image types relevant to your task, saving time and resources.
  • Consider using custom_path to load images from specific directories, allowing for greater flexibility in organizing your image files.

Load Images From Folder YC Common Errors and Solutions:

Warning: 自定义路径 {custom_path} 不存在!

  • Explanation: This warning indicates that the specified custom path does not exist on your system.
  • Solution: Verify that the path is correct and that the directory exists. Update the custom_path parameter with a valid directory path.

Warning: 在 {target_dir} 中未找到匹配的图片

  • Explanation: This warning means that no images matching the specified pattern were found in the target directory.
  • Solution: Check the image_pattern parameter to ensure it matches the file types present in the directory. Adjust the pattern if necessary to include the correct file extensions.

Load Images From Folder YC Related Nodes

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