Skip to content

Commit

Permalink
A better deeper GAN perhaps?
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragav Venkatesan committed Mar 5, 2017
1 parent f2e04e0 commit 0d1f763
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pantry/tutorials/gan.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def deep_gan (dataset, verbose = 1 ):
id = "G1",
num_neurons = 128,
activation = 'relu',
batch_norm = True,
# batch_norm = True,
verbose = verbose
)

Expand All @@ -343,7 +343,7 @@ def deep_gan (dataset, verbose = 1 ):
id = "G2",
num_neurons = 384,
activation = 'relu',
batch_norm = True,
# batch_norm = True,
verbose = verbose
)

Expand Down Expand Up @@ -371,7 +371,7 @@ def deep_gan (dataset, verbose = 1 ):
pool_size = (2,2),
activation = ('maxout', 'maxout', 2),
regularize = True,
batch_norm = True,
# batch_norm = True,
verbose = verbose
)

Expand All @@ -383,7 +383,7 @@ def deep_gan (dataset, verbose = 1 ):
pool_size = (2,2),
activation = ('maxout', 'maxout', 2),
regularize = True,
batch_norm = True,
# batch_norm = True,
input_params = net.dropout_layers['D1-x'].params,
verbose = verbose
)
Expand All @@ -396,7 +396,7 @@ def deep_gan (dataset, verbose = 1 ):
pool_size = (2,2),
activation = ('maxout', 'maxout', 2),
regularize = True,
batch_norm = True,
# batch_norm = True,
verbose = verbose
)

Expand All @@ -408,7 +408,7 @@ def deep_gan (dataset, verbose = 1 ):
filter_shape = (3,3),
pool_size = (2,2),
regularize = True,
batch_norm = True,
# batch_norm = True,
input_params = net.dropout_layers['D2-x'].params,
verbose = verbose
)
Expand All @@ -419,7 +419,7 @@ def deep_gan (dataset, verbose = 1 ):
num_neurons = 800,
activation = 'relu',
regularize = True,
batch_norm = True,
# batch_norm = True,
dropout_rate = 0.5,
verbose = verbose
)
Expand All @@ -431,7 +431,7 @@ def deep_gan (dataset, verbose = 1 ):
num_neurons = 800,
activation = 'relu',
regularize = True,
batch_norm = True,
# batch_norm = True,
dropout_rate = 0.5,
verbose = verbose
)
Expand All @@ -442,7 +442,7 @@ def deep_gan (dataset, verbose = 1 ):
num_neurons = 800,
activation = 'relu',
regularize = True,
batch_norm = True,
# batch_norm = True,
dropout_rate = 0.5,
verbose = verbose
)
Expand All @@ -453,8 +453,8 @@ def deep_gan (dataset, verbose = 1 ):
input_params = net.dropout_layers["D4-x"].params,
num_neurons = 800,
activation = 'relu',
# batch_norm = True,
regularize = True,
batch_norm = True,
dropout_rate = 0.5,
verbose = verbose
)
Expand Down Expand Up @@ -547,7 +547,7 @@ def deep_gan (dataset, verbose = 1 ):
learning_rates = (0.05, 0.01 )

net.train( epochs = (20),
k = 2,
k = 5,
pre_train_discriminator = 3,
validate_after_epochs = 1,
visualize_after_epochs = 1,
Expand Down

0 comments on commit 0d1f763

Please sign in to comment.