Nodes/ComfyUI-Pixaroma/Load Texts from Folder Pixaroma
ComfyUI Node

Load Texts from Folder Pixaroma

Load Texts from Folder Pixaroma - reads the .txt files of a folder and sends them through the workflow one by one, the way Load Images from Folder does with pictures. Type the folder, or click Browse: empty means ComfyUI's output folder, a name like Training Set means a folder inside output, and a full path works for any folder you approved with Browse. Nothing wired into names: every .txt in the folder, in name order. Wire Load Images from Folder's filename into names and you get the text that belongs to EACH picture, in the same order: 01_Cat.png gets 01_Cat.txt. A picture with no text file gets an empty text, so pictures and texts always stay together. Made for the captions and prompts Save Text writes with One file per entry: fix a few by hand (Caption Review Pixaroma), then Run again with them. Files over 1 MB are skipped.

By pixaroma·Created 7 months ago·Updated a day ago· 426
Load Texts from Folder Pixaroma
    • text
    • filename
    • index
    • total
    ◄folder►
    ◄names—►
    Category👑 Pixaroma/💬 Prompt & Text

    Inputs (2)

    NameTypeDefaultDescription
    folderSTRINGThe folder with the .txt files. Empty = ComfyUI's output folder; a name like Training Set = a folder inside output; or a full path to a folder you approved with Browse.
    namesoptSTRINGOptional. Wire Load Images from Folder's filename here to get the text of EACH picture (01_Cat gets 01_Cat.txt), in the pictures' order.

    Outputs (4)

    NameTypeDescription
    textSTRINGEach text in turn. The rest of the workflow runs once per text.
    filenameSTRINGEach text's file name without .txt (or the wired picture name).
    indexINTWhich text this is, counting from 1.
    totalINTHow many texts this Run sends. The same number on every one.