theAIGuysCode / yolov4-deepsort

Object tracking implemented with YOLOv4, DeepSort, and TensorFlow.
GNU General Public License v3.0
1.31k stars 745 forks source link

ValueError: Output tensors to a Model must be the output of a TensorFlow `Layer` (thus holding past layer metadata). Found: Tensor("concatenate_16/concat:0", shape=(?, ?, ?), dtype=float32) #98

Open PS061188 opened 2 years ago

PS061188 commented 2 years ago

I am getting this error on the following line of 'save_model.py': model = tf.keras.Model(input_layer, pred)

I replaced all the 'tf.concat' to 'tf.keras.layers.concatenate', but still the problem is there. Any help would be appreciated.