Skip to content

Commit cdbca9e

Browse files
committed
Promote OV version to 2025.0, fix related warnings
1 parent 9ec4d8d commit cdbca9e

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

src/python/model_api/adapters/openvino_adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020-2024 Intel Corporation
2+
# Copyright (C) 2020-2025 Intel Corporation
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

@@ -15,7 +15,7 @@
1515
from numpy import ndarray
1616

1717
try:
18-
import openvino.runtime as ov
18+
import openvino as ov
1919
from openvino import (
2020
AsyncInferQueue,
2121
Core,

src/python/model_api/adapters/utils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020-2024 Intel Corporation
2+
# Copyright (C) 2020-2025 Intel Corporation
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

@@ -11,10 +11,9 @@
1111

1212
import cv2
1313
import numpy as np
14-
from openvino import Model, OVAny, Type, layout_helpers
15-
from openvino.runtime import Input, Node, Output
16-
from openvino.runtime import opset10 as opset
17-
from openvino.runtime.utils.decorators import custom_preprocess_function
14+
from openvino import Input, Model, Node, Output, OVAny, Type, layout_helpers
15+
from openvino import opset10 as opset
16+
from openvino.utils.decorators import custom_preprocess_function
1817

1918
if TYPE_CHECKING:
2019
from collections.abc import Callable

src/python/model_api/models/classification.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020-2024 Intel Corporation
2+
# Copyright (C) 2020-2025 Intel Corporation
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

@@ -12,9 +12,9 @@
1212
from typing import TYPE_CHECKING
1313

1414
import numpy as np
15+
from openvino import Model, Type
16+
from openvino import opset10 as opset
1517
from openvino.preprocess import PrePostProcessor
16-
from openvino.runtime import Model, Type
17-
from openvino.runtime import opset10 as opset
1818

1919
from model_api.models.image_model import ImageModel
2020
from model_api.models.result import ClassificationResult, Label

src/python/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2024 Intel Corporation
2+
# Copyright (C) 2024-2025 Intel Corporation
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

@@ -27,8 +27,7 @@ dependencies = [
2727
"numpy>=1.16.6",
2828
"opencv-python",
2929
"scipy>=1.5.4",
30-
"openvino>=2024.0",
31-
"openvino-dev>=2024.0",
30+
"openvino>=2025.0",
3231
"omz_tools @ git+https://github.com/openvinotoolkit/open_model_zoo.git@master#egg=omz_tools&subdirectory=tools/model_tools",
3332
"pillow",
3433
]

tests/python/unit/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
import numpy as np
6-
import openvino.runtime as ov
6+
import openvino as ov
77
from model_api.adapters.utils import (
88
resize_image_with_aspect,
99
resize_image_with_aspect_ocv,

0 commit comments

Comments
 (0)