Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œSign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor train.py and val.py loggers #4137

Merged
merged 27 commits into from
Jul 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update message
glenn-jocher committed Jul 24, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit fe3d2570cfeeb3f269db82b9acdbf716900de668
5 changes: 3 additions & 2 deletions utils/loggers/wandb/wandb_utils.py
Original file line number Diff line number Diff line change
@@ -13,15 +13,16 @@

from utils.datasets import LoadImagesAndLabels
from utils.datasets import img2label_paths
from utils.general import colorstr, check_dataset, check_file
from utils.general import colorstr, check_dataset, check_file, emojis

try:
import wandb

assert hasattr(wandb, '__version__') # verify package import not local dir
except (ImportError, AssertionError):
prefix = colorstr('Weights & Biases: ')
print(f"{prefix}run 'pip install wandb' for automatic YOLOv5 experiment tracking (RECOMMENDED)")
s = f"{prefix}run 'pip install wandb' to automatically track and visualize YOLOv5 πŸš€ training runs (RECOMMENDED)"
print(emojis(s))
wandb = None

RANK = int(os.getenv('RANK', -1))