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
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:
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.
The text was updated successfully, but these errors were encountered:
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:
Expected behavior
Predict.py to run without errors.
Desktop (please complete the following information):
Additional context
I think the documentation needs to be updated.
The text was updated successfully, but these errors were encountered: