Skip to content

Commit

Permalink
Updaing GAN a little.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragav Venkatesan committed Mar 10, 2017
1 parent 845efe4 commit e2e6353
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pantry/tutorials/gan.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def deep_deconvolutional_gan (dataset,

optimizer_params = {
"momentum_type" : 'nesterov',
"momentum_params" : (0.65, 0.65, 20),
"momentum_params" : (0.9, 0.99, 20),
"regularization" : (0.0001, 0.0001),
"optimizer_type" : 'rmsprop',
"id" : "main"
Expand Down Expand Up @@ -787,7 +787,7 @@ def deep_deconvolutional_gan (dataset,
learning_rates = (0.00004, 0.01 )

net.train( epochs = (20),
k = 3,
k = 1,
pre_train_discriminator = 3,
validate_after_epochs = 1,
visualize_after_epochs = 1,
Expand Down Expand Up @@ -819,8 +819,8 @@ def deep_deconvolutional_gan (dataset,
data = cm (verbose = 2)
dataset = data.dataset_location()

net = shallow_gan ( dataset, verbose = 2 )
net = deep_gan ( dataset, verbose = 2 )
# net = shallow_gan ( dataset, verbose = 2 )
# net = deep_gan ( dataset, verbose = 2 )
net = deep_deconvolutional_gan ( batch_norm = True,
dropout_rate = 0.5,
regularize = True,
Expand Down

0 comments on commit e2e6353

Please sign in to comment.