Skip to content

Commit

Permalink
W&B logging bug fix (ultralytics#1399)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Nov 17, 2020
1 parent 4250f84 commit 412b113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def test(data,
nt = torch.zeros(1)

# W&B logging
if plots and wandb:
if plots and wandb and wandb.run:
wandb.log({"Images": wandb_images})
wandb.log({"Validation": [wandb.Image(str(x), caption=x.name) for x in sorted(save_dir.glob('test*.jpg'))]})

Expand Down

0 comments on commit 412b113

Please sign in to comment.