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
23 changed files with 30 additions and 30 deletions

View File

@ -215,7 +215,7 @@ def check_font(font='Arial.ttf'):
return file
def check_python(minimum: str = '3.7.0') -> bool:
def check_python(minimum: str = '3.8.0') -> bool:
"""
Check current python version against the required minimum version.

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)