From 514ebcdf3395b1977f2663f206d6d3c93afac235 Mon Sep 17 00:00:00 2001 From: Ayush Chaurasia Date: Fri, 2 Apr 2021 15:24:50 +0530 Subject: [PATCH] Fix: #2674 (#2683) * Set resume flag to false * Check existance of val dataset --- utils/wandb_logging/wandb_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/wandb_logging/wandb_utils.py b/utils/wandb_logging/wandb_utils.py index 17132874e0d0..86038e199dc8 100644 --- a/utils/wandb_logging/wandb_utils.py +++ b/utils/wandb_logging/wandb_utils.py @@ -158,7 +158,7 @@ def setup_training(self, opt, data_dict): return data_dict def download_dataset_artifact(self, path, alias): - if path.startswith(WANDB_ARTIFACT_PREFIX): + if path and path.startswith(WANDB_ARTIFACT_PREFIX): dataset_artifact = wandb.use_artifact(remove_prefix(path, WANDB_ARTIFACT_PREFIX) + ":" + alias) assert dataset_artifact is not None, "'Error: W&B dataset artifact doesn\'t exist'" datadir = dataset_artifact.download()