Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keras2_mnist_cnn_allconv.h5 of MNIST demo can't be decoded #132

Open
antoinecomp opened this issue Jul 1, 2022 · 0 comments
Open

keras2_mnist_cnn_allconv.h5 of MNIST demo can't be decoded #132

antoinecomp opened this issue Jul 1, 2022 · 0 comments

Comments

@antoinecomp
Copy link

I tried to test the notebook to reproduce the results on MNIST but I have a problem with Tensorflow version 1.15 and the keras2_mnist_cnn_allconv.h5 file. It seems that the latter is a text file and therefore it is not decodable.

/tensorflow-1.15.2/python3.7/keras/engine/saving.py in _deserialize_model(h5dict, custom_objects, compile)
271 if model_config is None:
272 raise ValueError('No model found in config.')
--> 273 model_config = json.loads(model_config.decode('utf-8'))
274 model = model_from_config(model_config, custom_objects=custom_objects)
275 model_weights_group = h5dict['model_weights']

AttributeError: 'str' object has no attribute 'decode'

Here is my attempt on a google colab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant