Nodes/comfyui-fvmtools/Batch Load Image
ComfyUI Node

Batch Load Image

Hands out one image per queue run and remembers how far it got, so a folder can be worked through across many runs.

By ping1979ping·Created 6 months ago·Updated 2 days ago· 1
Batch Load Image
    • image
    • mask
    • source_path
    • pass_dir
    • fail_dir
    • filename
    • index
    • total
    • progress
    ◄directory►
    ◄pass_subdirkeep►
    ◄fail_subdirreject►
    ◄on_finishstop►
    ◄sort_byname►
    ◄include_subdirsfalse►
    ◄create_dirstrue►
    ◄trackerdefault►
    CategoryFVM Tools/Batch

    Inputs (8)

    NameTypeDefaultDescription
    directorySTRINGFolder to walk through. One image per queue run.
    pass_subdirSTRINGkeepSubfolder of the source directory for pictures that pass. Handed downstream as an absolute path.
    fail_subdirSTRINGrejectSubfolder for pictures that fail.
    on_finishCOMBOstopstop: end the run once every image has been handed out. loop: forget the progress and start over.
    sort_byCOMBOname2 options: name, modified
    include_subdirsBOOLEANfalseWalk subfolders too. The pass/reject folders and any other dot-folders are always skipped.
    create_dirsBOOLEANtrueCreate the pass/reject subfolders if missing.
    trackerSTRINGdefaultName of this run's progress marker. Use different names to walk one folder several times independently.

    Outputs (9)

    NameTypeDescription
    imageIMAGE—
    maskMASK—
    source_pathSTRING—
    pass_dirSTRING—
    fail_dirSTRING—
    filenameSTRING—
    indexINT—
    totalINT—
    progressSTRING—