You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: I am encountering an issue when trying to compile and run an OpenVINO model on AWS Lambda . The model works perfectly on a local environment but fails in AWS Lambda.
Errror I recieved
ERROR] Exception: Failed to find location of the openvino_telemetry file.
Traceback (most recent call last):
File "/var/lang/lib/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/var/lang/lib/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/var/task/main.py", line 5, in <module>
import openvino as ov
File "/var/lang/lib/python3.8/site-packages/openvino/__init__.py", line 70, in <module>
from openvino.tools.ovc import convert_model
File "/var/lang/lib/python3.8/site-packages/openvino/tools/ovc/__init__.py", line 19, in <module>
telemetry = init_mo_telemetry()
File "/var/lang/lib/python3.8/site-packages/openvino/tools/ovc/telemetry_utils.py", line 30, in init_mo_telemetry
return init_telemetry_class(tid=get_tid(),
File "/var/lang/lib/python3.8/site-packages/openvino/tools/ovc/telemetry_utils.py", line 46, in init_telemetry_class
telemetry = tm.Telemetry(tid=tid,
File "/var/lang/lib/python3.8/site-packages/openvino_telemetry/main.py", line 27, in __call__
cls.__single_instance = super(SingletonMetaClass, cls).__call__(*args, **kwargs)
File "/var/lang/lib/python3.8/site-packages/openvino_telemetry/main.py", line 57, in __init__
self.init(app_name, app_version, tid, backend, enable_opt_in_dialog, disable_in_ci)
File "/var/lang/lib/python3.8/site-packages/openvino_telemetry/main.py", line 62, in init
opt_in_check_result = opt_in_checker.check(enable_opt_in_dialog, disable_in_ci)
File "/var/lang/lib/python3.8/site-packages/openvino_telemetry/utils/opt_in_checker.py", line 303, in check
if not os.path.exists(self.consent_file()):
File "/var/lang/lib/python3.8/site-packages/openvino_telemetry/utils/opt_in_checker.py", line 126, in consent_file
return os.path.join(self.consent_file_base_dir(), self.consent_file_subdirectory(), "openvino_telemetry")
File "/var/lang/lib/python3.8/site-packages/openvino_telemetry/utils/opt_in_checker.py", line 104, in consent_file_base_dir
raise Exception('Failed to find location of the openvino_telemetry file.')
import numpy as np
from platform import system
from pathlib import Path
import os
import openvino as ov
import cv2
import base64
import http.client
from codecs import encode
import json
from io import BytesIO
import os
core = ov.Core()
device = "CPU"
ov_model_path = r"/var/task/depth_anything_v2_vits_int8.xml"
compiled_model = core.compile_model(ov_model_path, device)
Feature Use Case
No response
Issue submission checklist
The feature request or improvement must be related to OpenVINO
The text was updated successfully, but these errors were encountered:
following (got the same problem).
I can say that I can import openvino if I use v2023/3 instead of 2024/4 (no "telemetry"-related error), however at that point I can't import my model (even if I re-exported it using openvino 2023/3) as I get a different error:
[ERROR] 2024-10-25T13:33:36.977Z aa9c6d85-1361-591d-80b7-3210b30f0256 Error loading model: Exception from src/inference/src/core.cpp:116:
2024-10-25T13:33:36.978Z
Exception from src/frontends/ir/src/ir_deserializer.cpp:356:
2024-10-25T13:33:36.978Z
Attribute and shape size are inconsistent for Const op!
Request Description
Issue: I am encountering an issue when trying to compile and run an OpenVINO model on AWS Lambda . The model works perfectly on a local environment but fails in AWS Lambda.
Errror I recieved
Docker file I use to build the image:
The code in main.py:
Feature Use Case
No response
Issue submission checklist
The text was updated successfully, but these errors were encountered: