Generating digits by interpolating latent space with VAE

Version 1.4 (6.77 MB) by Kenta
Continuous digit generation using variational auto encoder (VAE) by interpolating the latent space. VAEによる数字の自動生成


Updated 8 May 2020

View License

This demo generates a hand-written number gradually changing from a certail digit to other digits using variational auto encoder (VAE). The official documentation entitled "Train Variational Autoencoder (VAE) to Generate Images" was reffered for this demo as shown below.
The original paper is shown below
Kingma, Diederik P and Welling, Max. Auto-Encoding Variational Bayes. In The 2nd International Conference on Learning Representations (ICLR), 2013.
Note that this kind of demo has been already made, for example,
Here in this demo, the code with MATLAB is shown.
For example, VAE can be used for anomaly detection.

変分オートエンコーダ(Variational Auto Encoder)と手書き数字のデータセットを用いて、数字を自動生成します。

[Key words]
deep learning, generative model, hand-drawn, hand-written, MINIST, reconstruction, VAE, variational auto encoder
Other reference
[1] 巣籠 悠輔, 詳説ディープラーニング: 生成モデル編 Kindle版 (amazon)
[2] Federico Errica, "Step-By-Step Derivation of SNE and t-SNE gradients"'StepByStep+Derivation+of+SNE+and+tSNE+gradients'
[3] Dr Stephen Odaibo: Variational Inference & Derivation of the Variational Autoencoder (VAE) Loss Function: A True Story
[4] 高校数学の美しい物語:対数和不等式の証明と応用
[5] van der Maaten, Laurens, and Geoffrey Hinton. Visualizing Data using t-SNE. J. Machine Learning Research 9, 2008, pp. 2579–2605.

Cite As

Kenta (2023). Generating digits by interpolating latent space with VAE (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Keywords added


Explanation added


Description added


efficiency improved


Title changed