openvino: Python crashes when loading net from ModelOptimizer
I tried to optimize the openpose COCO .caffemodel with mo.py, passing model and proto
When I try to load it with readNet, python crashes. A message is printed, but from googling it it seems unrelated: [E:] [BSL] found 0 ioexpander device
the original file can be read perfectly fine.
OpenCV: 4.3.0-openvino-2020.3.0 Python: 3.7.2 (default, Feb 21 2019, 17:35:59) [MSC v.1915 64 bit (AMD64)] CPU: i7-7600U Win10 1909
update: this doesn’t seem to be a model-specific error since I just downloaded human-pose-estimation-0001 with openVINO provided model downloader and got the same error.
update2: for the human-pose-estimation-0001 it seems to be a different issue. I tried to make an overview:
net = cv2.dnn.readNet("../models/pose_coco.caffemodel", "../models/pose_coco.prototxt") # works
net = cv2.dnn.readNet("../models/pose_coco.bin", "../models/pose_coco.xml") # fails
base = "../models/intel/human-pose-estimation-0001/FP16-INT8/human-pose-estimation-0001."
net = cv2.dnn.readNetFromModelOptimizer(base + "bin", base + "xml") # fails
net = cv2.dnn.readNet(base + "bin", base + "xml") # works
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (9 by maintainers)
Hi @Laubeee
I was able to replicate using the /pose/coco model from the repository you linked. Reading the model using the OpenVINO Inference Engine I was able to get additional information. I believe the issue is that the data shape is not being defined correctly by the model optimizer. I will reach out to some peers to see if this can be solved and if this model is supported.
Regards, Jesus