Skip to content

Add keras_metadata.pb to pre-trained models? #376

@brawer

Description

@brawer

Calamari built from current master (1c1b793) gives the following warning from the TensorFlow library:

$ calamari-predict --checkpoint fraktur_19th_century/4.ckpt --data.images test.png
[...]
WARNING  2025-12-24 11:06:05,448                     tensorflow: SavedModel saved prior to TF 2.5 detected when loading Keras model. Please ensure that you are saving the model with model.save() or tf.keras.models.save_model(), *NOT* tf.saved_model.save(). To confirm, there should be a file named "keras_metadata.pb" in the SavedModel directory.
INFO     2025-12-24 11:06:08,588                           absl: Fingerprint not found. Saved model loading will continue.
INFO     2025-12-24 11:06:08,588                           absl: path_and_singleprint metric could not be logged. Saved model loading will continue.

The OCR system works fine, but I wanted to bring your attention to this warning. Missing keras_metadata.pb file in pre-trained models?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions