ultralytics 8.0.140 improved robustness to model path spaces (#3879)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lukas Hennies <45569834+Gornoka@users.noreply.github.com>
This commit is contained in:
parent
ed25db9426
commit
965e405957
9 changed files with 85 additions and 25 deletions
|
|
@ -149,7 +149,7 @@ def safe_download(url,
|
|||
elif not f.is_file(): # URL and file do not exist
|
||||
assert dir or file, 'dir or file required for download'
|
||||
f = dir / url2file(url) if dir else Path(file)
|
||||
desc = f'Downloading {clean_url(url)} to {f}'
|
||||
desc = f"Downloading {clean_url(url)} to '{f}'"
|
||||
LOGGER.info(f'{desc}...')
|
||||
f.parent.mkdir(parents=True, exist_ok=True) # make directory if missing
|
||||
check_disk_space(url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue