openvino: OpenVINO 2020.1 doesn't work on Raspberry Pi and NCS2

OpenVINO 2020.1 simply refuses to work when using the NCS2 in a Raspberry Pi. I’m seeing the error below. I have tested multiple sample applications using both C++ and Python and all give the same error.

./build/simple_classifier_cpp googlenet-v1.xml ../../data/images/nps_electric_guitar.png ../../data/ilsvrc12/synset_labels.txt
terminate called after throwing an instance of 'InferenceEngine::details::InferenceEngineException'
  what():  Check 'axis < static_cast<size_t>(input_rank)' failed at /teamcity/work/scoring_engine_build/releases_2020_1/ngraph/src/ngraph/op/gather.cpp:140:
While validating node 'Gather[Gather_589](patternLabel_585: float{10,20,30}, patternLabel_586: int64_t{5}, patternLabel_588: int64_t{1}) -> (??)':
The axis must => 0 and <= input_rank (axis: 4294967295).

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 51 (13 by maintainers)

Commits related to this issue

Most upvoted comments

@natxopedreira

Give this a try.

Then download the 2019 R1 models such as:

I have a Pi 4 with the NCS 2 and it worked properly. Good luck!

@alalek Are you sure master branch opencv? I just compiled and error persist

4.3.0-dev
Traceback (most recent call last):
  File "openvino_test.py", line 23, in <module>
    out = net.forward()
cv2.error: OpenCV(4.3.0-dev) /opencv/modules/dnn/src/op_inf_engine.cpp:881: error: (-2:Unspecified error) in function 'initPlugin'
> Failed to initialize Inference Engine backend (device = MYRIAD): Check 'input_shape_product.get_length() == shape_size(m_output_shape)' failed at /teamcity/work/scoring_engine_build/releases_2020_2/ngraph/src/ngraph/op/reshape.cpp:100:
> While validating node 'v0::Reshape Reshape_18830(PriorBoxClustered_18233[0]:f32{2,3012366592}) -> (dynamic?)':
> Product of output shape dimensions does not match product of argument shape dimensions (output shape: Shape{1, 2, 3012366592}, argument shape: {2,3012366592}).