<p dir="auto"><strong>I have same issue.<br>
I have doing real time face recognition using tensorflow. I'm follow this link "<a href="https://github.com/btwardow/tf-face-recognition">https://github.com/btwardow/tf-face-recognition</a>" When I'm download clone repo it work in one system but try to run another one this show me error. Please help me out.</strong></p>
<p dir="auto">`Traceback (most recent call last):<br>
File "server.py", line 49, in detect<br>
faces = recognize(detection.get_faces(image, threshold))<br>
File "/home/bigblue/Music/Test/tf-face-recognition-master/tensorface/recognition.py", line 19, in recognize<br>
X[i, :] = embedding(img_to_np(img))<br>
File "/home/bigblue/Music/Test/tf-face-recognition-master/tensorface/embedding.py", line 43, in embedding<br>
images_placeholder = tf.get_default_graph().get_tensor_by_name("input:0")<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3666, in get_tensor_by_name<br>
return self.as_graph_element(name, allow_tensor=True, allow_operation=False)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3490, in as_graph_element<br>
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3532, in _as_graph_element_locked<br>
"graph." % (repr(name), repr(op_name)))<br>
<strong>KeyError: "The name 'input:0' refers to a Tensor which does not exist. The operation, 'input', does not exist in the graph."</strong><br>
[2019-02-26 11:28:06,532] ERROR in app: Exception on /detect [POST]<br>
Traceback (most recent call last):<br>
File "server.py", line 49, in detect<br>
faces = recognize(detection.get_faces(image, threshold))<br>
File "/home/bigblue/Music/Test/tf-face-recognition-master/tensorface/recognition.py", line 19, in recognize<br>
X[i, :] = embedding(img_to_np(img))<br>
File "/home/bigblue/Music/Test/tf-face-recognition-master/tensorface/embedding.py", line 43, in embedding<br>
images_placeholder = tf.get_default_graph().get_tensor_by_name("input:0")<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3666, in get_tensor_by_name<br>
return self.as_graph_element(name, allow_tensor=True, allow_operation=False)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3490, in as_graph_element<br>
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3532, in _as_graph_element_locked<br>
"graph." % (repr(name), repr(op_name)))<br>
KeyError: "The name 'input:0' refers to a Tensor which does not exist. The operation, 'input', does not exist in the graph."</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app<br>
response = self.full_dispatch_request()<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request<br>
rv = self.handle_user_exception(e)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception<br>
reraise(exc_type, exc_value, tb)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise<br>
raise value<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request<br>
rv = self.dispatch_request()<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request<br>
return self.view_functions<a href="**req.view_args">rule.endpoint</a><br>
File "server.py", line 69, in detect<br>
print('POST /detect error: %e' % e)<br>
TypeError: must be real number, not KeyError`</p>
<p dir="auto">Hi i'm running the tensorflow from the source and after building the tensorflow using bazel using below command</p>
<p dir="auto"><strong>bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package</strong></p>
<p dir="auto"><strong>The error message pasted below</strong></p>
<p dir="auto">10 errors detected in the compilation of "/home/lb/.cache/bazel/_bazel_lb/144f5944ef8ff562c57e67fdaa41565f/execroot/org_tensorflow/tmpae8_5f0170552fd082f4/tmpxft_0000245c_00000000-6_reduce_slice_ops_gpu.cu.cpp1.ii".<br>
ERROR: /home/lb/WorkSpace/AI-WORK/tensorflow/tensorflow/contrib/reduce_slice_ops/BUILD:14:1: output 'tensorflow/contrib/reduce_slice_ops/_objs/python/ops/_reduce_slice_ops_gpu/tensorflow/contrib/reduce_slice_ops/kernels/reduce_slice_ops_gpu.cu.pic.o' was not created<br>
ERROR: /home/lb/WorkSpace/AI-WORK/tensorflow/tensorflow/contrib/reduce_slice_ops/BUILD:14:1: not all outputs were created or valid<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build<br>
Use --verbose_failures to see the command lines of failed build steps.<br>
INFO: Elapsed time: 74.030s, Critical Path: 8.38s<br>
FAILED: Build did NOT complete successfully</p>