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
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 Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
meta_batch | VHS_BATCHMANAGER | No | - | - | 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 Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
directory | STRING | Yes | - | - | directory (Input Parameter): Specifies the folder path containing the image sequence. The path must be a valid and accessible local directory. |
image_load_cap | INT | No | 0 | 0 - BIGMAX (Step: 1) | - |
skip_first_images | INT | No | 0 | 0 - BIGMAX (Step: 1) | - |
select_every_nth | INT | No | 1 | 1 - BIGMAX (Step: 1) | - |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| IMAGE | IMAGE | IMAGE (Output Parameter): Outputs the loaded image sequence in the format of a unified image tensor. |
| MASK | MASK | MASK (Output Parameter): Outputs the mask information corresponding to the image sequence. |
| frame_count | INT | frame_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.
Load Images (Path) π₯π ₯π π ’ Node Source Code Link
The Load Images (Path) π₯π ₯π π ’ node is from the ComfyUI-VideoHelperSuite node package.
Comments
Sign in with GitHub to join the discussion.