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

Error #1

Open
TheRo0T opened this issue Jan 29, 2021 · 3 comments
Open

Error #1

TheRo0T opened this issue Jan 29, 2021 · 3 comments

Comments

@TheRo0T
Copy link

TheRo0T commented Jan 29, 2021

Hey! Great library! Please tell me what could be the problem. When I run the train.py, I get an error:

Traceback (most recent call last): File "train.py", line 50, in <module> model.save(model_dir, overwrite=True) File "/home/pi/venv/lib/python3.7/site-packages/micmon-0.1-py3.7.egg/micmon/model/__init__.py", line 58, in save File "/home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/network.py", line 986, in save signatures, options) File "/home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/save.py", line 112, in save_model model, filepath, overwrite, include_optimizer) File "/home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/hdf5_format.py", line 73, in save_model_to_hdf5 raise ImportError('save_modelrequires h5py.') ImportError:save_modelrequires h5py.

I am using Raspbian GNU/Linux 10 (buster)
h5py package installed, Version: 3.1.0

@blacklight
Copy link
Owner

As stated by the error, recent versions of TensorFlow require h5py to export a model to .h5 format.

@TheRo0T
Copy link
Author

TheRo0T commented Feb 1, 2021

Thanks for the answer! Probably this library does not work in older versions of Tensorflow, I am using 1.14.

@blacklight
Copy link
Owner

You have to use Tensorflow 2.0 or higher. There have been simply too many changes in the API from 1.x to 2.x to be able to maintain back-compatibility.

@jenssss jenssss mentioned this issue Mar 20, 2021
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

2 participants