I downloaded a saved CNN model from here. However, I am unable to load the model. I have tried the following code
import tensorflow as tf
import keras
from tensorflow.keras.models import load_model
model = load_model('./full_retina_model.h5')
It gives an error
ValueError: bad marshal data (unknown type code)
I also have the hdf5 downloaded from the same web which I am trying to use like:
model = tf.keras.models.Sequential()
model.load_weights('./retina_weights.best.hdf5')
which over error
ValueError: Unable to load weights saved in HDF5 format into a subclassed Model which has not created its variables yet. Call the Model first, then load the weights.
Any help in loading this model from the URL is appreciated