Nodes/comfyui_imgtools/Load Images with Captions from Dir (rholdorf)
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.

By rholdorf·Created 7 months ago·Updated about a month ago· 0
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)

    NameTypeDefaultDescription
    directorySTRINGFolder to scan for image files.
    image_load_capoptINT0Stop after this many images (0 = no limit).
    start_indexoptINT00–18446744073709550000Skip this many files at the start of the sorted list.
    load_alwaysoptBOOLEANfalseRe-read the folder every run (defeats ComfyUI caching).
    sort_methodoptCOMBOHow to order files before slicing.

    Outputs (4)

    NameTypeDescription
    imageIMAGE
    maskMASK
    captionSTRING
    file_pathSTRING