ComfyUI Node Runs on cloud
Save Dataset
Write a dataset's captions back beside its pictures, or export a copy of the set, pictures and captions, into another folder. Every file takes its item's name, so edited captions return to the pictures they describe.
Save Dataset
- dataset
◄root▾►
◄folder►
◄write▾►
◄caption_extension.txt►
◄existingskip►
CategoryWAS Suite/Dataset
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| dataset | WAS_DATASET | The pictures and captions to write: from Load Dataset, or Dataset Update after the captions were edited. Each item is written under its own name, such as `cat` or `set_b/cat`. | |
| root | COMBO | `input`, `output` or `temp` = ComfyUI's own folders, `input` being where Load Dataset reads; any folder under paths.allow_write or paths.allow_read in config.yaml is listed by its own name. folder names the path below it. | |
| folder | STRING | Folder below root, as `lora/cats`; empty = root itself. Tokens are expanded, as `export/[time(%Y-%m-%d)]`. Point root and folder at the dataset's own folder to save captions back in place. | |
| write | COMBO | `captions` = only the caption files, beside pictures already there; `pictures and captions` = a copy of the set: each picture copied byte for byte, or saved as PNG where a node replaced it, with its caption. | |
| caption_extension | STRING | .txt | The caption file's ending: `.txt` writes cat.txt beside cat.png; `.caption` writes cat.caption. An item with no caption writes no caption file, and nothing is ever deleted. |
| existing | COMBO | skip | Where a file is already there: `replace` = write over it when its content differs, leave it when the same; `skip` = leave it alone; `number` = write under the next free name, as cat_0001.png with cat_0001.txt. |
Outputs (0)
No outputs