CIFASIS / neural-fuzzer

http://cifasis.github.io/neural-fuzzer/
GNU General Public License v3.0
90 stars 20 forks source link

Unable to load the pre-trained example #4

Open 1163307648 opened 7 years ago

1163307648 commented 7 years ago

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