An interactive variational autoencoder (VAE) with a 2-D latent space, trained in your browser on MNIST, Fashion-MNIST or 2-D point clouds. The latent plot shows the prior p(z), the encoded data colored by class and the posterior q(z | x) for one observation, with the input on one side and the decoder’s output on the other. MNIST starts from pretrained networks; the encoder and decoder are drawn along the bottom.
Things to try
- Drag the sample z anywhere in the latent space and watch the decoded image change, or step through observations to see where each one is encoded.
- Raise the KL weight β to pull the encodings toward the prior, or lower it toward a plain autoencoder.
- Switch to 4 or 8 latent dimensions: the latent space is then drawn as one plot per pair of dimensions.
- On the 2-D datasets (moons, circles, blobs, a spiral), show the reconstructions and the model’s density p(x) under Display.
Related demos
All demos