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

the filepath provided must end in .weights.h5 #150

Open
schienstockd opened this issue Mar 22, 2024 · 2 comments
Open

the filepath provided must end in .weights.h5 #150

schienstockd opened this issue Mar 22, 2024 · 2 comments

Comments

@schienstockd
Copy link

Hello,

I'm using tensorflow 2.16.1 and get the following when trying to train a model with model.train

ValueError: When using `save_weights_only=True` in `ModelCheckpoint`, the filepath provided must end in `.weights.h5` (Keras weights format). Received: filepath=*/model_name/weights_best.h5

I had no issue with this before. Is this a new checkpoint in keras?

Thanks!

@schienstockd schienstockd changed the title ValueError: When using save_weights_only=True in ModelCheckpoint, the filepath provided must end in .weights.h5 (Keras weights format) the filepath provided must end in .weights.h5 Mar 22, 2024
@jdeschamps
Copy link
Member

jdeschamps commented Apr 6, 2024

Hi,

Sorry for the delay!

Yes it seems to be a problem of the newer TF... Can you downgrade to an earlier version?

We tested it last with TF2.13 and TF2.10. On CPU just now, it seems it works with TF2.15.

@jdeschamps
Copy link
Member

I have updated the installation instructions.

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

3 participants
@jdeschamps @schienstockd and others