Skip to content

Commit

Permalink
parameter setting
Browse files Browse the repository at this point in the history
  • Loading branch information
acetylSv committed Mar 6, 2018
1 parent c23672e commit 6bcfe06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ feat/
cycle_gan_vc_log/
get_train_infer.py
test.py
get.sh
4 changes: 2 additions & 2 deletions cycle_gan_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ def __init__(self, mode="train"):

# Training Scheme
self.global_step = tf.Variable(0, name='global_step', trainable=False)
self.gen_optimizer = tf.train.AdamOptimizer(learning_rate=hp.lr*2)
self.dis_optimizer = tf.train.AdamOptimizer(learning_rate=hp.lr)
self.gen_optimizer = tf.train.AdamOptimizer(learning_rate=hp.lr*2, beta1=0.5)
self.dis_optimizer = tf.train.AdamOptimizer(learning_rate=hp.lr, beta1=0.5)

with tf.variable_scope('gen_train'):
gvs = self.gen_optimizer.compute_gradients(
Expand Down
2 changes: 1 addition & 1 deletion hyperparams.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Hyperparams:
lr = 0.0001
batch_size = 1
fix_seq_length = 128
summary_period = 3
summary_period = 300
save_period = 500
LAMBDA_CYCLE = 10
LAMBDA_IDENTITY = 5
Expand Down

0 comments on commit 6bcfe06

Please sign in to comment.