Skip to content

Instantly share code, notes, and snippets.

@RobotGrrl
Created September 3, 2018 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobotGrrl/59a3ad2a48192efa963da23f3a219997 to your computer and use it in GitHub Desktop.
Save RobotGrrl/59a3ad2a48192efa963da23f3a219997 to your computer and use it in GitHub Desktop.
tf error
python3 Object_detection_picamera.py
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: compiletime version 3.4 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.5
return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: builtins.type size changed, may indicate binary incompatibility. Expected 432, got 412
return f(*args, **kwds)
Traceback (most recent call last):
File "Object_detection_picamera.py", line 97, in <module>
image_tensor = detection_graph.get_tensor_by_name('image_tensor:0')
File "/home/pi/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 3789, in get_tensor_by_name
return self.as_graph_element(name, allow_tensor=True, allow_operation=False)
File "/home/pi/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 3613, in as_graph_element
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
File "/home/pi/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 3655, 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."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment