Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Rai__Poorvi
Beginner
227 Views

Error while running the Image Classification Verification Script

Jump to solution

I've installed OpenVINO Toolkit on my PC and gone through all the steps without any trouble until I got to "Use Verification Scripts to Verify Your Installation"

I am getting the following error when I run the first demo: > demo_squeezenet_download_convert_run.bat

 

Model Optimizer arguments:
Common parameters:
        - Path to the Input Model:      C:\Users\P320 Tiny\Documents\Intel\OpenVINO\openvino_models\models\public\squeezenet1.1/squeezenet1.1.caffemodel
        - Path for generated IR:        C:\Users\P320 Tiny\Documents\Intel\OpenVINO\openvino_models\ir\public\squeezenet1.1\FP16
        - IR output name:       squeezenet1.1
        - Log level:    ERROR
        - Batch:        Not specified, inherited from the model
        - Input layers:         data
        - Output layers:        prob
        - Input shapes:         [1,3,227,227]
        - Mean values:  data[104.0,117.0,123.0]
        - Scale values:         Not specified
        - Scale factor:         Not specified
        - Precision of IR:      FP16
        - Enable fusing:        True
        - Enable grouped convolutions fusing:   True
        - Move mean values to preprocess section:       False
        - Reverse input channels:       False
Caffe specific parameters:
        - Path to Python Caffe* parser generated from caffe.proto:      C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\front\caffe\proto
        - Enable resnet optimization:   True
        - Path to the Input prototxt:   C:\Users\P320 Tiny\Documents\Intel\OpenVINO\openvino_models\models\public\squeezenet1.1/squeezenet1.1.prototxt
        - Path to CustomLayersMapping.xml:      C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\extensions\front\caffe\CustomLayersMapping.xml
        - Path to a mean file:  Not specified
        - Offsets for a mean file:      Not specified
Model Optimizer version:        2020.1.0-61-gd349c3ba4a
[ 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 314, in main
    return driver(argv)
  File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\main.py", line 281, in driver
    ret_res = emit_ir(prepare_ir(argv), argv)
  File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\main.py", line 228, in prepare_ir
    import mo.pipeline.caffe as mo_caffe
  File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\mo\pipeline\caffe.py", line 18, 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 24, in <module>
    from google.protobuf import text_format
  File "C:\Users\P320 Tiny\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\P320 Tiny\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\P320 Tiny\AppData\Roaming\Python\Python36\site-packages\google\protobuf\internal\decoder.py", line 90, in <module>
    from google.protobuf.internal import encoder
  File "C:\Users\P320 Tiny\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\P320 Tiny\AppData\Roaming\Python\Python36\site-packages\google\protobuf\internal\wire_format.py", line 36, in <module>
    from google.protobuf import descriptor
  File "C:\Users\P320 Tiny\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 ]  -------------------------------------------------
FAILED:
squeezenet1.1
Error
 

 

How do I solve this?

0 Kudos
1 Solution
Sahira_Intel
Moderator
227 Views

Hi Poorvi,

This is a protobuf error. Did you install the prerequisites before running the demo?

If you have and are still getting the error, uninstall all previous versions of protobuf to avoid any other errors, then downgrade to version 3.6.0.

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

Make sure there are no other versions installed:

pip3 show protobuf

Then install version 3.6.0

pip install protobuf==3.6.0

I hope this information is helpful.

Best Regards,

Sahira 

 

View solution in original post

2 Replies
Sahira_Intel
Moderator
228 Views

Hi Poorvi,

This is a protobuf error. Did you install the prerequisites before running the demo?

If you have and are still getting the error, uninstall all previous versions of protobuf to avoid any other errors, then downgrade to version 3.6.0.

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

Make sure there are no other versions installed:

pip3 show protobuf

Then install version 3.6.0

pip install protobuf==3.6.0

I hope this information is helpful.

Best Regards,

Sahira 

 

View solution in original post

Rai__Poorvi
Beginner
227 Views

That was it. Thanks!

Reply