Currently, I have installed OpenVINO version 2023.3.0, and when I execute the command python3 app_pfcw.py, I get the following error from the system:
/home/datn/Intel-ai-iot-adas-project/app_pfcw.py:7: FutureWarning: OpenVINO Inference Engine Python API is deprecated and will be removed in 2024.0 release. For instructions on transitioning to the new API, please refer to https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html
from openvino.inference_engine import IECore
Traceback (most recent call last):
File "/home/datn/Intel-ai-iot-adas-project/app_pfcw.py", line 247, in
sys.exit(main() or 0)
^^^^^^
File "/home/datn/Intel-ai-iot-adas-project/app_pfcw.py", line 194, in main
detector = Detector(ie, model_xml, model_bin, 0.4, "MYRIAD")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/datn/Intel-ai-iot-adas-project/detector.py", line 27, in init
model = IENetwork(model=model_path, weights=weights_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "ie_api.pyx", line 1613, in openvino.inference_engine.ie_api.IENetwork.cinit
TypeError: cinit() got an unexpected keyword argument 'weights'
Hi Mr.mahfuz195
Currently, I have installed OpenVINO version 2023.3.0, and when I execute the command python3 app_pfcw.py, I get the following error from the system: /home/datn/Intel-ai-iot-adas-project/app_pfcw.py:7: FutureWarning: OpenVINO Inference Engine Python API is deprecated and will be removed in 2024.0 release. For instructions on transitioning to the new API, please refer to https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html from openvino.inference_engine import IECore Traceback (most recent call last): File "/home/datn/Intel-ai-iot-adas-project/app_pfcw.py", line 247, in
sys.exit(main() or 0)
^^^^^^
File "/home/datn/Intel-ai-iot-adas-project/app_pfcw.py", line 194, in main
detector = Detector(ie, model_xml, model_bin, 0.4, "MYRIAD")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/datn/Intel-ai-iot-adas-project/detector.py", line 27, in init
model = IENetwork(model=model_path, weights=weights_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "ie_api.pyx", line 1613, in openvino.inference_engine.ie_api.IENetwork.cinit
TypeError: cinit() got an unexpected keyword argument 'weights'
Can you help me fix it, pls. Thank you very much.