mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
W&B epoch logging update (#2073)
This commit is contained in:
parent
630ec06af6
commit
2acbe9699a
2
train.py
2
train.py
@ -364,7 +364,7 @@ def train(hyp, opt, device, tb_writer=None, wandb=None):
|
|||||||
if tb_writer:
|
if tb_writer:
|
||||||
tb_writer.add_scalar(tag, x, epoch) # tensorboard
|
tb_writer.add_scalar(tag, x, epoch) # tensorboard
|
||||||
if wandb:
|
if wandb:
|
||||||
wandb.log({tag: x}) # W&B
|
wandb.log({tag: x}, step=epoch, commit=tag == tags[-1]) # W&B
|
||||||
|
|
||||||
# Update best mAP
|
# Update best mAP
|
||||||
fi = fitness(np.array(results).reshape(1, -1)) # weighted combination of [P, R, mAP@.5, mAP@.5-.95]
|
fi = fitness(np.array(results).reshape(1, -1)) # weighted combination of [P, R, mAP@.5, mAP@.5-.95]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user