open_model_zoo icon indicating copy to clipboard operation
open_model_zoo copied to clipboard

Unknown model format! Cannot find reader for model format: xml and read the model:

Open Aritro-Shen opened this issue 3 years ago • 0 comments

When IN OpenVINO21.4 docker container, I want to load my trained model (converted to IR model), but I get this error, why? Traceback (most recent call last): File "/home/Aritro/Openvino/ob_detect.py", line 112, in <module> detect_pro = detect() File "/home/Aritro/Openvino/ob_detect.py", line 39, in __init__ network = core.read_network(model=model_file, weights=weights_file) # *.xml, *.bin paths File "ie_api.pyx", line 357, in openvino.inference_engine.ie_api.IECore.read_network File "ie_api.pyx", line 400, in openvino.inference_engine.ie_api.IECore.read_network RuntimeError: Unknown model format! Cannot find reader for model format: xml and read the model: /home/Aritro/Openvino/data/best_openvino_model/best.xml. Please check that reader library exists in your PATH. Based on the reported PATH problem, I thought it was a PATH problem. But the container executes setupvars.sh on the initial command line, which doesn't seem to work.

Aritro-Shen avatar May 31 '22 06:05 Aritro-Shen