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 Error when inference video with detection.py with cloned model weight #11

Open
jet-c-21 opened this issue Feb 14, 2023 · 1 comment

Comments

@jet-c-21
Copy link

command:

python detection.py -i raw_video/many_wild_birds.mp4 -o inference.mp4 --model models/model_1.00.hdf5

Error:

  File "/home/puff/anaconda3/envs/bee4exp/lib/python3.6/site-packages/keras/engine/saving.py", line 1030, in load_weights_from_hdf5_group
    str(len(filtered_layers)) + ' layers.')
ValueError: You are trying to load a weight file containing 1 layers into a model with 13 layers.

Seems the model structure does not match, can you provide the pre-trained model?
Thanks!

@zakharchik-me
Copy link

@jet-c-21 , Hi, have you fixed that problem, I do have it now

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

2 participants