Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Shape related Issue while loading the weight file in yolov3. #29

Open
praddhumnasoni opened this issue Nov 16, 2023 · 0 comments

Comments

@praddhumnasoni
Copy link

Note: Going through the yolov3_darknet demo file in colab.

The error while trying to load the model file.
Note: .h5 file is downloaded from the given link in notebook only.
the error is as below!
/usr/local/lib/python3.10/dist-packages/keras/src/engine/keras_tensor.py in len(self)
244
245 def len(self):
--> 246 raise TypeError(
247 "Keras symbolic inputs/outputs do not "
248 "implement __len__. You may be "

TypeError: Exception encountered when calling layer "reshape" (type Reshape).

Keras symbolic inputs/outputs do not implement __len__. You may be trying to pass Keras symbolic inputs/outputs to a TF API that does not register dispatching, preventing Keras from automatically converting the API call to a lambda layer in the Functional Model. This error will also get raised if you try asserting a symbolic input/output directly.

Call arguments received by layer "reshape" (type Reshape):
• inputs=tf.Tensor(shape=(None, None, None, 75), dtype=float32)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant