Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently load and process images from a specified directory path with customizable parameters for AI artists.
The VHS_LoadImagesPath
node is designed to load images from a specified directory path, making it an essential tool for AI artists who need to process multiple images efficiently. This node allows you to specify various parameters to control the loading process, such as the number of images to load, skipping initial images, and selecting every nth image. By providing a flexible and powerful way to manage image loading, this node helps streamline workflows and ensures that you can easily access and manipulate large sets of images for your creative projects.
This parameter specifies the directory path from which images will be loaded. It is a required parameter and must be a valid directory path containing the images you wish to load. The directory should not be empty and should contain image files in a supported format.
This optional parameter sets the maximum number of images to load from the specified directory. The default value is 0, which means there is no cap, and all images in the directory will be loaded. The minimum value is 0, and the maximum value is determined by the system's capabilities. Adjusting this parameter can help manage memory usage and processing time.
This optional parameter allows you to skip a specified number of initial images in the directory. The default value is 0, meaning no images are skipped. The minimum value is 0, and the maximum value is determined by the number of images in the directory. This can be useful if you want to ignore certain images at the beginning of the directory.
This optional parameter specifies that only every nth image should be loaded from the directory. The default value is 1, meaning every image is loaded. The minimum value is 1, and the maximum value is determined by the number of images in the directory. This can be useful for reducing the number of images loaded and focusing on a subset of the available images.
This optional parameter allows you to use a VHS_BatchManager
object to manage batch processing of images. This can be useful for handling large sets of images in smaller, more manageable batches. If not provided, the node will process all images in a single batch.
This hidden parameter is used internally to manage unique identifiers for batch processing. It ensures that each batch of images is processed correctly and consistently.
This output parameter provides the loaded images as a tensor. The images are loaded according to the specified input parameters and are ready for further processing or manipulation in your workflow.
This output parameter provides the masks associated with the loaded images. If the images have an alpha channel, the masks will contain the alpha values. Otherwise, the masks will be filled with zeros. These masks can be used for various image processing tasks, such as segmentation or masking.
This output parameter provides the total number of images loaded from the specified directory. It reflects the number of images after applying any specified input parameters, such as image_load_cap
, skip_first_images
, and select_every_nth
.
directory
parameter is valid and contains the images you want to load.image_load_cap
parameter to limit the number of images loaded, which can help manage memory usage and processing time.skip_first_images
parameter to ignore initial images in the directory if they are not needed for your project.select_every_nth
parameter to load a subset of images, which can be useful for reducing the number of images processed.meta_batch
parameter with a VHS_BatchManager
object to handle large sets of images in smaller batches, making the processing more manageable.image_load_cap
parameter to limit the number of images loaded, or process the images in smaller batches using the meta_batch
parameter.© Copyright 2024 RunComfy. All Rights Reserved.