Skip to content

Commit

Permalink
Update requirements.txt (ultralytics#1869)
Browse files Browse the repository at this point in the history
* Update requirements.txt

* Add wandb.errors.UsageError

* bug fix
  • Loading branch information
glenn-jocher authored Dec 1, 2021
1 parent c35400c commit 9d0e1cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tqdm>=4.41.0

# Logging -------------------------------------
tensorboard>=2.4.1
# wandb
wandb

# Plotting ------------------------------------
pandas>=1.1.4
Expand Down
5 changes: 4 additions & 1 deletion utils/loggers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@

assert hasattr(wandb, '__version__') # verify package import not local dir
if pkg.parse_version(wandb.__version__) >= pkg.parse_version('0.12.2') and RANK in [0, -1]:
wandb_login_success = wandb.login(timeout=30)
try:
wandb_login_success = wandb.login(timeout=30)
except wandb.errors.UsageError: # known non-TTY terminal issue
wandb_login_success = False
if not wandb_login_success:
wandb = None
except (ImportError, AssertionError):
Expand Down

0 comments on commit 9d0e1cf

Please sign in to comment.