- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page