Skip to content

Commit

Permalink
Update wandb_utils.py (ultralytics#4953)
Browse files Browse the repository at this point in the history
`is_valset_wandb_artifact` and `is_trainset_wandb_artifact` were referenced before assignment causing wandb to be unusable.
  • Loading branch information
d57montes committed Sep 28, 2021
1 parent 9c41e1c commit ad1fe7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/loggers/wandb/wandb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def check_wandb_config_file(data_config_file):


def check_wandb_dataset(data_file):
is_wandb_artifact = False
is_trainset_wandb_artifact = False
is_valset_wandb_artifact = False
if check_file(data_file) and data_file.endswith('.yaml'):
with open(data_file, errors='ignore') as f:
data_dict = yaml.safe_load(f)
Expand Down

0 comments on commit ad1fe7f

Please sign in to comment.