KeyError: "The name 'image_tensor:0' refers to a Tensor which does not exist. The operation, 'image_tensor', does not exist in the graph."
Hello guys, I trained a model using a small dataset and exported the inference graph and,got the warning as below:
W0311 12:26:33.948201 139839410337600 ag_logging.py:145] Entity <bound method Conv2D.call of <tensorflow.python.layers.convolutional.Conv2D object at 0x7f2ee01f0250>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: converting <bound method Conv2D.call of <tensorflow.python.layers.convolutional.Conv2D object at 0x7f2ee01f0250>>: AssertionError: Bad argument number for Name: 3, expecting 4
WARNING:tensorflow:Entity <bound method BatchNormalization.call of <tensorflow.python.layers.normalization.BatchNormalization object at 0x7f2eb15cee50>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: converting <bound method BatchNormalization.call of <tensorflow.python.layers.normalization.BatchNormalization object at 0x7f2eb15cee50>>: AssertionError: Bad argument number for Name: 3, expecting 4
W0311 12:26:33.968961 139839410337600 ag_logging.py:145] Entity <bound method BatchNormalization.call of <tensorflow.python.layers.normalization.BatchNormalization object at 0x7f2eb15cee50>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: converting <bound method BatchNormalization.call of <tensorflow.python.layers.normalization.BatchNormalization object at 0x7f2eb15cee50>>: AssertionError: Bad argument number for Name: 3, expecting 4
WARNING:tensorflow:Entity <bound method Conv2D.call of <tensorflow.python.layers.convolutional.Conv2D object at 0x7f2eb1838c90>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: converting <bound method Conv2D.call of <tensorflow.python.layers.convolutional.Conv2D object at 0x7f2eb1838c90>>: AssertionError: Bad argument number for Name: 3, expecting 4
But,the model was generated I tried to use object detection image python file to deploy the model but,i got the error as shown below: File "/home/welcome/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3796, in as_graph_element return self._as_graph_element_locked(obj, allow_tensor, allow_operation) File "/home/welcome/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3838, in _as_graph_element_locked "graph." % (repr(name), repr(op_name))) KeyError: "The name 'image_tensor:0' refers to a Tensor which does not exist. The operation, 'image_tensor', does not exist in the graph."
Please help me to fix this. I am running tensorflow 1.14 Regards, Aswin Kumar
Before change tensorflow version please check your "gast" version and downgrade to 0.2.2 version.Please try using another TensorFlow version.Because of tensorflow 1.14 version.