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

Intel® Distribution of OpenVINO™ toolkit for Windows* 10 error while running demo_squeezenet_download_convert_run.bat

gvili__gabi
Beginner
1,003 Views

C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\demo>demo_squeezenet_download_convert_run.bat
target_precision = FP32
Python 3.6.0
ECHO is off.
PYTHONPATH=C:\Program Files (x86)\IntelSWTools\openvino\python\python3.6;C:\Program Files (x86)\IntelSWTools\openvino\python\python3.6;
[setupvars.bat] OpenVINO environment initialized
INTEL_OPENVINO_DIR is set to C:\Program Files (x86)\IntelSWTools\openvino
Python 3.6.0
ECHO is off.
Collecting pyyaml
  Downloading https://files.pythonhosted.org/packages/72/da/386634cb17f33b12278af017ccb3314cede4806af70285f396b8f6af1203/PyYAML-5.1-cp36-cp36m-win_amd64.whl (214kB)
    100% |████████████████████████████████| 215kB 198kB/s
Requirement already satisfied: requests in c:\users\gabig\appdata\roaming\python\python36\site-packages
Requirement already satisfied: idna<2.7,>=2.5 in c:\users\gabig\appdata\roaming\python\python36\site-packages (from requests)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\gabig\appdata\roaming\python\python36\site-packages (from requests)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\gabig\appdata\roaming\python\python36\site-packages (from requests)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\users\gabig\appdata\roaming\python\python36\site-packages (from requests)
Installing collected packages: pyyaml
Successfully installed pyyaml-5.1
You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Download public squeezenet1.1 model
python "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\tools\model_downloader\downloader.py" --name squeezenet1.1 --output_dir C:\Users\gabig\Documents\Intel\OpenVINO\openvino_models\models\FP32 --cache_dir C:\Users\gabig\Documents\Intel\OpenVINO\openvino_models\ir\cache

###############|| Downloading topologies ||###############

========= Downloading C:\Users\gabig\Documents\Intel\OpenVINO\openvino_models\models\FP32\classification\squeezenet\1.1\caffe\squeezenet1.1.prototxt


========= Downloading C:\Users\gabig\Documents\Intel\OpenVINO\openvino_models\models\FP32\classification\squeezenet\1.1\caffe\squeezenet1.1.caffemodel
... 100%, 4834 KB, 2557 KB/s, 1 seconds passed


###############|| Post processing ||###############

========= Replacing text in C:\Users\gabig\Documents\Intel\OpenVINO\openvino_models\models\FP32\classification\squeezenet\1.1\caffe\squeezenet1.1.prototxt =========
squeezenet1.1 model downloading completed

Waiting for 0 seconds, press a key to continue ...

###############|| Install Model Optimizer prerequisites ||###############


Waiting for 0 seconds, press a key to continue ...
Python 3.6.0
ECHO is off.
Requirement already satisfied: networkx>=1.11 in c:\users\gabig\appdata\roaming\python\python36\site-packages (from -r ..\requirements_caffe.txt (line 1))
Requirement already satisfied: numpy>=1.12.0 in c:\users\gabig\appdata\roaming\python\python36\site-packages (from -r ..\requirements_caffe.txt (line 2))
Requirement already satisfied: protobuf==3.6.1 in c:\users\gabig\appdata\roaming\python\python36\site-packages (from -r ..\requirements_caffe.txt (line 3))
Requirement already satisfied: test-generator==0.1.1 in c:\users\gabig\appdata\roaming\python\python36\site-packages (from -r ..\requirements_caffe.txt (line 4))
Requirement already satisfied: defusedxml>=0.5.0 in c:\users\gabig\appdata\roaming\python\python36\site-packages (from -r ..\requirements_caffe.txt (line 5))
Requirement already satisfied: decorator>=4.3.0 in c:\users\gabig\appdata\roaming\python\python36\site-packages (from networkx>=1.11->-r ..\requirements_caffe.txt (line 1))
Requirement already satisfied: setuptools in c:\users\gabig\appdata\local\programs\python\python36\lib\site-packages (from protobuf==3.6.1->-r ..\requirements_caffe.txt (line 3))
Requirement already satisfied: six>=1.9 in c:\users\gabig\appdata\roaming\python\python36\site-packages (from protobuf==3.6.1->-r ..\requirements_caffe.txt (line 3))
You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
*****************************************************************************************
Warning: please expect that Model Optimizer conversion might be slow.
You can boost conversion speed by installing protobuf-*.egg located in the
"model-optimizer\install_prerequisites" folder or building protobuf library from sources.
For more information please refer to Model Optimizer FAQ, question #80.

Waiting for 0 seconds, press a key to continue ...

###############|| Run Model Optimizer ||###############


Waiting for 0 seconds, press a key to continue ...
python mo.py --input_model "C:\Users\gabig\Documents\Intel\OpenVINO\openvino_models\models\FP32\classification\squeezenet\1.1\caffe\squeezenet1.1.caffemodel" --output_dir "C:\Users\gabig\Documents\Intel\OpenVINO\openvino_models\ir\FP32\classification\squeezenet\1.1\caffe" --data_type FP32
Model Optimizer arguments:
Common parameters:
        - Path to the Input Model:      C:\Users\gabig\Documents\Intel\OpenVINO\openvino_models\models\FP32\classification\squeezenet\1.1\caffe\squeezenet1.1.caffemodel
        - Path for generated IR:        C:\Users\gabig\Documents\Intel\OpenVINO\openvino_models\ir\FP32\classification\squeezenet\1.1\caffe
        - IR output name:       squeezenet1.1
        - Log level:    ERROR
        - Batch:        Not specified, inherited from the model
        - Input layers:         Not specified, inherited from the model
        - Output layers:        Not specified, inherited from the model
        - Input shapes:         Not specified, inherited from the model
        - Mean values:  Not specified
        - Scale values:         Not specified
        - Scale factor:         Not specified
        - Precision of IR:      FP32
        - Enable fusing:        True
        - Enable grouped convolutions fusing:   True
        - Move mean values to preprocess section:       False
        - Reverse input channels:       False
Caffe specific parameters:
        - Enable resnet optimization:   True
        - Path to the Input prototxt:   C:\Users\gabig\Documents\Intel\OpenVINO\openvino_models\models\FP32\classification\squeezenet\1.1\caffe\squeezenet1.1.prototxt
        - Path to CustomLayersMapping.xml:      extensions\front\caffe\CustomLayersMapping.xml
        - Path to a mean file:  Not specified
        - Offsets for a mean file:      Not specified
Model Optimizer version:        2019.1.1-83-g28dfbfd
[ ERROR ]  -------------------------------------------------
[ ERROR ]  ----------------- INTERNAL ERROR ----------------
[ ERROR ]  Unexpected exception happened.
[ ERROR ]  Please contact Model Optimizer developers and forward the following information:
[ ERROR ]  DLL load failed: The specified procedure could not be found.
[ ERROR ]  Traceback (most recent call last):
  File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\main.py", line 312, in main
    return driver(argv)
  File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\main.py", line 266, in driver
    import mo.pipeline.caffe as mo_caffe
  File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\pipeline\caffe.py", line 20, in <module>
    from mo.front.caffe import custom_layers_mapping, loader
  File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\front\caffe\loader.py", line 22, in <module>
    from google.protobuf import text_format
  File "C:\Users\gabig\AppData\Roaming\Python\Python36\site-packages\google\protobuf\text_format.py", line 54, in <module>
    from google.protobuf.internal import type_checkers
  File "C:\Users\gabig\AppData\Roaming\Python\Python36\site-packages\google\protobuf\internal\type_checkers.py", line 55, in <module>
    from google.protobuf.internal import decoder
  File "C:\Users\gabig\AppData\Roaming\Python\Python36\site-packages\google\protobuf\internal\decoder.py", line 90, in <module>
    from google.protobuf.internal import encoder
  File "C:\Users\gabig\AppData\Roaming\Python\Python36\site-packages\google\protobuf\internal\encoder.py", line 73, in <module>
    from google.protobuf.internal import wire_format
  File "C:\Users\gabig\AppData\Roaming\Python\Python36\site-packages\google\protobuf\internal\wire_format.py", line 36, in <module>
    from google.protobuf import descriptor
  File "C:\Users\gabig\AppData\Roaming\Python\Python36\site-packages\google\protobuf\descriptor.py", line 47, in <module>
    from google.protobuf.pyext import _message
ImportError: DLL load failed: The specified procedure could not be found.

[ ERROR ]  ---------------- END OF BUG REPORT --------------
[ ERROR ]  -------------------------------------------------
Error

0 Kudos
5 Replies
Shubha_R_Intel
Employee
1,003 Views

Dear gvili, gabi

This is not an OpenVino error. It's a protobuf error. I'm surprised that install_prerequisites.bat (under model_optimizer\install_prerequisites) didn't take care of the dependency actually.

I googled and found protobuf Windows DLL error . 

Also here

Seems like the issue can be solved by changing your version of protobuf:

this can still be solved by replacing default protobuf version with 3.6.0

Hope it helps.

Thanks,

Shubha

0 Kudos
Bomjan_Tamang__Thoma
1,003 Views

I have got this issue while running demo. Please help

Run Inference Engine classification sample

Run ./classification_sample_async -d CPU -i /opt/intel/openvino_2019.2.242/deployment_tools/demo/car.png -m /home/marduk/openvino_models/ir/FP16//classification/squeezenet/1.1/caffe/squeezenet1.1.xml

[ INFO ] InferenceEngine:
    API version ............ 2.0
    Build .................. custom_releases/2019/R2_f5827d4773ebbe727c9acac5f007f7d94dd4be4e
    Description ....... API
[ INFO ] Parsing input parameters
[ INFO ] Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /opt/intel/openvino_2019.2.242/deployment_tools/demo/car.png
[ INFO ] Creating Inference Engine
    CPU
    MKLDNNPlugin version ......... 2.0
    Build ........... 27579

[ INFO ] Loading network files
[ ERROR ] Error loading xmlfile: /home/user/openvino_models/ir/FP16//classification/squeezenet/1.1/caffe/squeezenet1.1.xml, File was not found at line: 1 pos: 0
Error on or near line 238; exiting with status 1

0 Kudos
Shubha_R_Intel
Employee
1,003 Views

Dear Bomjan Tamang, Thomas,

file  /home/user/openvino_models/ir/FP16//classification/squeezenet/1.1/caffe/squeezenet1.1.xml is not found  -- as the error is telling you, but i think you must have been running demo_squeezenet_download_convert_run.bat to get that error rather than classification_sample_async .  It's likely caused by demo_squeezenet_download_convert_run.bat not being able to download the files it needed through the Internet.

You can also download all needed model files by executing C:\Program Files (x86)\IntelSWTools\openvino_2019.2.242\deployment_tools\tools\model_downloader\downloader.py --all. 

The path you are passing into classification_sample_async -m is /home/marduk/openvino_models/ir/FP16//classification/squeezenet/1.1/caffe/squeezenet1.1.xml  (different path than what the above error is telling you) and if the *.xml file is found along with the *.bin and *.mapping at the same location, then it should absolutely work.

Also please use OpenVino 2019R2, since it's the latest and greatest.

Hope it helps,

Thanks,

Shubha

0 Kudos
Campbell__Robert
Beginner
1,003 Views

I have the same issue, but downgrading protobuf to 3.6.0 did not fix the issue.

Any other pointers?

Bob

 

Shubha R. (Intel) wrote:

Dear gvili, gabi

This is not an OpenVino error. It's a protobuf error. I'm surprised that install_prerequisites.bat (under model_optimizer\install_prerequisites) didn't take care of the dependency actually.

I googled and found protobuf Windows DLL error . 

Also here

Seems like the issue can be solved by changing your version of protobuf:

this can still be solved by replacing default protobuf version with 3.6.0

Hope it helps.

Thanks,

Shubha

0 Kudos
Max_L_Intel
Moderator
1,003 Views

Hi Robert.

There might be a case of multiple different protobuf versions installed. At first please try to completely remove all the protobuf packages and libraries from your machine and then install 3.6.0 version from the scratch.

The example below for Ubuntu is provided just as a reference:

sudo pip3 uninstall -y protobuf 
sudo apt-get purge --remove libprotobuf*

To check if protobuf being completely uninstalled:

pip3 show protobuf
0 Kudos
Reply