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.
Code example
# Try this launch config for black image issues
python launch.py --no-half-vae --xformersPro 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.