File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
examples/3_NeuralNetworks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ def discriminator(x, reuse=False):
82
82
# Build Generator Network
83
83
gen_sample = generator (noise_input )
84
84
85
- # Build 2 Discriminator Networks (one from noise input, one from generated samples)
85
+ # Build 2 Discriminator Networks (one from real image input, one from generated samples)
86
86
disc_real = discriminator (real_image_input )
87
87
disc_fake = discriminator (gen_sample , reuse = True )
88
88
disc_concat = tf .concat ([disc_real , disc_fake ], axis = 0 )
@@ -135,7 +135,7 @@ def discriminator(x, reuse=False):
135
135
z = np .random .uniform (- 1. , 1. , size = [batch_size , noise_dim ])
136
136
137
137
# Prepare Targets (Real image: 1, Fake image: 0)
138
- # The first half of data fed to the generator are real images,
138
+ # The first half of data fed to the discriminator are real images,
139
139
# the other half are fake images (coming from the generator).
140
140
batch_disc_y = np .concatenate (
141
141
[np .ones ([batch_size ]), np .zeros ([batch_size ])], axis = 0 )
You can’t perform that action at this time.
0 commit comments