Skip to content

Instantly share code, notes, and snippets.

@madebyollin
Last active July 23, 2024 04:35
Show Gist options
  • Save madebyollin/ff6aeadf27b2edbc51d05d5f97a595d9 to your computer and use it in GitHub Desktop.
Save madebyollin/ff6aeadf27b2edbc51d05d5f97a595d9 to your computer and use it in GitHub Desktop.
notes_on_sd_vae

Notes / Links about Stable Diffusion VAE

Stable Diffusion's VAE is a neural network that encodes images into a compressed "latent" format and decodes them back. The encoder performs 48x lossy compression, and the decoder generates new detail to fill in the gaps.

(Calling this model a "VAE" is sort of a misnomer - it's an encoder with some very slight KL regularization, and a conditional GAN decoder)

This document is a big pile of various links with more info.

VAE Versions & Lineage

Other SD-VAE-related Codebases

Other Info

@madebyollin
Copy link
Author

...and of course, comparison of tiny VAE reconstruction quality on challenging images 😅
tiny_vae_reconstructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment