mahfuz195 / Intel-ai-iot-adas-project

This project repository is one of the parts for "Intel® Edge AI Scholarship Foundation Course Nanodegree Program".
7 stars 2 forks source link

How to running code #2

Open XuanHoai02 opened 4 days ago

XuanHoai02 commented 4 days ago

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.