mirror of https://github.com/coqui-ai/TTS.git
set learning rate for restored model
This commit is contained in:
parent
d28bbe09fb
commit
ca5b7d6c69
2
train.py
2
train.py
|
@ -389,6 +389,8 @@ def main(args):
|
||||||
criterion.cuda()
|
criterion.cuda()
|
||||||
criterion_st.cuda()
|
criterion_st.cuda()
|
||||||
optimizer.load_state_dict(checkpoint['optimizer'])
|
optimizer.load_state_dict(checkpoint['optimizer'])
|
||||||
|
for group in optimizer.param_groups:
|
||||||
|
group['lr'] = c.lr
|
||||||
print(
|
print(
|
||||||
" > Model restored from step %d" % checkpoint['step'], flush=True)
|
" > Model restored from step %d" % checkpoint['step'], flush=True)
|
||||||
start_epoch = checkpoint['epoch']
|
start_epoch = checkpoint['epoch']
|
||||||
|
|
Loading…
Reference in New Issue