mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Merge pull request #1502 from infomon/main
Fix typo of "sched-on-updates" argument
This commit is contained in:
commit
44cea489fb
2
train.py
2
train.py
@ -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…
x
Reference in New Issue
Block a user