Nodes/ComfyUI-outputlists-combiner/KSampler Immediate Save
ComfyUI Node

KSampler Immediate Save

Save every grid image the moment it's done, before the whole run finishes

By geroldmeisinger·Created 9 months ago·Updated 2 days ago· 184
KSampler Immediate Save
  • latent_image
  • image
ckpt_name
positive
negative
seed0
steps20
cfg8.0
sampler_name
scheduler
denoise1.00
filename_prefixComfyUI

Here's the problem this node solves, and it's a real one: in a big output-list run, ComfyUI waits until every image is processed before anything gets saved and the grid is assembled. A 27-image grid means 27 samplers finishing before the first PNG appears. If you cancel, or your GPU driver blinks, you lose the whole batch. The author calls this "the execution stalling problem," filed an RFC about it upstream, and built this beta node as a stopgap: it saves each image the moment it's done, one file at a time.

It's a node expansion - at runtime it copies the standard CheckpointLoaderSimple → CLIPTextEncode → KSampler → VAEDecode → SaveImage graph, wires your inputs in, and runs it as one unit per invocation. So you get immediate saving without any custom sampler logic. The author is openly ambivalent about it ("A custom KSampler just to save an image? Now I have become the very thing I sought to destroy!"), which should tell you exactly how much of a compromise it is - but it works, and for grid workflows it's a genuine safety net.

Finding it: it's hidden by default

This node lives in the _for_testing category, so it won't appear in search until you flip Settings → Comfy → Show experimental nodes in search on. Do that, and you'll find "KSampler Immediate Save."

The inputs that matter

They mirror the standard KSampler plus a checkpoint and a filename:

  • ckpt_name - checkpoint dropdown.
  • positive / negative - conditioning text.
  • latent_image, seed, steps, cfg, sampler_name, scheduler, denoise - all the usual suspects.
  • filename_prefix - save prefix, default ComfyUI; supports %date:...% formatting.

The single image output is the decoded image (not a list) - wire it onward if you still want the grid on top of the immediate saves.

The honest limitations

It only works with the stock pattern. No CFGGuider, no ModelShift, no dual samplers, no custom sampling. If your workflow deviates, the README says plainly: you have to extend the pack's ksampler_immediate_saveimage.py or use a different workaround (the PrimitiveInt control_after_generate=increment pattern, or for-loops). The author would rather you didn't need this node at all - it's explicitly a beta - but if your grid runs take minutes each and you value not re-running 20 of them because you cancelled at image 14, this is the one to grab.

Installing

Search "OutputLists Combiner" in ComfyUI Manager, or clone into ComfyUI/custom_nodes:

cd ComfyUI/custom_nodes
git clone https://github.com/geroldmeisinger/ComfyUI-outputlists-combiner
cd ComfyUI-outputlists-combiner
uv pip install -r requirements.txt

Restart after. The pack recommends running with --cache-ram alongside this so ComfyUI can pick up cached intermediate results after an interruption.

Category_for_testing

Inputs (11)

NameTypeDefaultDescription
ckpt_nameCOMBOThe name of the checkpoint (model) to load.
positiveSTRINGThe conditioning describing the attributes you want to include in the image.
negativeSTRINGThe conditioning describing the attributes you want to exclude from the image.
latent_imageLATENTThe latent image to denoise.
seedINT00–1152921504606847000The random seed used for creating the noise.
stepsINT201–10000The number of steps used in the denoising process.
cfgFLOAT8.00–100The Classifier-Free Guidance scale balances creativity and adherence to the prompt. Higher values result in images more closely matching the prompt however too high values will negatively impact quality.
sampler_nameCOMBOThe algorithm used when sampling , this can affect the quality , speed , and style of the generated output.
schedulerCOMBOThe scheduler controls how noise is gradually removed to form the image.
denoiseFLOAT1.000–1The amount of denoising applied , lower values will maintain the structure of the initial image allowing for image to image sampling.
filename_prefixSTRINGComfyUIThe prefix for the file to save. This may include formatting information such as %date :yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes.

Outputs (1)

NameTypeDescription
imageIMAGEThe decoded image.