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

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

Anjaneya_Srujit_Ram
2,202 Views

Hi,

 

[ ERROR ] Unknown model format! Cannot find reader for model format: xml and read the model: C:\Users\Lenovo\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP16\vehicle-license-plate-detection-barrier-0106.xml. Please check that reader library exists in your PATH.
Error

 

I am getting the above error while running the "demo_security_barrier_camera.bat" and "demo_benchmark_app.bat" demos with OpenVINO 2021.4.752.

I found that both inference_engine_ir_reader.dll and inference_engine.dll are located in the following directory:

"C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\inference_engine\bin\intel64\Release"

 

OS: Windows 10 Pro

 

It will be great if the issue can be fixed.

 

Thanks 

Anjaneya Srujit.

0 Kudos
9 Replies
Hairul_Intel
Moderator
2,158 Views

Hi Anjaneya Srujit,

Thank you for reaching out to us.

 

Another possible cause for this issue is due to incompatible OpenVINO version with the Intermediate Representation (IR) model version.

 

Please have a try deleting the downloaded models folder located in "C:\Users\<username>\Documents\Intel\OpenVINO\openvino_models" and run the "demo_security_barrier_camera.bat" and "demo_benchmark_app.bat" again.

 

If the issue still persists, please provide the following information for further investigation from our end:

  1. How did you install the OpenVINO™ Toolkit 2021.4.752?
  2. Are there any other versions of OpenVINO™ Toolkit installed in your system?
  3. Have you tried running the models in Benchmark Tool?

 

 

Regards,

Hairul


0 Kudos
Anjaneya_Srujit_Ram
2,119 Views

Hi,

 

Thank you for your reply.

 

1. I have downloaded "w_openvino_toolkit_p_2021.4.752.exe" and installed the OpenVINO toolkit by following https://docs.openvino.ai/2021.4/openvino_docs_install_guides_installing_openvino_windows.html.

2. There are no other versions of OpenVINO in the system.

3. I didn't try running the models in Benchmark Tool.

 

I installed the OpenVINO™ Toolkit 2021.4.752 using the same executable in another Windows 10 Pro system on 11-July-2022, and everything worked well during that process. I got outputs for both the "demo_security_barrier_camera.bat" and "demo_benchmark_app.bat". I tried installing the toolkit on the new Windows 10 Pro system on10-August-2022, but I am getting this issue. I had all my dependencies(Python, CMake, Microsoft Visual Studio) installed on the system. 

 

What may be the cause for the incompatible versions of IR with this OpenVINO version?

 

Regards,

Anjaneya Srujit.

0 Kudos
Hairul_Intel
Moderator
2,082 Views

Hi Anjaneya Srujit,

I've validated from my end using OpenVINO™ Toolkit 2021.4.752 on Windows 10 Pro and were successful in running both "demo_benchmark_app.bat" and "demo_security_barrier_camera.bat".

 

The results are shown below:

benchmark.pngsecurity.png

 

 

The probable cause mentioned in my previous reply was related to OpenVINO™ 2021.4 can only load IRv10 model and will produce error if loading IRv11 model (converted by Model Optimizer 2022.1) as discussed in this thread.

 

Since you have no other versions of OpenVINO™ installed in your system, you can try the following steps to fix this issue:

  1. Ensure you have setup the environment variables by running the "setupvars.bat" file.
  2. Delete the build folders and models located in "C:\Users\<username>\Documents\Intel\OpenVINO".
  3. Build the demos again by running the "benchmark_app.bat" and "demo_security_barrier_camera.bat" files.

 

If the error persists, try uninstalling OpenVINO™ Toolkit from your system by following this guide and re-install OpenVINO™ Toolkit.

 

 

Regards,

Hairul

 

0 Kudos
Anjaneya_Srujit_Ram
2,072 Views

Hi Hairul,

 

Thank You for your response. 

 

I had followed the above-mentioned 3 steps but still got the issue. As per your suggestion, I uninstalled the OpenVINO and re-installed it. The issue is still there. Please find the attached log files of "demo_benchmark_app.bat" and "demo_security_barrier_camera.bat".

 

FYI, OS Information:

Edition: Windows 10 Pro

Version: 21H2

OS Build: 19044.1889Experience: Windows Feature Experience Pack 120.2212.4180.0

Processor: 12th Gen Intel(R) Core(TM) i5-1240P   1.70 GHz

 

Regards,

Anjaneya Srujit

0 Kudos
Hari_B_Intel
Moderator
1,997 Views

Hi Anjaneya Srujit,


Could you check if you have inference_engine_ir_reader.dll along with inference_engine.dll in the following directory?


C:\Program Files (x86)\Intel\openvino_2021.1.110\deployment_tools\inference_engine\bin\intel64\Release


I suspect there is some missing library where the IE is needed to read and load the model.


Thank you


0 Kudos
Hari_B_Intel
Moderator
1,958 Views

Hi Anjaneya Srujit,


After taking some time to investigate, it seem like the model version you're using is the latest which is not supported by older version of OpenVINO. 


You can check it by Open the .xml file and search for LPRNet, for OpenVINO 2021, LPRNet should be version 10 and for your model, you are using version 11 which is not supported by OpenVINO 2021. 


To get the correct version based on your OpenVINO version (e.g. 2021 version), first you need to make sure setupvars.bat from the OpenVINO 2021. Next use downloader.py to download the model you want. 


Another ways based on your sample is to run demo_security_barrier_camera.bat from Demo folder. 


Hope this information helps


Thank you 


0 Kudos
Anjaneya_Srujit_Ram
1,938 Views

Hi Hari,

 

Thank you for your response. I will try to execute the demo with the steps that you mentioned. 

Currently, I have installed OpenVINO through pip and using it for my setup for time being.

 

Regards

Anjaneya Srujit.

 

 

 

0 Kudos
Hairul_Intel
Moderator
1,844 Views

Hi Anjaneya Srujit,

I would like to follow up with you to see if you were able to resolve the issue by following the steps provided in our previous reply.

 

Please let us know if you need any further assistance and we'll be happy to help you.

 

 

Regards,

Hairul


0 Kudos
Hairul_Intel
Moderator
1,777 Views

Hi Anjaneya Srujit,

Thank you for your question. If you need any additional information from Intel, please submit a new question as this thread is no longer being monitored.

 

 

Regards,

Hairul


0 Kudos
Reply