From a6e99e4d66dcdffb5782c13150abc29c87801274 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 26 May 2022 20:37:48 +0200 Subject: [PATCH] cURL download double quotes (#7999) Attempt to resolve Windows issues --- utils/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/general.py b/utils/general.py index 3789f0519661..36c24ecdc1a0 100755 --- a/utils/general.py +++ b/utils/general.py @@ -551,7 +551,7 @@ def download_one(url, dir): 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