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

OpenVINO model optimization - Detected not satisfied dependencies

chen__xq
Beginner
739 Views

I have viewed all related posts but can't get help.

hardware: LattePanda Delta, Processor Intel(R)  Celeron(R) N4100 CPU @ 1.10GHz, Installed RAM 4G.

System type: 64-bit operating system, x64-based processor 

Boot from flash disk which installed WTG, windows 10 Education, OS build 17134.1

Python version: 3.6.5

These paths are added to the environment variables:

C:\Users\cxq\AppData\Local\Programs\Python\Python36\Scripts\
C:\Users\cxq\AppData\Local\Programs\Python\Python36\
C:\Program Files\CMake\bin
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
C:\ProgramFiles(x86)\IntelSWTools\openvino\deployment_tools\inference_engine\bin\intel64\Release
C:\Users\cxq\AppData\Local\Programs\Python\Python36\Lib\site-packages\openvino\inference_engine
C:\Users\cxq\AppData\Local\Programs\Python\Python36\Lib\site-packages

To run install_prerequisites_tf.bat, all satisfied

C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\install_prerequisites>install_prerequisites_tf.bat
Python 3.6.5
ECHO is off.
Requirement already satisfied: tensorflow<2.0.0,>=1.2.0 in c:\users\cxq\appdata\local\programs\python\python36\lib\site-packages (from -r ..\requirements_tf.txt (line 1)) (1.9.0)
Requirement already satisfied: networkx>=1.11 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from -r ..\requirements_tf.txt (line 2)) (2.4)
Requirement already satisfied: numpy>=1.12.0 in c:\users\cxq\appdata\local\programs\python\python36\lib\site-packages (from -r ..\requirements_tf.txt (line 3)) (1.16.6)
Requirement already satisfied: defusedxml>=0.5.0 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from -r ..\requirements_tf.txt (line 4)) (0.6.0)
Requirement already satisfied: protobuf>=3.4.0 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (3.6.1)
Requirement already satisfied: absl-py>=0.1.6 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (0.9.0)
Requirement already satisfied: six>=1.10.0 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (1.15.0)
Requirement already satisfied: astor>=0.6.0 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (0.8.1)
Requirement already satisfied: setuptools<=39.1.0 in c:\users\cxq\appdata\local\programs\python\python36\lib\site-packages (from tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (39.1.0)
Requirement already satisfied: gast>=0.2.0 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (0.2.2)
Requirement already satisfied: grpcio>=1.8.6 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (1.29.0)
Requirement already satisfied: tensorboard<1.10.0,>=1.9.0 in c:\users\cxq\appdata\local\programs\python\python36\lib\site-packages (from tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (1.9.0)
Requirement already satisfied: wheel>=0.26 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (0.34.2)
Requirement already satisfied: termcolor>=1.1.0 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (1.1.0)
Requirement already satisfied: decorator>=4.3.0 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from networkx>=1.11->-r ..\requirements_tf.txt (line 2)) (4.4.2)
Requirement already satisfied: werkzeug>=0.11.10 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from tensorboard<1.10.0,>=1.9.0->tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (1.0.1)
Requirement already satisfied: markdown>=2.6.8 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from tensorboard<1.10.0,>=1.9.0->tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (3.2.2)
Requirement already satisfied: importlib-metadata; python_version < "3.8" in c:\users\cxq\appdata\roaming\python\python36\site-packages (from markdown>=2.6.8->tensorboard<1.10.0,>=1.9.0->tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (1.6.1)
Requirement already satisfied: zipp>=0.5 in c:\users\cxq\appdata\roaming\python\python36\site-packages (from importlib-metadata; python_version < "3.8"->markdown>=2.6.8->tensorboard<1.10.0,>=1.9.0->tensorflow<2.0.0,>=1.2.0->-r ..\requirements_tf.txt (line 1)) (3.1.0)
*****************************************************************************************
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.

 

But when run the model optimizer, its says "Detected not satisfied dependencies"

C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer>python mo.py --input_model "D:\Chenxq\inception_v1.frozen.pb"
Model Optimizer arguments:
Common parameters:
        - Path to the Input Model:      D:\Chenxq\inception_v1.frozen.pb
        - Path for generated IR:        C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\.
        - IR output name:       inception_v1.frozen
        - 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
TensorFlow specific parameters:
        - Input model in text protobuf format:  False
        - Path to model dump for TensorBoard:   None
        - List of shared libraries with TensorFlow custom layers implementation:        None
        - Update the configuration file with input/output node names:   None
        - Use configuration file used to generate the model with Object Detection API:  None
        - Use the config file:  None
Model Optimizer version:
[ ERROR ]
Detected not satisfied dependencies:
        tensorflow: not installed, required: >= 1.2.0
        tensorflow: not installed, required: < 2.0.0

 

I noticed that this is a very common error when we want to generate IR. 

I encountered the same problem several days ago when I did it on my own computer. I fixed it by installing TensorFlow 1.9 from the path "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\Scripts" manually. But it didn't work today.  It really makes me frustrated. 

 

So how to fix it in a normal way? 

Thank you in advance!

0 Kudos
1 Reply
Iffa_Intel
Moderator
738 Views

Greetings,

Yes,the most obvious problem that could be seen in the 

Detected not satisfied dependencies:
        tensorflow: not installed, required: >= 1.2.0
        tensorflow: not installed, required: < 2.0.0

Probably you can try to install the tensorflow with the compatible version as stated in the error and put it in your environment PATH.

Hope my answer helps!

Sincerely,

Iffa

 

0 Kudos
Reply