- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was running the following line on raspberry pi:
import cv2
cv2.dnn.readNet('person-detection-retail-0002/person-detection-retail-0002.xml',
'person-detection-retail-0002/person-detection-retail-0002.bin')
the error is following :
**
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_928](patternLabel_924: float{10,20,30}, patternLabel_925: int64_t{5}, patternLabel_927: int64_t{1}) -> (??)':
The axis must => 0 and <= input_rank (axis: 4294967295).
Aborted
**
I have already build the opencv with openvino.
import cv2 as cv
In [2]: print(cv.file)
/home/pi/openvino/python/python3/cv2.abi3.so`
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Chimnay,
Thanks for reaching out.
This is an issue with the latest OpenVINO™ toolkit version (2020.1). The "axis" error is caused by the new IR v10 format.
As a workaround for this issue you can do either of these options:
- Use the previous pre-trained models from the 2019 R3 open model zoo.
- Generate the IRv7 format files using the Model Optimizer from the full installation of OpenVINO™ toolkit with the following parameter: --generate_deprecated_IR_V7.
- Install the previous version of OpenVINO™ toolkit (2019 R3.1) on a Windows, Linux or Mac OS system, convert the model there, which will generate the IR v7 format and that should work successfully with the Intel® Neural Compute Stick 2 on the Raspberry Pi.
Best regards,
David

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page