Skip to content

Unable to load the pre-trained example #4

@1163307648

Description

@1163307648

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')"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions