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 folderpull/8935/head^2
parent
2e57b8418d
commit
11a76bb4f5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue