Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
396 Views

'Graph' object has no attribute 'node'

 Hi, Someone please help. Every time I am trying to run model optimizer to create .xml and .bin files I keep getting the same error.

Command used :

python3 ./mo_tf.py --input_model /home/venku/movidius/facenet/20180408-102900/20180408-102900.pb --freeze_placeholder_with_value "phase_train->False"

 

   - IR output name:   20180408-102900

   - 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

   - Operations to offload:   None

   - Patterns to offload:   None

   - Use the config file:   None

Model Optimizer version:   2019.3.0-375-g332562022

/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 _np_qint8 = np.dtype([("qint8", np.int8, 1)])

/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 _np_quint8 = np.dtype([("quint8", np.uint8, 1)])

/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 _np_qint16 = np.dtype([("qint16", np.int16, 1)])

/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 _np_quint16 = np.dtype([("quint16", np.uint16, 1)])

/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 _np_qint32 = np.dtype([("qint32", np.int32, 1)])

/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 np_resource = np.dtype([("resource", np.ubyte, 1)])

/usr/local/lib/python3.5/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 _np_qint8 = np.dtype([("qint8", np.int8, 1)])

/usr/local/lib/python3.5/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 _np_quint8 = np.dtype([("quint8", np.uint8, 1)])

/usr/local/lib/python3.5/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 _np_qint16 = np.dtype([("qint16", np.int16, 1)])

/usr/local/lib/python3.5/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 _np_quint16 = np.dtype([("quint16", np.uint16, 1)])

/usr/local/lib/python3.5/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 _np_qint32 = np.dtype([("qint32", np.int32, 1)])

/usr/local/lib/python3.5/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

 np_resource = np.dtype([("resource", np.ubyte, 1)])

[ ERROR ] 'Graph' object has no attribute 'node'

Cannot pre-process TensorFlow graph after reading from model file "/home/venku/movidius/facenet/20180408-102900/20180408-102900.pb". File is corrupt or has unsupported format. Details: 'Graph' object has no attribute 'node'.

 For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #44.

 

0 Kudos
3 Replies
Highlighted
77 Views

Hi VBura, 

 

There may be a compatibility issue with the networkx package. Could you try and install version 2.3 using the command "pip3 install networkx==2.3". Try to run the demo again and let me know if it works. 

 

 

Regards, 

 

 

Javier A. 

 

Intel Customer Support Technician 

 

A Contingent Worker at Intel 

Highlighted
Novice
77 Views

Hi Javier, yes that was the issue. After downgrading netwokx to 2.3 I am able move forward without any issues. Thank you Javier.

 

Thanks,

Venku

 

 

Highlighted
77 Views

I am glad that it solved your issue, I am going to proceed to close this thread.

 

Regards,

 

Javier A.  

Intel Customer Support Technician  

A Contingent Worker at Intel 

 

0 Kudos