Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
5848 Discussions

/openvino_models/ir/public/squeezenet1.1/FP16/squeezenet1.1.xml cannot be opened!

Onyenanu__Godspower
774 Views

Hello ,

 

Please I am having issues trying to run the Image classification verification script with squeezenet1.1. Surprisingly, I don't have any problem running other scripts and model but the problem occurs only when I try running squeezenet1.1 that I receive the following error message:

 

[ INFO ] InferenceEngine:
API version ............ 2.1
Build .................. 2021.3.0-2787-60059f2c755-releases/2021/3
Description ....... API
[ INFO ] Parsing input parameters
[ INFO ] Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ] /opt/intel/openvino_2021/deployment_tools/demo/car.png
[ INFO ] Creating Inference Engine
CPU
MKLDNNPlugin version ......... 2.1
Build ........... 2021.3.0-2787-60059f2c755-releases/2021/3

[ INFO ] Loading network files

[ ERROR ] /openvino_models/ir/public/squeezenet1.1/FP16/squeezenet1.1.xml cannot be opened!

Error on or near line 217; exiting with status 1

 

 

Please I need help resolving this problem.

 

Many thanks

Best regards,

Godspower

 

0 Kudos
1 Solution
Onyenanu__Godspower
602 Views

Hi Wan,

 

I completed uninstalled version 2021.3 and installed version 2021.2 and I had no problem with the image classification: 

 

Top 10 results:

Image /opt/intel/openvino_2021/deployment_tools/demo/car.png

classid probability label
------- ----------- -----
817 0.6853030 sports car, sport car
479 0.1835197 car wheel
511 0.0917197 convertible
436 0.0200694 beach wagon, station wagon, wagon, estate car, beach waggon, station waggon, waggon
751 0.0069604 racer, race car, racing car
656 0.0044177 minivan
717 0.0024739 pickup, pickup truck
581 0.0017788 grille, radiator grille
468 0.0013083 cab, hack, taxi, taxicab
661 0.0007443 Model T

[ INFO ] Execution successful

[ INFO ] This sample is an API example, for any performance measurements please use the dedicated benchmark_app tool


###################################################

Demo completed successfully.

 

Many thanks,

 

Godspower 

View solution in original post

12 Replies
Vladimir_Dudnik
Employee
762 Views

Hello @Onyenanu__Godspower 

 

have you tried to run <INSTALL_DIR>\deployment_tools\demo\demo_squeezenet_download_convert_run.bat script? This should download and convert to IR public squeezenet1.1 model and run classification sample.

 

Regards,
  Vladimir

Onyenanu__Godspower
737 Views

Hi Vladimir, 

 

Thank you for your message, yes I tried running your recommended script and I received the error message: 

 

./demo_squeezenet_download_convert_run.bat: No such file or directory

 

What I have in my demo installation directory is: ./demo_squeezenet_download_convert_run.sh

 

and when i tried running it I received the error message: 

 

/openvino_models/ir/public/squeezenet1.1/FP16/squeezenet1.1.xml cannot be opened!

 

I don't know why because other scripts downloaded in the demo appears to run perfectly fine. 

 

Please advise.

 

many thanks again

Godspower 

Onyenanu__Godspower
730 Views

Hi Vladimir, 

 

Thank you for your message, yes I tried running your recommended script and I received the error message: 

 

./demo_squeezenet_download_convert_run.bat: No such file or directory

 

What I have in my demo installation directory is: ./demo_squeezenet_download_convert_run.sh

 

and when i tried running it I received the error message: 

 

/openvino_models/ir/public/squeezenet1.1/FP16/squeezenet1.1.xml cannot be opened!

 

I don't know why because other scripts downloaded in the demo appears to run perfectly fine. 

 

Please advise.

 

many thanks again

Godspower 

Vladimir_Dudnik
Employee
720 Views

@Onyenanu__Godspower Ups, I did not notice your environment is Linux, for the .sh file is needed to run, obviously. There is no magic in demo_squeezenet_download_convert_run.bat or demo_squeezenet_download_convert_run.sh scripts. They were intended to automate several preparation steps and so, to simplify quick run of demo. Those steps are:

- install model downloader prerequisites

- download squeezenet1.1 model

- install model optimizer prerequsities for Caffe models

- convert model to IR

- build classification_sample_async

- run sample with model and car.png image

From what you say it is probably model was not converted to IR, could you please attach full console log produced when you run demo_squeezenet_download_convert_run.sh script?

 

Onyenanu__Godspower
713 Views

Hi Vladimir,

Thank you very much for your response. Yes I am running on Linux and please find below the error message I received from the log produced when I ran the script:

 

<INSTALL_DIR>/opt/intel/openvino_2021/deployment_tools/demo$ ./demo_squeezenet_download_convert_run.sh
target_precision = FP16
[setupvars.sh] OpenVINO environment initialized


###################################################

 

Downloading the Caffe model and the prototxt
Installing dependencies
Get:1 https://apt.releases.hashicorp.com focal InRelease [4419 B]
Hit:2 https://packages.microsoft.com/ubuntu/20.10/prod groovy InRelease
Get:3 https://download.docker.com/linux/ubuntu focal InRelease [52.1 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:5 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:7 https://apt.releases.hashicorp.com focal/main amd64 Packages [27.0 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/main Sources [155 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu focal-updates/universe Sources [177 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/universe Sources [65.8 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [708 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu focal-updates/main Sources [406 kB]
Hit:14 https://repositories.intel.com/graphics/ubuntu focal InRelease
Get:15 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted Sources [19.9 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1066 kB]
Get:17 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [248 kB]
Get:18 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [24.4 kB]
Get:19 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2464 B]
Get:20 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [502 kB]
Get:21 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [628 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [497 kB]
Get:23 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [58.3 kB]
Get:24 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [11.6 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [236 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [283 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 64x64 Icons [95.1 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [13.6 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [303 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [43.9 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2468 B]
Get:32 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [825 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [616 kB]
Get:34 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [330 kB]
Get:35 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [17.8 kB]
Fetched 7648 kB in 9s (833 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
27 packages can be upgraded. Run 'apt list --upgradable' to see them.
Run sudo -E apt -y install build-essential python3-pip virtualenv cmake libcairo2-dev libpango1.0-dev libglib2.0-dev libgtk2.0-dev libswscale-dev libavcodec-dev libavformat-dev libgstreamer1.0-0 gstreamer1.0-plugins-base

Reading package lists... Done
Building dependency tree
Reading state information... Done
cmake is already the newest version (3.16.3-1ubuntu1).
libcairo2-dev is already the newest version (1.16.0-4ubuntu1).
libgstreamer1.0-0 is already the newest version (1.16.2-2).
libpango1.0-dev is already the newest version (1.44.7-2ubuntu4).
libgtk2.0-dev is already the newest version (2.24.32-4ubuntu4).
gstreamer1.0-plugins-base is already the newest version (1.16.2-4ubuntu0.1).
libglib2.0-dev is already the newest version (2.64.6-1~ubuntu20.04.3).
libavcodec-dev is already the newest version (7:4.2.4-1ubuntu0.1).
libavformat-dev is already the newest version (7:4.2.4-1ubuntu0.1).
libswscale-dev is already the newest version (7:4.2.4-1ubuntu0.1).
python3-pip is already the newest version (20.0.2-5ubuntu1.5).
virtualenv is already the newest version (20.0.17-1ubuntu0.4).
build-essential is already the newest version (12.8ubuntu1.1).
The following packages were automatically installed and are no longer required:
libaribb24-0 libclang-cpp10 libllvmspirvlib10 libopencl-clang10
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 27 not to upgrade.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpng-dev is already the newest version (1.6.37-2).
The following packages were automatically installed and are no longer required:
libaribb24-0 libclang-cpp10 libllvmspirvlib10 libopencl-clang10
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 27 not to upgrade.
WARNING: The directory '<INSTALL_DIR>/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from -r /opt/intel/openvino_2021/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 1)) (5.3.1)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from -r /opt/intel/openvino_2021/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 2)) (2.22.0)
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
Run python3 /opt/intel/openvino_2021/deployment_tools/open_model_zoo/tools/downloader/downloader.py --name squeezenet1.1 --output_dir /<INSTALL_DIR>/openvino_models/models --cache_dir /<INSTALL_DIR>/openvino_models/cache

################|| Downloading squeezenet1.1 ||################

========== Retrieving /<INSTALL_DIR>/openvino_models/models/public/squeezenet1.1/squeezenet1.1.prototxt from the cache

========== Retrieving /<INSTALL_DIR>/openvino_models/models/public/squeezenet1.1/squeezenet1.1.caffemodel from the cache

========== Replacing text in /<INSTALL_DIR>/openvino_models/models/public/squeezenet1.1/squeezenet1.1.prototxt

 

Target folder /<INSTALL_DIR>/openvino_models/ir/public/squeezenet1.1/FP16 already exists. Skipping IR generation with Model Optimizer.If you want to convert a model again, remove the entire /<INSTALL_DIR>/openvino_models/ir/public/squeezenet1.1/FP16 folder. Then run the script again

 

###################################################

Build Inference Engine samples

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include fnmatch.h
-- Looking for C++ include fnmatch.h - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Found InferenceEngine: /opt/intel/openvino_2021/deployment_tools/inference_engine/lib/intel64/libinference_engine.so (Required is at least version "2.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /<INSTALL_DIR>/inference_engine_samples_build
[ 36%] Built target gflags_nothreads_static
[ 81%] Built target format_reader
[100%] Built target classification_sample_async


###################################################

Run Inference Engine classification sample

Run ./classification_sample_async -d CPU -i /opt/intel/openvino_2021/deployment_tools/demo/car.png -m /<INSTALL_DIR>/openvino_models/ir/public/squeezenet1.1/FP16/squeezenet1.1.xml

[ INFO ] InferenceEngine:
API version ............ 2.1
Build .................. 2021.3.0-2787-60059f2c755-releases/2021/3
Description ....... API
[ INFO ] Parsing input parameters
[ INFO ] Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ] /opt/intel/openvino_2021/deployment_tools/demo/car.png
[ INFO ] Creating Inference Engine
CPU
MKLDNNPlugin version ......... 2.1
Build ........... 2021.3.0-2787-60059f2c755-releases/2021/3

[ INFO ] Loading network files
[ ERROR ] Model file /<INSTALL_DIR>/openvino_models/ir/public/squeezenet1.1/FP16/squeezenet1.1.xml cannot be opened!
Error on or near line 217; exiting with status 1

Wan_Intel
Moderator
703 Views

Hi Godspower Onyenanu,

Thank you for reaching out to us.

 

The issue you encountered is not a common issue when running Image Classification Demo Script. We had difficulty to replicate this issue initially.

 

However, after trying various possibilities, I found that this error occurs if there is no squeezenet1.1xml inside the Target folder:

/<INSTALL_DIR>/openvino_models/ir/public/squeezenet1.1/FP16

 

Please remove the entire Target folder and run demo_squeezenet_download_convert_run.sh again.

 

Regards,

Wan

 

Onyenanu__Godspower
694 Views

Hi Wan,

Thank you for your response, I followed your recommendation, deleted the target folder and ran the script again and I still have the same problem. However, you were right, I discovered that there is no squeezenet1.1xml inside the target folder. And When ran the script again, I still didn't have the file inside the folder.

 

Please advise

 

many thanks

Godspower

Onyenanu__Godspower
674 Views

Hi, 

 

I found that I have this error message when configuring model optimizer: 

 

[ WARNING ] libinference_engine.so: cannot open shared object file: No such file or directory

 

I believe that this might be the problem. Please any suggestion on how to resolve this error message?

 

Many thanks

Godspower 

Wan_Intel
Moderator
629 Views

Hi Godspower Onyenanu,

Thanks for your information.


From your previous log file, your local machine were able to found inference engine at the following path:

/opt/intel/openvino_2021/deployment_tools/inference_engine/lib/intel64/libinference_engine.so


I suggest you uninstall OpenVINO™ Toolkit from your local machine and re-install OpenVINO™ Toolkit again.


Steps to uninstall OpenVINO™ Toolkit is available at the following page:

https://docs.openvinotoolkit.org/2021.3/openvino_docs_install_guides_installing_openvino_linux.html


OpenVINO™ Toolkit is available for download at the following page:

https://software.seek.intel.com/openvino-toolkit


Choose the Operating System, fill in personal details, and click on the “Submit” button. Then, choose a Version from the drop-down button, and choose a Download Option.


Next, install OpenVINO™ Toolkit by following the steps given in the installation guides:

https://docs.openvinotoolkit.org/2021.3/openvino_docs_install_guides_installing_openvino_linux.html


To verify OpenVINO™ Toolkit is installed correctly on your local machine, please run demo scripts located in Get Started Guides:

https://docs.openvinotoolkit.org/2021.3/get_started_guides.html


For example, if you are using Linux OS, you can run the Image Classification Demo Scripts:

https://docs.openvinotoolkit.org/2021.3/openvino_docs_get_started_get_started_linux.html#image_class...


Please get back to us should you face any difficulty in downloading and installing the OpenVINO™ Toolkit.


Regards,

Wan


Onyenanu__Godspower
615 Views

Hi Wan, 

 

Thank you for your response and support. I have completed all the recommended steps. I completely uninstalled OpenVINO and reinstalled it but still I am experiencing the same problem:

 

[ INFO ] Loading network files
[ ERROR ] Model file />INSTALL_DIRECTORY>/openvino_models/ir/public/squeezenet1.1/FP16/squeezenet1.1.xml cannot be opened!

Error on or near line 217; exiting with status 1

 

I am guessing that the problem might be associated with Loading network files. I am of the opinion to try installing different version of OpenVINO to observe the difference.

 

Please advise?

 

many thanks.

Regards,

Godspower 

Onyenanu__Godspower
603 Views

Hi Wan,

 

I completed uninstalled version 2021.3 and installed version 2021.2 and I had no problem with the image classification: 

 

Top 10 results:

Image /opt/intel/openvino_2021/deployment_tools/demo/car.png

classid probability label
------- ----------- -----
817 0.6853030 sports car, sport car
479 0.1835197 car wheel
511 0.0917197 convertible
436 0.0200694 beach wagon, station wagon, wagon, estate car, beach waggon, station waggon, waggon
751 0.0069604 racer, race car, racing car
656 0.0044177 minivan
717 0.0024739 pickup, pickup truck
581 0.0017788 grille, radiator grille
468 0.0013083 cab, hack, taxi, taxicab
661 0.0007443 Model T

[ INFO ] Execution successful

[ INFO ] This sample is an API example, for any performance measurements please use the dedicated benchmark_app tool


###################################################

Demo completed successfully.

 

Many thanks,

 

Godspower 

Wan_Intel
Moderator
575 Views

Hi Godspower Onyenanu,


This thread will no longer be monitored since this issue has been resolved. 

If you need any additional information from Intel, please submit a new question.


Regards,

Wan


Reply