Skip to content

Commit

Permalink
add lr to tensorboard
Browse files Browse the repository at this point in the history
  • Loading branch information
yizhou-wang committed Feb 7, 2022
1 parent 39ad741 commit b33860d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def parse_args():
writer.add_scalar('loss/loss_ave', loss_ave, iter_count)
writer.add_scalar('time/time_load', load_time, iter_count)
writer.add_scalar('time/time_back', back_time, iter_count)
writer.add_scalar('param/param_lr', scheduler.get_last_lr()[0], iter_count)

if stacked_num is not None:
confmap_pred = confmap_preds[stacked_num - 1].cpu().detach().numpy()
Expand Down

0 comments on commit b33860d

Please sign in to comment.