ComfyUI Node
π₯ Batch Load Image
Batch image source: enumerates every image of the selected container format in a folder tree and hands out one image per execution (IMAGE + MASK). The slot is derived from which destinations already exist (or were marked errored), so crash-recovery, restarts and re-runs need no reset step.
π₯ Batch Load Image
- IMAGE
- MASK
- SLOT
- TOTAL
- RELATIVE_PATH
βfolder_pathββΊ
βrecursivetrueβΊ
βcontainer_formatpngβΊ
Categoryimage/batch
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| folder_path | STRING | Root of the input folder tree (absolute path). | |
| recursive | BOOLEAN | true | Walk subfolders recursively. |
| container_format | COMBO | png | Only files with this extension (or all_images) are processed. |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | The current image as an IMAGE tensor [B, H, W, 3]. |
| MASK | MASK | The alpha channel mask as a MASK tensor [B, H, W]. |
| SLOT | INT | 0-based index of the current file for this run. |
| TOTAL | INT | Total matching file count for this run. |
| RELATIVE_PATH | STRING | Current file's path relative to folder_path (posix separators). |