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

Error Running Pedict.py on Colab #44

Open
mdhwn21 opened this issue Nov 4, 2024 · 1 comment
Open

Error Running Pedict.py on Colab #44

mdhwn21 opened this issue Nov 4, 2024 · 1 comment

Comments

@mdhwn21
Copy link

mdhwn21 commented Nov 4, 2024

Describe the bug
Traceback (most recent call last):
File "/content/drive/MyDrive/Colab Notebooks/tennis-tracking/predict_video.py", line 73, in
m.load_weights(save_weights_path)
File "/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py", line 122, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/usr/local/lib/python3.10/dist-packages/keras/src/saving/saving_api.py", line 268, in load_weights
raise ValueError(
ValueError: File format not supported: filepath=WeightsTracknet/model.1. Keras 3 only supports V3 .keras and .weights.h5 files, or legacy V1/V2 .h5 files.

To Reproduce
Steps to reproduce the behavior:

  1. Follow steps for running project on colab and the above error is generated.

Expected behavior
Predict.py to run without errors.

Desktop (please complete the following information):

  • Google Colab on chrome
  • Version [e.g. 22]

Additional context
I think the documentation needs to be updated.

@sorker
Copy link

sorker commented Dec 17, 2024

Did you solve the problem?

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