learning rate won't initial from 0.001 when continuing training from checkpoint

This commit is contained in:
blessyyyu 2022-04-14 15:08:08 +08:00
parent 255eec296a
commit 29124c9458

View File

@ -157,7 +157,9 @@ def main():
infos = {}
start_epoch = infos.get('epoch', -1) + 1
cv_loss = infos.get('cv_loss', 0.0)
# get the last epoch lr
lr_last_epoch = infos.get('lr', 0.001)
configs['optim_conf']['lr'] = lr_last_epoch
model_dir = args.model_dir
writer = None
if rank == 0: