Unverified 提交 11a76bb4 authored 作者: Kalen Michael's avatar Kalen Michael 提交者: GitHub

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
上级 2e57b841
......@@ -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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论