mirror of https://github.com/coqui-ai/TTS.git
change lr_decay config field to noam_schedule
This commit is contained in:
parent
9d666af715
commit
6e09224697
2
train.py
2
train.py
|
@ -602,7 +602,7 @@ def main(args): # pylint: disable=redefined-outer-name
|
||||||
if num_gpus > 1:
|
if num_gpus > 1:
|
||||||
model = apply_gradient_allreduce(model)
|
model = apply_gradient_allreduce(model)
|
||||||
|
|
||||||
if c.lr_decay:
|
if c.noam_schedule:
|
||||||
scheduler = NoamLR(optimizer,
|
scheduler = NoamLR(optimizer,
|
||||||
warmup_steps=c.warmup_steps,
|
warmup_steps=c.warmup_steps,
|
||||||
last_epoch=args.restore_step - 1)
|
last_epoch=args.restore_step - 1)
|
||||||
|
|
Loading…
Reference in New Issue