Skip to content

Commit

Permalink
Update vae_keras_cnn.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bojone authored Jun 10, 2019
1 parent 080d90d commit d6fc517
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions vae_keras_cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
from keras.datasets import mnist


batch_size = 100
latent_dim = 2 # 隐变量取2维只是为了方便后面画图
intermediate_dim = 256
epochs = 50


# 加载MNIST数据集
(x_train, y_train_), (x_test, y_test_) = mnist.load_data()

Expand All @@ -38,12 +32,13 @@

# 网络参数
input_shape = (image_size, image_size, 1)
batch_size = 128
batch_size = 100
kernel_size = 3
filters = 16
latent_dim = 2
latent_dim = 2 # 隐变量取2维只是为了方便后面画图
epochs = 30


x_in = Input(shape=input_shape)
x = x_in

Expand Down

0 comments on commit d6fc517

Please sign in to comment.