A custom nodes package for ComfyUI that enhances workflow flexibility by providing specialized nodes for saving and loading intermediate data (encoded prompts and sampled latents) in multiple formats. This package leverages helper classes for file I/O, supports gzip compression for efficient storage, and integrates progress feedback via a progress bar to improve user experience during long operations.
A custom nodes package for ComfyUI that enhances workflow flexibility by providing specialized nodes for saving and loading intermediate data. This package makes it easy to store and retrieve encoded prompts and sampled latents in multiple formats, with support for compression to optimize storage space.
Clone this repository into your ComfyUI custom_nodes directory:
cd custom_nodes
git clone https://github.com/austinbrown34/comfyui-io-helpers.git
EncodedPromptToFile
EncodedPromptFromFile
SampledLatentsToFile
SampledLatentsFromFile
# Example workflow using EncodedPromptToFile
encoded_prompt_node = EncodedPromptToFile(
conditioning=your_conditioning,
filename_prefix="my_prompt",
output_format="pt",
compress=True
)
# Example workflow using SampledLatentsFromFile
latents_node = SampledLatentsFromFile(
filepath="path/to/your/latents.pt.gz"
)
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
Austin Brown - [email protected]
For bugs and feature requests, please open an issue on the GitHub repository.