n2v icon indicating copy to clipboard operation
n2v copied to clipboard

the filepath provided must end in `.weights.h5`

Open schienstockd opened this issue 11 months ago • 2 comments

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 avatar Mar 22 '24 07:03 schienstockd

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 avatar Apr 06 '24 15:04 jdeschamps

I have updated the installation instructions.

jdeschamps avatar Apr 06 '24 15:04 jdeschamps