OpenVino 2024.0.0 (#8726)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/8766/head
Johnny 9 months ago committed by GitHub
parent f5d883ba37
commit b53a3989ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      pyproject.toml
  2. 2
      ultralytics/engine/exporter.py
  3. 2
      ultralytics/nn/autobackend.py

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

@ -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__}...")

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

Loading…
Cancel
Save