Skip to content

Commit

Permalink
Merge pull request #68 from Ero98/patch-1
Browse files Browse the repository at this point in the history
Fix input shape of generator
  • Loading branch information
eriklindernoren committed Aug 17, 2018
2 parents 2ccd7cd + 022c254 commit 28aac98
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bgan/bgan.py
Expand Up @@ -36,7 +36,7 @@ def __init__(self):
self.generator = self.build_generator()

# The generator takes noise as input and generated imgs
z = Input(shape=(100,))
z = Input(shape=(self.latent_dim,))
img = self.generator(z)

# For the combined model we will only train the generator
Expand Down
2 changes: 1 addition & 1 deletion cgan/cgan.py
Expand Up @@ -35,7 +35,7 @@ def __init__(self):

# The generator takes noise and the target label as input
# and generates the corresponding digit of that label
noise = Input(shape=(100,))
noise = Input(shape=(self.latent_dim,))
label = Input(shape=(1,))
img = self.generator([noise, label])

Expand Down
2 changes: 1 addition & 1 deletion cogan/cogan.py
Expand Up @@ -39,7 +39,7 @@ def __init__(self):
self.g1, self.g2 = self.build_generators()

# The generator takes noise as input and generated imgs
z = Input(shape=(100,))
z = Input(shape=(self.latent_dim,))
img1 = self.g1(z)
img2 = self.g2(z)

Expand Down
2 changes: 1 addition & 1 deletion dcgan/dcgan.py
Expand Up @@ -35,7 +35,7 @@ def __init__(self):
self.generator = self.build_generator()

# The generator takes noise as input and generates imgs
z = Input(shape=(100,))
z = Input(shape=(self.latent_dim,))
img = self.generator(z)

# For the combined model we will only train the generator
Expand Down
2 changes: 1 addition & 1 deletion lsgan/lsgan.py
Expand Up @@ -34,7 +34,7 @@ def __init__(self):
self.generator = self.build_generator()

# The generator takes noise as input and generated imgs
z = Input(shape=(100,))
z = Input(shape=(self.latent_dim,))
img = self.generator(z)

# For the combined model we will only train the generator
Expand Down
2 changes: 1 addition & 1 deletion sgan/sgan.py
Expand Up @@ -36,7 +36,7 @@ def __init__(self):
self.generator = self.build_generator()

# The generator takes noise as input and generates imgs
noise = Input(shape=(100,))
noise = Input(shape=(self.latent_dim,))
img = self.generator(noise)

# For the combined model we will only train the generator
Expand Down
2 changes: 1 addition & 1 deletion wgan/wgan.py
Expand Up @@ -39,7 +39,7 @@ def __init__(self):
self.generator = self.build_generator()

# The generator takes noise as input and generated imgs
z = Input(shape=(100,))
z = Input(shape=(self.latent_dim,))
img = self.generator(z)

# For the combined model we will only train the generator
Expand Down
2 changes: 1 addition & 1 deletion wgan_gp/wgan_gp.py
Expand Up @@ -57,7 +57,7 @@ def __init__(self):
real_img = Input(shape=self.img_shape)

# Noise input
z_disc = Input(shape=(100,))
z_disc = Input(shape=(self.latent_dim,))
# Generate image based of noise (fake sample)
fake_img = self.generator(z_disc)

Expand Down

0 comments on commit 28aac98

Please sign in to comment.