At the call
model.load_weights(checkpoint_path)
I get this error
ValueError: File format not supported: filepath=I:\resnet50\e_8_b_20000.ckpt.
Keras 3 only supports V3 `.keras` and `.weights.h5` files, or legacy V1/V2 `.h5` files.
model was saved with
model.save_weights('checkpoints/{}/e_{}_b_{}.ckpt'.format(model_name, epochs, steps % steps_per_epoch))
and consists of these files
checkpoint
e_8_b_20000.ckpt.data-00000-of-00002
e_8_b_20000.ckpt.data-00001-of-00002
e_8_b_20000.ckpt.index
I’m using tensorflow 2.16 Same code and model files works in tensorflow 2.1 and I see from documentation here in the section Manually save weights
That by default, tf.keras
and Model.save_weights
method in particular—uses the TensorFlow Checkpoint format with a .ckpt
extension.
So it seems Checkpoint format with a .ckpt
extension is still supported.