ComfyUI Stuck on VAE Decode: Why It Hangs and How to Finish

ComfyUI workflow paused at the VAE Decode stage

If ComfyUI reaches VAE Decode and then appears frozen, the usual cause is not a stalled prompt: decoding the latent image needs more GPU memory than is available. The keyword comfyui stuck on vae decode often describes a memory bottleneck at the final stage, especially with a large image, a tiled workflow that is not enabled, or other GPU workloads running.

Why this happens

Sampling produces a compact latent representation; VAE Decode turns it into a full pixel image. That step can create a sharp memory spike, so a workflow may finish sampling but fail to decode or save. A slow decode can also look frozen while the GPU is still working.

  • VRAM pressure: The decoded image and model weights need memory at the same time.
  • High output resolution or batch size: Larger outputs require more memory during decoding.
  • VAE or workflow overhead: A separate VAE, multiple loaded models, or other GPU applications leave less headroom.

1. Check whether the decode is still working

Open Task Manager with Ctrl+Shift+Esc, choose Performance, and inspect GPU activity and dedicated GPU memory while ComfyUI is at VAE Decode. On other systems, use the GPU monitor supplied with your driver. If utilization or memory use is changing, wait a few minutes before interrupting the run; a large image or slower GPU may take time. If activity stays flat and ComfyUI reports an out-of-memory error in its console, continue with the memory fixes below.

2. Reduce image size and batch size

In the workflow, lower the width and height on the node that sets the latent image size, such as Empty Latent Image, and set batch size to one. Use the dimensions appropriate for your model and desired output; avoid jumping to a much larger resolution while troubleshooting. Queue the same prompt again. If it decodes at the smaller size, the original output exceeded available memory.

3. Enable tiled VAE decoding

When available, replace the regular VAE decode node with the tiled decode option supplied by your installed ComfyUI version or node pack. Tiled decoding processes sections of the image to reduce peak VRAM use. Search the node menu for tiled VAE decode and check the node's inputs; names and availability vary by installation. If the output completes, the decode memory peak was the likely cause. Tiling may introduce seams in some workflows, so inspect the result.

4. Try ComfyUI's low-memory launch option

Close ComfyUI, then start it using the low-VRAM option supported by your installation. For a standard command-line setup, check the launcher or run python main.py --help and use the listed --lowvram option if available. Packaged builds may have their own launch scripts or options, so check their menu or documentation. This can reduce memory pressure, though it may slow generation; a successful decode after restarting is a useful confirmation.

5. Free GPU memory before running

Close other GPU-heavy applications, including games, video editors, and other local AI tools such as Ollama or LM Studio. If you use a second ComfyUI window, close it too. Check dedicated GPU memory again, then queue the workflow. If it now decodes, another application or loaded model was competing for VRAM.

6. Check the VAE and workflow connections

Confirm that the VAE Decode node receives the intended latent output and a compatible VAE. In common workflows, the VAE comes from a checkpoint loader or a separate VAE loader; reconnecting nodes or changing checkpoints can leave a mismatched selection. Choose the VAE intended for the model, then run a small test image. A clean decode on that test points to the previous VAE selection or workflow setup.

7. Restart and update the installation if the problem persists

Save the workflow, stop ComfyUI, and restart it to unload models and clear accumulated GPU use. If the same small test still hangs, check the console output and your installed ComfyUI and GPU driver guidance before updating. Use the update method for your installation, then test with a basic workflow. A repeatable failure with a small image and a compatible VAE suggests an installation, driver, or node issue rather than just an oversized output.

Likely causeTypical symptomQuick test
VRAM limitSampling finishes; decode stalls or reports memory exhaustionLower dimensions and use batch size one
GPU contentionDecode works after closing another applicationCheck dedicated memory with other tools closed
VAE or workflow issueSmall outputs also fail, or the VAE was changedTry a basic workflow with the model's intended VAE

FAQ

Why does ComfyUI stop at VAE Decode?

The VAE is converting the sampled latent into a full image, which can need a large amount of memory. If GPU memory is tight, this final step may be much slower than sampling or may fail.

How long should VAE Decode take in ComfyUI?

It depends on your GPU, image dimensions, VAE, and workflow. Watch GPU activity and memory use before deciding it is frozen; changing activity suggests the decode is still running.

Does tiled VAE decode fix ComfyUI stuck on VAE decode?

It can help when the problem is a peak memory limit because it decodes image sections. Availability and settings depend on your ComfyUI version and installed nodes, and tiling does not fix every workflow or VAE problem.

For most cases, start by checking GPU activity, lowering the output size, and closing other GPU-heavy applications before trying tiled decode. If a small test still fails, keep the console output and workflow details and use them to investigate a VAE, node, driver, or installation problem.

Photo: Jacek Halicki / CC BY-SA 4.0 (Wikimedia Commons)

Leave a Comment

Gemini API Quota Exceeded in Apps Script: Backoff Plan

Gemini API Quota Exceeded in Apps Script: Backoff Plan

Fix gemini app script quota exceeded errors in Apps Script with practical checks for API limits, retries, batching, and the right Gemini project.

ChatGPT Export Missing Messages: What Actually Exports

ChatGPT Export Missing Messages: What Actually Exports

ChatGPT export conversation missing? Learn what the archive includes, why messages may be absent, and how to check account, chat history, and export settings.

Copilot Cant Build Your Pivot Table: Do This Instead

Copilot Cant Build Your Pivot Table: Do This Instead

Copilot Excel pivot table help: fix source data, check Copilot access, and build a reliable PivotTable manually when AI can’t create it.

Teams Transcript Not Showing: Policy, Licence and Fix

Teams Transcript Not Showing: Policy, Licence and Fix

Fix teams transcript not showing issues by checking meeting policy, organizer controls, licensing, transcript access, and where Teams stores completed transcripts.

Whisper SRT Timing Drifts: Fix Subtitle Sync by Hand

Whisper SRT Timing Drifts: Fix Subtitle Sync by Hand

Fix whisper srt timing off by checking audio alignment, transcript edits, export settings, and manual SRT timestamps so subtitles stay in sync.

ChatGPT Mangles PDF Tables: 6 Prompts That Fix It

ChatGPT Mangles PDF Tables: 6 Prompts That Fix It

Fix chatgpt pdf table extraction wrong results with six practical prompts, source checks, and export steps for cleaner tables in ChatGPT and other AI assistants.

ChatGPT Canvas Not Saving: Version and Cache Fixes

ChatGPT Canvas Not Saving: Version and Cache Fixes

Fix chatgpt canvas not saving by checking save status, connection, browser cache, extensions, and workspace access, then recover or copy your latest edits safely.

Gemini Deep Research Not Available: Region and Plan Checks

Gemini Deep Research Not Available: Region and Plan Checks

Fix gemini deep research not available by checking your account type, plan, region, age eligibility, administrator controls, and temporary usage limits.

Gemini in Google Sheets Not Showing: Workspace Settings

Gemini in Google Sheets Not Showing: Workspace Settings

Fix gemini in google sheets not showing by checking Workspace eligibility, admin controls, smart features, file format, account selection, and browser issues.

NotebookLM Source Limit: How to Feed 300+ Documents

NotebookLM Source Limit: How to Feed 300+ Documents

Hit the notebooklm source limit? Learn how to combine files, split notebooks by project, and check current limits so you can use 300+ work documents effectively.