W&B: DDP fix (#5176)
* fix dpp with wandb disabled * PyCharm reformat * Fix * fix Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
e520e820f1
commit
1172ac15fb
|
|
@ -19,6 +19,13 @@ from utils.datasets import LoadImagesAndLabels
|
|||
from utils.datasets import img2label_paths
|
||||
from utils.general import check_dataset, check_file
|
||||
|
||||
try:
|
||||
import wandb
|
||||
|
||||
assert hasattr(wandb, '__version__') # verify package import not local dir
|
||||
except (ImportError, AssertionError):
|
||||
wandb = None
|
||||
|
||||
RANK = int(os.getenv('RANK', -1))
|
||||
WANDB_ARTIFACT_PREFIX = 'wandb-artifact://'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue