Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/3_NeuralNetworks/dcgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def discriminator(x, reuse=False):
# Build Generator Network
gen_sample = generator(noise_input)

# Build 2 Discriminator Networks (one from noise input, one from generated samples)
# Build 2 Discriminator Networks (one from real image input, one from generated samples)
disc_real = discriminator(real_image_input)
disc_fake = discriminator(gen_sample, reuse=True)
disc_concat = tf.concat([disc_real, disc_fake], axis=0)
Expand Down Expand Up @@ -135,7 +135,7 @@ def discriminator(x, reuse=False):
z = np.random.uniform(-1., 1., size=[batch_size, noise_dim])

# Prepare Targets (Real image: 1, Fake image: 0)
# The first half of data fed to the generator are real images,
# The first half of data fed to the discriminator are real images,
# the other half are fake images (coming from the generator).
batch_disc_y = np.concatenate(
[np.ones([batch_size]), np.zeros([batch_size])], axis=0)
Expand Down