Skip to content

Commit

Permalink
W&B epoch logging update (ultralytics#2073)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jan 29, 2021
1 parent f184874 commit 2336270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def train(hyp, opt, device, tb_writer=None, wandb=None):
if tb_writer:
tb_writer.add_scalar(tag, x, epoch) # tensorboard
if wandb:
wandb.log({tag: x}) # W&B
wandb.log({tag: x}, step=epoch, commit=tag == tags[-1]) # W&B

# Update best mAP
fi = fitness(np.array(results).reshape(1, -1)) # weighted combination of [P, R, mAP@.5, mAP@.5-.95]
Expand Down

0 comments on commit 2336270

Please sign in to comment.