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