ultralytics 8.0.152 bump torch>=1.8.0 (#4299)

This commit is contained in:
Glenn Jocher 2023-08-11 00:49:55 +02:00 committed by GitHub
parent 6267d6a609
commit 28893d9d2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 30 additions and 30 deletions

View file

@ -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)