Stable Diffusion Generating Black Images — How to Fix It
Stable Diffusion producing completely black images is one of the most common frustrations for both new and experienced users. This issue typically appears after changing model weights, VAE files, or launch arguments. It affects users running AUTOMATIC1111, ComfyUI, and other frontends on both local machines and cloud GPU environments.
Why does this error happen?
How to fix it
Disable --no-half or Switch to --no-half-vae
If you are launching with the --no-half flag, try removing it first, then relaunch the application. If black images persist, add --no-half-vae instead, which forces the VAE decoder to run in full float32 precision without affecting overall VRAM usage as severely as --no-half alone.
Switch to a Known-Good VAE (vae-ft-mse-840000)
Download the vae-ft-mse-840000-ema-pruned.safetensors file and place it in your models/VAE folder. In AUTOMATIC1111, navigate to Settings → Stable Diffusion → SD VAE and select it from the dropdown, then apply and generate again. This VAE is widely tested and resolves black image issues caused by a corrupt or incompatible embedded VAE in certain checkpoint files.
Lower Your CFG Scale Below 15
Open your generation settings and confirm the CFG scale (classifier-free guidance) is set to a value between 5 and 12 for most models. Values above 15 can drive latent activations into extreme ranges that the VAE cannot decode correctly, resulting in black or heavily saturated outputs. Reduce the value incrementally and re-run your prompt to verify the fix.
Disable xformers and Retest
Remove the --xformers flag from your launch script and restart the server to rule out a memory attention conflict introduced by your installed xformers version. If images render correctly without xformers, try updating xformers via pip install -U xformers before re-enabling it. This is especially relevant after upgrading PyTorch or switching CUDA versions.
💡 Pro Tip
Always pin a specific VAE in your Settings rather than relying on the model's embedded VAE — this single habit eliminates the majority of black image regressions when you switch between checkpoints.
Frequently Asked Questions
Why do black images only appear on some prompts and not others?
Can a corrupted model checkpoint cause black images?
Does this issue affect SDXL models differently than SD 1.5?
Will running on a cloud GPU fix the black image problem?
Quick diagnostic checklist
Before diving into the full fix, run through these quick checks — they resolve the issue in most cases without additional steps:
Common root causes
Understanding why this error occurs helps you prevent it in the future. The most frequent causes are:
- Insufficient GPU VRAM for the selected model
- Corrupted model checkpoint file
- Outdated GPU drivers
- Python dependency conflicts in the installation
- Incompatible CUDA version for the installed PyTorch
Still not working?
If none of the steps above resolved the issue, the next step is to contact Stable Diffusion support directly. When reaching out, include:
- • The exact error message or code you see
- • The steps you already tried from this guide
- • Your account plan and the approximate time the error started
- • Your browser/OS version if it is a web interface issue
About Stable Diffusion
Stable Diffusion is an open-source AI image generation model developed by Stability AI. Unlike cloud-based tools, it can be run locally on consumer GPUs. It is accessible via Automatic1111 WebUI, ComfyUI, and cloud platforms like DreamStudio. Local installations require a compatible NVIDIA or AMD GPU with at least 4GB VRAM.
Browse all Stable Diffusion error guides →