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 authored Jan 29, 2021
1 parent 7886b2f commit c900f7c
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 c900f7c

Please sign in to comment.