ultralytics 8.2.86 Windows torch==2.4.0 patch (#15942)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
0f105f4ea2
commit
62408aeab8
6 changed files with 23 additions and 2 deletions
|
|
@ -29,11 +29,13 @@ from ultralytics.utils import (
|
|||
IS_PIP_PACKAGE,
|
||||
LINUX,
|
||||
LOGGER,
|
||||
MACOS,
|
||||
ONLINE,
|
||||
PYTHON_VERSION,
|
||||
ROOT,
|
||||
TORCHVISION_VERSION,
|
||||
USER_CONFIG_DIR,
|
||||
WINDOWS,
|
||||
Retry,
|
||||
SimpleNamespace,
|
||||
ThreadingLocked,
|
||||
|
|
@ -224,6 +226,14 @@ def check_version(
|
|||
if not required: # if required is '' or None
|
||||
return True
|
||||
|
||||
if "sys_platform" in required: # i.e. required='<2.4.0,>=1.8.0; sys_platform == "win32"'
|
||||
if (
|
||||
(WINDOWS and "win32" not in required)
|
||||
or (LINUX and "linux" not in required)
|
||||
or (MACOS and "macos" not in required and "darwin" not in required)
|
||||
):
|
||||
return True
|
||||
|
||||
op = ""
|
||||
version = ""
|
||||
result = True
|
||||
|
|
@ -422,6 +432,7 @@ def check_torchvision():
|
|||
"""
|
||||
# Compatibility table
|
||||
compatibility_table = {
|
||||
"2.4": ["0.19"],
|
||||
"2.3": ["0.18"],
|
||||
"2.2": ["0.17"],
|
||||
"2.1": ["0.16"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue