W&B logging bug fix (#1399)
This commit is contained in:
1 parent
4250f84dfb
commit
412b113ac6
1 file changed
+1
-1
@@ -221,7 +221,7 @@ def test(data,
|
|||||||
nt = torch.zeros(1)
|
nt = torch.zeros(1)
|
||||||
|
|
||||||
# W&B logging
|
# W&B logging
|
||||||
if plots and wandb:
|
if plots and wandb and wandb.run:
|
||||||
wandb.log({"Images": wandb_images})
|
wandb.log({"Images": wandb_images})
|
||||||
wandb.log({"Validation": [wandb.Image(str(x), caption=x.name) for x in sorted(save_dir.glob('test*.jpg'))]})
|
wandb.log({"Validation": [wandb.Image(str(x), caption=x.name) for x in sorted(save_dir.glob('test*.jpg'))]})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user