You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write a code for implementing YOLOv8 detection and DeepSORT tracking to mp4 video opened with OpenCV (if I get this working, I'll move to real time RealSense video stream). However, when using DeepSORT tracking tools I end up getting a Tensorflow builtins.KeyError in tensorflow/python/framework/ops.py:
File"/home/jvkloc/Documents/TKT/Python/Sonify/realsense_main.py", line22, in<module>tracker=Tracker()
File"/home/jvkloc/Documents/TKT/Python/Sonify/Tracker.py", line22, in__init__self.encoder=gdet.create_box_encoder(encoder_model_filename, batch_size=1)
File"/home/jvkloc/Documents/TKT/Python/Sonify/deep_sort/tools/generate_detections.py", line100, increate_box_encoderimage_encoder=ImageEncoder(model_filename, input_name, output_name)
File"/home/jvkloc/Documents/TKT/Python/Sonify/deep_sort/tools/generate_detections.py", line80, in__init__self.input_var=tf.compat.v1.get_default_graph().get_tensor_by_name(
File"/home/jvkloc/.local/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line4188, inget_tensor_by_namereturnself.as_graph_element(name, allow_tensor=True, allow_operation=False)
File"/home/jvkloc/.local/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line4012, inas_graph_elementreturnself._as_graph_element_locked(obj, allow_tensor, allow_operation)
File"/home/jvkloc/.local/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line4052, in_as_graph_element_lockedraiseKeyError("The name %s refers to a Tensor which does not "builtins.KeyError: "The name 'net/images:0' refers to a Tensor which does not exist. The operation, 'net/images', does not exist in the graph."
I'm trying to write a code for implementing YOLOv8 detection and DeepSORT tracking to mp4 video opened with OpenCV (if I get this working, I'll move to real time RealSense video stream). However, when using DeepSORT tracking tools I end up getting a Tensorflow builtins.KeyError in tensorflow/python/framework/ops.py:
This is the Tracker class I'm trying to use:
The text was updated successfully, but these errors were encountered: