A simple utility node for creating a VRAM boundary.
Because some workflows pass images directly from one model to another, I often ran into OOM errors.
This node saves the incoming IMAGE to disk and reloads it immediately, forcing upstream tensors to unload.
Use it between heavy preprocessors and samplers to avoid first-run OOM.
- ComfyUI Manager → Install from URL → paste this repo URL
- or
git clone https://github.com/teepunkt-esspunkt/ComfyUI-SaveAndReload-Image.gitintoComfyUI/custom_nodes/
Save & Reload Image (category: IO)
- Inputs:
imagetemp_folder(defaultoutput/temp)filename(bgstrip.png)also_save_perm(checkbox)perm_folder(defaultoutput/saved)
- Output:
reloaded_image(BHWC float, shape 1×H×W×3)
Use this node in between heavy preprocessors (like background removal) and samplers.
It forces a disk round-trip so the preprocessor frees VRAM before the sampler starts.