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

Unable to load the pre-trained example #4

Open
1163307648 opened this issue Jun 2, 2017 · 0 comments
Open

Unable to load the pre-trained example #4

1163307648 opened this issue Jun 2, 2017 · 0 comments

Comments

@1163307648
Copy link

Getting the following traceback when trying to use neural-fuzzer.py. Can you help me?

Using Theano backend.
Using ./gen-905281352817 to store the generated files
Traceback (most recent call last):
File "./neural-fuzzer.py", line 206, in
model.load_weights(file_model)
File "/home/c/.local/lib/python2.7/site-packages/Keras-2.0.4-py2.7.egg/keras/models.py", line 717, in load_weights
topology.load_weights_from_hdf5_group(f, layers)
File "/home/c/.local/lib/python2.7/site-packages/Keras-2.0.4-py2.7.egg/keras/engine/topology.py", line 2931, in load_weights_from_hdf5_group
layer_names = [n.decode('utf8') for n in f.attrs['layer_names']]
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/tmp/pip-nCYoKW-build/h5py/_objects.c:2840)
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/tmp/pip-nCYoKW-build/h5py/_objects.c:2798)
File "/usr/local/lib/python2.7/dist-packages/h5py/_hl/attrs.py", line 58, in getitem
attr = h5a.open(self._id, self._e(name))
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/tmp/pip-nCYoKW-build/h5py/_objects.c:2840)
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/tmp/pip-nCYoKW-build/h5py/_objects.c:2798)
File "h5py/h5a.pyx", line 77, in h5py.h5a.open (/tmp/pip-nCYoKW-build/h5py/h5a.c:2337)
KeyError: "Can't open attribute (Can't locate attribute: 'layer_names')"

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