Video Helper Suite πŸŽ₯πŸ…₯πŸ…—πŸ…’generated

Load Images (Path) πŸŽ₯πŸ…₯πŸ…—πŸ…’(LoadImagesFromDirectoryPath)

This node supports loading various common image formats and features a built-in intelligent file sorting mechanism to ensure images are read in the correct order.

Load Images From Directory Path

meta_batch
IMAGE
MASK
frame_count
directory
STRING
image_load_cap
INT
skip_first_images
INT
select_every_nth
INT
VideoHelperSuite

The Load Images (Path) πŸŽ₯πŸ…₯πŸ…—πŸ…’ node supports loading various common image formats and features a built-in intelligent file sorting mechanism to ensure images are read in the correct order.

The Load Images (Path) node is a core tool within the Video Helper Suite, designed for batch loading image sequences from a local folder. Its primary function is to read picture files from a specified directory and convert them into an image data stream processable by ComfyUI, serving as an input source for subsequent video generation or image batch processing.

Node Functionality

This node supports loading various common image formats and features a built-in intelligent file sorting mechanism to ensure images are read in the correct order. Its core mechanism involves scanning the directory path, filtering for valid image files, and preprocessing the sequence based on user-defined parameters (such as skipping initial frames, interval selection, etc.). It ultimately outputs a unified image tensor, corresponding masks, and the total frame count.

Node Parameter Description - Load Images (Path) πŸŽ₯πŸ…₯πŸ…—πŸ…’

Connection Inputs (Inputs)

Parameter NameData TypeRequiredDefault ValueValue Range/OptionsDescription
meta_batchVHS_BATCHMANAGERNo--meta_batch (Input Parameter): Receives metadata from the VHS Batch Manager, used to manage the context and state of image loading within batch processing workflows.

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueValue Range/OptionsDescription
directorySTRINGYes--directory (Input Parameter): Specifies the folder path containing the image sequence. The path must be a valid and accessible local directory.
image_load_capINTNo00 - BIGMAX (Step: 1)-
skip_first_imagesINTNo00 - BIGMAX (Step: 1)-
select_every_nthINTNo11 - BIGMAX (Step: 1)-

Output

Parameter NameData TypeDescription
IMAGEIMAGEIMAGE (Output Parameter): Outputs the loaded image sequence in the format of a unified image tensor.
MASKMASKMASK (Output Parameter): Outputs the mask information corresponding to the image sequence.
frame_countINTframe_count (Output Parameter): Outputs the total number of frames successfully loaded.

Usage Scenarios

In workflows for creating animations or videos, you can place a set of consecutive PNG or JPG image sequences into a folder and then use this node to load them. The loaded image sequence can be connected to a KSampler for frame-by-frame repainting or fed into VHS video synthesis nodes, thereby converting static image sequences into dynamic videos.

Notes

Ensure the input directory path format is correct and the path contains valid image files. The node has strict requirements for the path string format and does not support non-existent paths or empty folders.

The Load Images (Path) πŸŽ₯πŸ…₯πŸ…—πŸ…’ node is from the ComfyUI-VideoHelperSuite node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…