Skip to content

Can't read openvino pre-trained model in opencv. #457

@chinmaydas96

Description

@chinmaydas96

I was running the following line in raspberr 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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions