Nodes/ComfyUI-SA-Nodes-QQ/Load Image Pair_ From Path (QQ)
ComfyUI Node

Load Image Pair_ From Path (QQ)

Scans a folder for image pairs: the image in the folder itself and its counterpart in the 'control' sub-folder with the same name (extension may differ, e.g. a.png + control/a.jpg). Outputs parallel lists: control (from 'control'), result (from the folder itself) and path (full file paths of the result images, file extension stripped). Only complete pairs are output. With skip_existing enabled, pairs that already have a non-empty '<name>.txt' next to the result image are left out, so captioning runs can be resumed.

By siraxe·Created about a year ago·Updated 2 days ago· 74
Load Image Pair_ From Path (QQ)
    • control
    • result
    • path
    ◄path►
    ◄skip_existingfalse►
    CategoryWanVideoWrapper_QQ/image

    Inputs (2)

    NameTypeDefaultDescription
    pathSTRINGFolder with the images. Each image needs a name-matching counterpart in the 'control' sub-folder (extension may differ). Quoted paths are accepted.
    skip_existingoptBOOLEANfalseWhen enabled, pairs whose result image already has a non-empty '<name>.txt' next to it (in the folder itself, never in 'control') are not output. Useful to resume captioning runs; empty (0-byte) .txt files count as missing.

    Outputs (3)

    NameTypeDescription
    controlIMAGE—
    resultIMAGE—
    pathSTRING—