ultralytics 8.0.152 bump torch>=1.8.0 (#4299)
This commit is contained in:
parent
6267d6a609
commit
28893d9d2d
23 changed files with 30 additions and 30 deletions
|
|
@ -288,7 +288,7 @@ def safe_download(url,
|
|||
|
||||
unzip_dir = dir or f.parent # unzip to dir if provided else unzip in place
|
||||
if is_zipfile(f):
|
||||
unzip_dir = unzip_file(file=f, path=unzip_dir) # unzip
|
||||
unzip_dir = unzip_file(file=f, path=unzip_dir, progress=progress) # unzip
|
||||
elif f.suffix in ('.tar', '.gz'):
|
||||
LOGGER.info(f'Unzipping {f} to {unzip_dir.resolve()}...')
|
||||
subprocess.run(['tar', 'xf' if f.suffix == '.tar' else 'xfz', f, '--directory', unzip_dir], check=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue