Free | No tracking | Every fact with a source|German and English

Glossary / Image and video

VAE – explained simply

The VAE translates between visible pixels and the compressed latent that the image model works with.

Also: Variational Autoencoder, VAE Decode, VAE Encode

A VAE has two halves: the encoder shrinks an image into a latent, and the decoder turns a latent back into an image. For text-to-image, only the decoder is needed at the end; for img2img and inpainting, the encoder is also needed at the beginning.

Each model family has its own VAE, and they are not interchangeable. The wrong VAE creates washed-out colors, spots, or total chaos. Some checkpoints already include the VAE; otherwise, you download it separately into the models/vae folder.

Decoding large images can use a lot of VRAM. Tiled decoding processes the image in chunks and saves memory.

What does that mean for you? If images look gray, pale, or blotchy, first check whether the matching VAE is loaded for the model.

Related terms

Errors where that matters

Sources