Ayush Chaurasia commited on
Commit
514ebcd
·
unverified ·
1 Parent(s): 1148e2e

Fix: #2674 (#2683)

Browse files

* Set resume flag to false

* Check existance of val dataset

Files changed (1) hide show
  1. utils/wandb_logging/wandb_utils.py +1 -1
utils/wandb_logging/wandb_utils.py CHANGED
@@ -158,7 +158,7 @@ class WandbLogger():
158
  return data_dict
159
 
160
  def download_dataset_artifact(self, path, alias):
161
- if path.startswith(WANDB_ARTIFACT_PREFIX):
162
  dataset_artifact = wandb.use_artifact(remove_prefix(path, WANDB_ARTIFACT_PREFIX) + ":" + alias)
163
  assert dataset_artifact is not None, "'Error: W&B dataset artifact doesn\'t exist'"
164
  datadir = dataset_artifact.download()
 
158
  return data_dict
159
 
160
  def download_dataset_artifact(self, path, alias):
161
+ if path and path.startswith(WANDB_ARTIFACT_PREFIX):
162
  dataset_artifact = wandb.use_artifact(remove_prefix(path, WANDB_ARTIFACT_PREFIX) + ":" + alias)
163
  assert dataset_artifact is not None, "'Error: W&B dataset artifact doesn\'t exist'"
164
  datadir = dataset_artifact.download()