cURL download double quotes (#7999)

Attempt to resolve Windows issues
This commit is contained in:
Glenn Jocher authored and GitHub committed 2022-05-26 20:37:48 +02:00
1 parent 980aace209
commit a6e99e4d66
1 file changed
+1 -1
+1 -1
View File
@@ -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