Skip to content

Commit

Permalink
W&B epoch logging update (#2073)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Jan 29, 2021
1 parent 630ec06 commit 2acbe96
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, [email protected], [email protected]]
Expand Down

0 comments on commit 2acbe96

Please sign in to comment.