提交 47e31f46 编写于 作者: W WongLaw

VITS learning rate revised, test=tts

上级 414de374
...@@ -231,7 +231,7 @@ def train_sp(args, config): ...@@ -231,7 +231,7 @@ def train_sp(args, config):
trainer = Trainer( trainer = Trainer(
updater, updater,
stop_trigger=(config.train_max_steps, "iteration"), stop_trigger=(config.max_epoch, 'epoch'),
out=output_dir) out=output_dir)
if dist.get_rank() == 0: if dist.get_rank() == 0:
......
...@@ -166,6 +166,7 @@ class VITSUpdater(StandardUpdater): ...@@ -166,6 +166,7 @@ class VITSUpdater(StandardUpdater):
gen_loss.backward() gen_loss.backward()
self.optimizer_g.step() self.optimizer_g.step()
# learning rate updates on each epoch.
if self.state.iteration % self.updates_per_epoch == 0: if self.state.iteration % self.updates_per_epoch == 0:
self.scheduler_g.step() self.scheduler_g.step()
...@@ -203,6 +204,7 @@ class VITSUpdater(StandardUpdater): ...@@ -203,6 +204,7 @@ class VITSUpdater(StandardUpdater):
dis_loss.backward() dis_loss.backward()
self.optimizer_d.step() self.optimizer_d.step()
# learning rate updates on each epoch.
if self.state.iteration % self.updates_per_epoch == 0: if self.state.iteration % self.updates_per_epoch == 0:
self.scheduler_d.step() self.scheduler_d.step()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册