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.
6404 Discussions

Error when running the script in Raspbian* OS

Zheng__Martin
Beginner
427 Views

Hi

I got the IR files(xml &  bin) according to the following URL:

  Converting YOLO* Models to the Intermediate Representation (IR)

I copyed the file into my Raspbian and run the script.

import cv2 as cv
# Load the model.
net = cv.dnn_DetectionModel('frozen_darknet_yolov3_model.xml',
                            'frozen_darknet_yolov3_model.bin')
# Specify target device.
net.setPreferableTarget(cv.dnn.DNN_TARGET_MYRIAD)
# Read an image.
frame = cv.imread('/path/to/image')
if frame is None:
    raise Exception('Image not found!')
# Perform an inference.
_, confidences, boxes = net.detect(frame, confThreshold=0.5)
# Draw detected faces on the frame.
for confidence, box in zip(list(confidences), boxes):
    cv.rectangle(frame, box, color=(0, 255, 0))
# Save the frame to an image file.
cv.imwrite('out.png', frame)

Then I got the error:

terminate called after throwing an instance of 'InferenceEngine::details::InferenceEngineException'
  what():  Error reading network: cannot parse future versions: 10
Aborted

If I run the script with the IR files in the offcial demo(face-detection-adas-0001.xml & face-detection-adas-0001.bin) ,it could run successfully.

Thank you very much.

 

 

 

0 Kudos
0 Replies
Reply