Use new OpenVINO API instead of deprecated (#736)

This commit is contained in:
Adrian Boguszewski
2023-02-02 11:59:58 +01:00
committed by GitHub
parent 522f1937ed
commit b83374b42d
2 changed files with 3 additions and 3 deletions

View File

@ -320,9 +320,9 @@ class Exporter:
def _export_openvino(self, prefix=colorstr('OpenVINO:')):
# YOLOv8 OpenVINO export
check_requirements('openvino-dev') # requires openvino-dev: https://pypi.org/project/openvino-dev/
import openvino.inference_engine as ie # noqa
import openvino.runtime as ov # noqa
LOGGER.info(f'\n{prefix} starting export with openvino {ie.__version__}...')
LOGGER.info(f'\n{prefix} starting export with openvino {ov.__version__}...')
f = str(self.file).replace(self.file.suffix, f'_openvino_model{os.sep}')
f_onnx = self.file.with_suffix('.onnx')