Skip to content

Instantly share code, notes, and snippets.

View SantiagoJN's full-sized avatar

Santiago Jiménez SantiagoJN

View GitHub Profile
@madebyollin
madebyollin / notes_on_sd_vae.md
Last active August 31, 2025 05:54
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.