From 47ed153391997a903f51c2047676f41e3bc38008 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 15 Jan 2021 12:09:53 -0800 Subject: [PATCH] W&B mosaic log bug fix (#1949) --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index f0ad206d4b94..e799b31547c5 100644 --- a/train.py +++ b/train.py @@ -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()]})