HUB VOC fix (#9792)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/9803/head
Glenn Jocher 2022-10-13 02:32:06 +02:00 committed by GitHub
parent 85ae985b6a
commit 16f87bb38e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -477,6 +477,7 @@ def check_dataset(data, autodownload=True):
path = Path(extract_dir or data.get('path') or '') # optional 'path' default to '.' path = Path(extract_dir or data.get('path') or '') # optional 'path' default to '.'
if not path.is_absolute(): if not path.is_absolute():
path = (ROOT / path).resolve() path = (ROOT / path).resolve()
data['path'] = path # download scripts
for k in 'train', 'val', 'test': for k in 'train', 'val', 'test':
if data.get(k): # prepend path if data.get(k): # prepend path
if isinstance(data[k], str): if isinstance(data[k], str):