Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Zheng__Martin
Beginner
59 Views

Error when running the script in Raspbian* OS

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