mirror of
https://github.com/wassname/TTS.git
synced 2026-10-22 11:25:56 +08:00
set learning rate for restored model
This commit is contained in:
1 parent
d03865ed05
commit
4fad1971cd
1 file changed
+2
@@ -389,6 +389,8 @@ def main(args):
|
||||
criterion.cuda()
|
||||
criterion_st.cuda()
|
||||
optimizer.load_state_dict(checkpoint['optimizer'])
|
||||
for group in optimizer.param_groups:
|
||||
group['lr'] = c.lr
|
||||
print(
|
||||
" > Model restored from step %d" % checkpoint['step'], flush=True)
|
||||
start_epoch = checkpoint['epoch']
|
||||
|
||||
Reference in new issue
Block a user