Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Calling python classification_sample.py in Python 2.7 is terminating the python process

Rajeev_A_Intel
Employee
332 Views

I tried executing the following command in Python 2.7 conda environment. The python process is terminating.

python classification_sample.py -i "C:\Intel\computer_vision_sdk_2018.2.299\deployment_tools\demo\car.png" -m "C:\Intel\computer_vision_sdk_2018.2.299\deployment_tools\demo\ir\squeezenet1.1.xml" -d CPU

The error I am getting is as follows.

(py27) C:\Intel\computer_vision_sdk_2018.2.299\inference_engine\samples\python_s
amples>python classification_sample.py -i "C:\Intel\computer_vision_sdk_2018.2.2
99\deployment_tools\demo\car.png" -m "C:\Intel\computer_vision_sdk_2018.2.299\de
ployment_tools\demo\ir\squeezenet1.1.xml" -d CPU
Traceback (most recent call last):
  File "classification_sample.py", line 79, in <module>
    sys.exit(main() or 0)
  File "classification_sample.py", line 70, in main
    res = exec_net.infer(inputs={input_blob: image})
  File "ie_api.pyx", line 33, in inference_engine.ie_api.ExecutableNetwork.infer

  File "ie_api.pyx", line 63, in inference_engine.ie_api.InferRequest.infer
  File "ie_api.pyx", line 65, in inference_engine.ie_api.InferRequest.infer
  File "ie_api.pyx", line 90, in inference_engine.ie_api.InferRequest._fill_inpu
ts
IndexError: too many indices for array

Thanks and Regards, Rajeev

0 Kudos
2 Replies
Severine_H_Intel
Employee
332 Views

Hi Rajeev A., 

I could reproduce your issue, I will investigate with our dev team on how to solve it. 

Best, 

Severine

0 Kudos
Emima
Beginner
314 Views
Do you resolve this problem ? I have the same problem
0 Kudos
Reply