from local

This commit is contained in:
dohe0342 2022-12-13 11:39:37 +09:00
parent d3a85874f8
commit 7210ba025b
2 changed files with 1 additions and 1 deletions

View File

@ -1311,7 +1311,7 @@ def run(rank, world_size, args, wb=None):
and ("scheduler" in checkpoints or "scheduler_enc" in checkpoints)
and checkpoints["scheduler"] is not None
):
if params.multi_optim:
if params.multi_optim and "scheduler_enc" in checkpoints:
scheduler_enc.load_state_dict(checkpoints["scheduler_enc"])
scheduler_dec.load_state_dict(checkpoints["scheduler_dec"])
else: