Skip to content

Commit

Permalink
chore: log more info to tensorboard (#1608)
Browse files Browse the repository at this point in the history
chore: log more info to tensorboard
  • Loading branch information
sauravkdeo committed May 15, 2023
1 parent bb9185c commit 54a51e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions yolox/core/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ def after_iter(self):
)

if self.rank == 0:
if self.args.logger == "tensorboard":
self.tblogger.add_scalar(
"train/lr", self.meter["lr"].latest, self.progress_in_iter)
for k, v in loss_meter.items():
self.tblogger.add_scalar(
f"train/{k}", v.latest, self.progress_in_iter)
if self.args.logger == "wandb":
metrics = {"train/" + k: v.latest for k, v in loss_meter.items()}
metrics.update({
Expand Down

0 comments on commit 54a51e1

Please sign in to comment.