pull/1502/head
Simon Schrodi 2 years ago
parent 8a1ba67a50
commit aceb79e002

@ -714,7 +714,7 @@ def main():
elif resume_epoch is not None: elif resume_epoch is not None:
start_epoch = resume_epoch start_epoch = resume_epoch
if lr_scheduler is not None and start_epoch > 0: 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) lr_scheduler.step_update(start_epoch * updates_per_epoch)
else: else:
lr_scheduler.step(start_epoch) lr_scheduler.step(start_epoch)

Loading…
Cancel
Save