ComfyUI Node Runs on cloud

Load Dataset

Load a folder of training pictures and the caption saved beside each one as a dataset, read once and shared by every dataset node it feeds. Pictures are decoded only when a node needs their pixels.

By WASasquatch·Created 4 years ago·Updated 3 days ago· 1,900
Load Dataset
    • dataset
    • count
    • captioned
    • folder
    ◄folder▾►
    ◄pattern*►
    ◄caption_extension.txt►
    CategoryWAS Suite/Dataset

    Inputs (3)

    NameTypeDefaultDescription
    folderCOMBOThe folder holding the pictures: 'input' is ComfyUI's input folder itself; 'training/lara [input]' is that folder inside it. A wired path, such as `E:\images`, works too.
    patternSTRING*Which pictures to load: `*` = every picture in the folder; `**/*` = in subfolders too; `lara_*` = only names starting so.
    caption_extensionSTRING.txtExtension of the caption beside each picture: `.txt` reads cat.txt for cat.png. A picture with no such file is loaded uncaptioned.

    Outputs (4)

    NameTypeDescription
    datasetWAS_DATASETThe pictures and their captions, for Dataset to Lists, Dataset Filter, Dataset Health, Caption Statistics and Save Dataset.
    countINTHow many pictures were loaded.
    captionedINTHow many of them carry a caption.
    folderSTRINGThe picked folder below its root with a trailing slash: `training/tus [input]` = `training/tus/`; a root itself = empty. Wire it into a save node's folder or filename_prefix to write back in place.