ComfyUI Node
Load Images with Captions from Dir (rholdorf)
Load images from a folder along with their sidecar UTF-8 .txt captions (same base name, as used for LoRA training pairs). Images without a matching .txt yield an empty caption string.
Load Images with Captions from Dir (rholdorf)
- image
- mask
- caption
- file_path
◄directory►
◄image_load_cap0►
◄start_index0►
◄load_alwaysfalse►
◄sort_method▾►
Categoryrholdorf/image
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| directory | STRING | Folder to scan for image files. | |
| image_load_capopt | INT | 0 | Stop after this many images (0 = no limit). |
| start_indexopt | INT | 00–18446744073709550000 | Skip this many files at the start of the sorted list. |
| load_alwaysopt | BOOLEAN | false | Re-read the folder every run (defeats ComfyUI caching). |
| sort_methodopt | COMBO | How to order files before slicing. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |
| caption | STRING | — |
| file_path | STRING | — |