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.

By WASasquatch·Created 4 years ago·Updated 3 days ago· 1,900
Save Dataset
  • dataset
    ◄root▾►
    ◄folder►
    ◄write▾►
    ◄caption_extension.txt►
    ◄existingskip►
    CategoryWAS Suite/Dataset

    Inputs (6)

    NameTypeDefaultDescription
    datasetWAS_DATASETThe 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`.
    rootCOMBO`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.
    folderSTRINGFolder 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.
    writeCOMBO`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_extensionSTRING.txtThe 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.
    existingCOMBOskipWhere 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