From 11a76bb4f594bb2cee39d82cd6c918e1ed97c0ca Mon Sep 17 00:00:00 2001 From: Kalen Michael Date: Sat, 13 Aug 2022 03:39:09 +0200 Subject: [PATCH] Allow train to use zipped content (#8940) * fix: added transparent image and empty alt to social bar * fix: remove underlines * fix: hide underlines for all social links * fix: always unzip into folder --- utils/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/general.py b/utils/general.py index 8469773f17f2..10fa07f379f3 100755 --- a/utils/general.py +++ b/utils/general.py @@ -480,7 +480,7 @@ def check_dataset(data, autodownload=True): # Download (optional) extract_dir = '' if isinstance(data, (str, Path)) and str(data).endswith('.zip'): # i.e. gs://bucket/dir/coco128.zip - download(data, dir=DATASETS_DIR, unzip=True, delete=False, curl=False, threads=1) + download(data, dir=f'{DATASETS_DIR}/{Path(data).stem}', unzip=True, delete=False, curl=False, threads=1) data = next((DATASETS_DIR / Path(data).stem).rglob('*.yaml')) extract_dir, autodownload = data.parent, False