juglab / n2v

This is the implementation of Noise2Void training.
Other
385 stars 107 forks source link

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

Open schienstockd opened 3 months ago

schienstockd commented 3 months ago

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!

jdeschamps commented 3 months ago

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 commented 3 months ago

I have updated the installation instructions.