Skip to content

Commit

Permalink
Merge branch 'master' into sgan
Browse files Browse the repository at this point in the history
  • Loading branch information
eriklindernoren authored Aug 17, 2018
2 parents 657e443 + 28aac98 commit 92a9bf9
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bgan/bgan.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
1 change: 1 addition & 0 deletions sgan/sgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,4 @@ def save(model, model_name):
if __name__ == '__main__':
sgan = SGAN()
sgan.train(epochs=20000, batch_size=32, sample_interval=50)

2 changes: 1 addition & 1 deletion wgan/wgan.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 92a9bf9

Please sign in to comment.