Skip to main content
SaveLatent saves latent tensors to disk as .latent files so they can be reused or shared later. It takes latent samples, writes them to the output folder with an automatically generated name, and can embed workflow metadata such as the prompt inside the saved file. The same latent samples are also passed through unchanged for further processing.

Inputs

Note: Each saved file is named using the prefix and a 5-digit counter, for example ComfyUI_00001_.latent, and is placed in the output directory. The file contains the latent tensor and a latent format version marker. Metadata is embedded in the saved file only when metadata support is enabled, that is, when ComfyUI is not started with the --disable-metadata option.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 137d52d589d93d8229940a8572621ab6eeb25a4e13ac05172e9f8609f1af038a