glenn-jocher commited on
Commit
a6e99e4
·
unverified ·
1 Parent(s): 980aace

cURL download double quotes (#7999)

Browse files
Files changed (1) hide show
  1. utils/general.py +1 -1
utils/general.py CHANGED
@@ -551,7 +551,7 @@ def download(url, dir='.', unzip=True, delete=True, curl=False, threads=1, retry
551
  for i in range(retry + 1):
552
  if curl:
553
  s = 'sS' if threads > 1 else '' # silent
554
- r = os.system(f"curl -{s}L '{url}' -o '{f}' --retry 9 -C -") # curl download
555
  success = r == 0
556
  else:
557
  torch.hub.download_url_to_file(url, f, progress=threads == 1) # torch download
 
551
  for i in range(retry + 1):
552
  if curl:
553
  s = 'sS' if threads > 1 else '' # silent
554
+ r = os.system(f'curl -{s}L "{url}" -o "{f}" --retry 9 -C -') # curl download with retry, continue
555
  success = r == 0
556
  else:
557
  torch.hub.download_url_to_file(url, f, progress=threads == 1) # torch download