When loading the pretrained model from huggingface using keras 3.9.2 creates an error.
# Load pretrained model
cnn = keras.models.load_model(model_file,compile=False
generates
TypeError: <class 'keras.src.models.functional.Functional'> could not be deserialized properly. Please ensure that components that are Python object instances (layers, models, etc.) returned by get_config()are explicitly deserialized in the model'sfrom_config() method.
Appears to have trouble loading the custom layer CoordConv2D