davidsandberg / facenet

Face recognition using Tensorflow
MIT License
13.71k stars 4.8k forks source link

KeyError: "The name 'batch_join:0' refers to a Tensor which does not exist. The operation, 'batch_join', does not exist in the graph." #1098

Open jaiatncson7 opened 4 years ago

jaiatncson7 commented 4 years ago

Hi,

I am facing the issue when running the real_time_face_recognition.py script,

File "/mnt/work/rna_payload/ros2_ws/build/video_analysis/video_analysis/facenet/contributed/face.py", line 86, in identify face.embedding = self.encoder.generate_embedding(face) File "/mnt/work/rna_payload/ros2_ws/build/video_analysis/video_analysis/facenet/contributed/face.py", line 128, in generate_embedding images_placeholder = tf.compat.v1.get_default_graph().get_tensor_by_name("batch_join:0") File "/home/jaiganesh/.local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3972, in get_tensor_by_name return self.as_graph_element(name, allow_tensor=True, allow_operation=False) File "/home/jaiganesh/.local/lib/python3.6/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/jaiganesh/.local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3838, in _as_graph_element_locked "graph." % (repr(name), repr(op_name))) KeyError: "The name 'batch_join:0' refers to a Tensor which does not exist. The operation, 'batch_join', does not exist in the graph

May i know how to fix this issue?

Ohad-Multisense commented 2 years ago

some body resolve this issue?