Browse Source

Fix `ROOT / data` when running W&B `log_dataset()` (#6606)

* Fix missing data folder when running log_dataset

* Use ROOT/'data'

* PEP8 whitespace
modifyDataloader
or-toledano GitHub 2 years ago
parent
commit
cb2ad9f685
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/loggers/wandb/wandb_utils.py

+ 1
- 1
utils/loggers/wandb/wandb_utils.py View File

@@ -356,7 +356,7 @@ class WandbLogger():
# create a _wandb.yaml file with artifacts links if both train and test set are logged
if not log_val_only:
path = (path.stem if overwrite_config else path.stem + '_wandb') + '.yaml' # updated data.yaml path
path = Path('data') / path
path = ROOT / 'data' / path
data.pop('download', None)
data.pop('path', None)
with open(path, 'w') as f:

Loading…
Cancel
Save