July 2019
Intermediate to advanced
512 pages
19h 39m
English
Now that we have understood how the VAE model works, in this section, we will learn how to use VAE to generate images.
Import the required libraries:
import warningswarnings.filterwarnings('ignore')import numpy as npimport matplotlib.pyplot as pltfrom scipy.stats import normfrom tensorflow.keras.layers import Input, Dense, Lambdafrom tensorflow.keras.models import Modelfrom tensorflow.keras import backend as Kfrom tensorflow.keras import metricsfrom tensorflow.keras.datasets import mnistimport tensorflow as tftf.logging.set_verbosity(tf.logging.ERROR)
Read now
Unlock full access