Skip to content

Commit

Permalink
permit to log visualization result to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
MendelXu committed Nov 29, 2021
1 parent a872c20 commit 4a0553f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssod/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def log_image_with_boxes(
if not (interval == 1 or _log_counter[key] % interval == 1):
return
if backend == "auto":
if wandb is None:
if (wandb is None) or (wandb.run is None):
backend = "file"
else:
backend = "wandb"
Expand Down

0 comments on commit 4a0553f

Please sign in to comment.