forked from ultralytics/yolov5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
W&B epoch logging update (ultralytics#2073)
- Loading branch information
1 parent
7886b2f
commit c900f7c
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]] | ||
|