瀏覽代碼

cURL download double quotes (#7999)

Attempt to resolve Windows issues
modifyDataloader
Glenn Jocher GitHub 2 年之前
父節點
當前提交
a6e99e4d66
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      utils/general.py

+ 1
- 1
utils/general.py 查看文件

@@ -551,7 +551,7 @@ def download(url, dir='.', unzip=True, delete=True, curl=False, threads=1, retry
for i in range(retry + 1):
if curl:
s = 'sS' if threads > 1 else '' # silent
r = os.system(f"curl -{s}L '{url}' -o '{f}' --retry 9 -C -") # curl download
r = os.system(f'curl -{s}L "{url}" -o "{f}" --retry 9 -C -') # curl download with retry, continue
success = r == 0
else:
torch.hub.download_url_to_file(url, f, progress=threads == 1) # torch download

Loading…
取消
儲存