Buffer
Installation
Copy the code into a .py
file in your ComfyUI/custom_nodes
directory, and then restart ComfyUI and refresh your ComfyUI tab.
Description
Nodes that buffer values but do not require inputs to be present. This allows you to split generation up in to many steps that can be run over multiple queuings. The basic idea is to have a group of nodes creating the input for a buffer on one queue, then you disable said nodes and use the output of the buffer on the next queue.
Example workflow
You can copy the bellow code into a .json
file and load it with ComfyUI. In this workflow you start by enabling the "Low" group and generating a low-res image. After that your latent is buffered so you can disable the "Low" group and enable the "High" group and generate an upscaled image. This simple workflow allows you to generate low-res images until you're happy with the result and then move to doing high-res passes until you're happy there as well.
Changelog
- 2024-01-12 - Switched to using the
create_buffer
function to programmatically generate the buffer classes. Added support for CONDITIONING, and STRING types. More types can easily be added by adding the type string tobuffer_types
.