This commit is contained in:
Simon Schrodi 2022-10-17 22:06:17 +02:00
parent 8a1ba67a50
commit aceb79e002

View File

@ -714,7 +714,7 @@ def main():
elif resume_epoch is not None:
start_epoch = resume_epoch
if lr_scheduler is not None and start_epoch > 0:
if args.step_on_updates:
if args.sched_on_updates:
lr_scheduler.step_update(start_epoch * updates_per_epoch)
else:
lr_scheduler.step(start_epoch)