Skip to content

Commit 9f5c279

Browse files
committed
Update log to describe scheduling behaviour diff w/ warmup_prefix
1 parent 363b043 commit 9f5c279

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

train.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,13 @@ def main():
832832
lr_scheduler.step(start_epoch)
833833

834834
if utils.is_primary(args):
835+
if args.warmup_prefix:
836+
sched_explain = '(warmup_epochs + epochs + cooldown_epochs). Warmup added to total when warmup_prefix=True'
837+
else:
838+
sched_explain = '(epochs + cooldown_epochs). Warmup within epochs when warmup_prefix=False'
835839
_logger.info(
836-
f'Scheduled epochs: {num_epochs}. LR stepped per {"epoch" if lr_scheduler.t_in_epochs else "update"}.')
840+
f'Scheduled epochs: {num_epochs} {sched_explain}. '
841+
f'LR stepped per {"epoch" if lr_scheduler.t_in_epochs else "update"}.')
837842

838843
results = []
839844
try:

0 commit comments

Comments
 (0)