From b53a3989ab216f04e2cd8eb5503703897eb05457 Mon Sep 17 00:00:00 2001 From: Johnny Date: Wed, 6 Mar 2024 21:55:23 +0100 Subject: [PATCH] OpenVino 2024.0.0 (#8726) Co-authored-by: Glenn Jocher --- pyproject.toml | 2 +- ultralytics/engine/exporter.py | 2 +- ultralytics/nn/autobackend.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bc038148c9..6929457fa4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,7 +98,7 @@ dev = [ export = [ "onnx>=1.12.0", # ONNX export "coremltools>=7.0; platform_system != 'Windows' and python_version <= '3.11'", # CoreML supported on macOS and Linux - "openvino>=2023.3; python_version <= '3.11'", # OpenVINO export + "openvino>=2024.0.0", # OpenVINO export "tensorflow<=2.13.1; python_version <= '3.11'", # TF bug https://github.com/ultralytics/ultralytics/issues/5161 "tensorflowjs>=3.9.0; python_version <= '3.11'", # TF.js export, automatically installs tensorflow ] diff --git a/ultralytics/engine/exporter.py b/ultralytics/engine/exporter.py index 2c33aa7b83..6ffd105e04 100644 --- a/ultralytics/engine/exporter.py +++ b/ultralytics/engine/exporter.py @@ -411,7 +411,7 @@ class Exporter: @try_export def export_openvino(self, prefix=colorstr("OpenVINO:")): """YOLOv8 OpenVINO export.""" - check_requirements("openvino>=2023.3") # requires openvino: https://pypi.org/project/openvino/ + check_requirements("openvino>=2024.0.0") # requires openvino: https://pypi.org/project/openvino/ import openvino as ov LOGGER.info(f"\n{prefix} starting export with openvino {ov.__version__}...") diff --git a/ultralytics/nn/autobackend.py b/ultralytics/nn/autobackend.py index 4ae96f43f2..95568ad156 100644 --- a/ultralytics/nn/autobackend.py +++ b/ultralytics/nn/autobackend.py @@ -190,7 +190,7 @@ class AutoBackend(nn.Module): # OpenVINO elif xml: LOGGER.info(f"Loading {w} for OpenVINO inference...") - check_requirements("openvino>=2023.3") + check_requirements("openvino>=2024.0.0") import openvino as ov core = ov.Core()