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.

Internal Error using mo_tf.py

Bone__Joshua
Beginner
378 Views

I am running mo_tf.py to convert a .pb file to IR representation. Just after updating tensorflow from version 1.15.0 to 2.0.0, I got the following warning: 

[ WARNING ]
Detected not satisfied dependencies:
        tensorflow: installed: 2.0.0, required: 2.0.0

Then the program stopped with this error:

[ ERROR ]  -------------------------------------------------
[ ERROR ]  ----------------- INTERNAL ERROR ----------------
[ ERROR ]  Unexpected exception happened.
[ ERROR ]  Please contact Model Optimizer developers and forward the following information:
[ ERROR ]  module 'tensorflow' has no attribute 'NodeDef'
[ ERROR ]  Traceback (most recent call last):
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\model_optimizer\mo\main.py", line 298, in main
    return driver(argv)
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\model_optimizer\mo\main.py", line 243, in driver
    import mo.pipeline.tf as mo_tf
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\model_optimizer\mo\pipeline\tf.py", line 33, in <module>
    from mo.front.tf.extractor import get_tf_edges, tf_op_extractor, tf_op_extractors
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\model_optimizer\mo\front\tf\extractor.py", line 26, in <module>
    from mo.front.tf.extractors.native_tf import native_tf_node_extractor
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\model_optimizer\mo\front\tf\extractors\native_tf.py", line 17, in <module>
    from mo.front.tf.partial_infer.tf import tf_native_tf_node_infer
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\model_optimizer\mo\front\tf\partial_infer\tf.py", line 148, in <module>
    is_input: bool = False):
AttributeError: module 'tensorflow' has no attribute 'NodeDef'

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

0 Kudos
1 Reply
JesusE_Intel
Moderator
378 Views

Hi Joshua,

Thanks for reaching out. The OpenVINO toolkit does not currently support Tensorflow 2.0, please downgrade your Tensorflow version to 1.14 or 1.15. 

Regards,

Jesus

0 Kudos
Reply