Skip to content

Commit

Permalink
W&B mosaic log bug fix (ultralytics#1949)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jan 15, 2021
1 parent 40b1978 commit 47ed153
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 @@ -318,7 +318,7 @@ def train(hyp, opt, device, tb_writer=None, wandb=None):
# if tb_writer:
# tb_writer.add_image(f, result, dataformats='HWC', global_step=epoch)
# tb_writer.add_graph(model, imgs) # add model to tensorboard
elif plots and ni > 3 and wandb:
elif plots and ni == 10 and wandb:
wandb.log({"Mosaics": [wandb.Image(str(x), caption=x.name) for x in save_dir.glob('train*.jpg')
if x.exists()]})

Expand Down

0 comments on commit 47ed153

Please sign in to comment.