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.
Load Dataset
- dataset
- count
- captioned
- folder
◄folder▾►
◄pattern*►
◄caption_extension.txt►
CategoryWAS Suite/Dataset
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| folder | COMBO | The 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. | |
| pattern | STRING | * | Which pictures to load: `*` = every picture in the folder; `**/*` = in subfolders too; `lara_*` = only names starting so. |
| caption_extension | STRING | .txt | Extension of the caption beside each picture: `.txt` reads cat.txt for cat.png. A picture with no such file is loaded uncaptioned. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| dataset | WAS_DATASET | The pictures and their captions, for Dataset to Lists, Dataset Filter, Dataset Health, Caption Statistics and Save Dataset. |
| count | INT | How many pictures were loaded. |
| captioned | INT | How many of them carry a caption. |
| folder | STRING | The 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. |