text-generator icon indicating copy to clipboard operation
text-generator copied to clipboard

Weights not loaded

Open hobbycodernovice opened this issue 7 years ago • 0 comments

Traceback (most recent call last):

],,NNVEEE,EKKkkkEKkkkqqqqqqqssqsq---rrrr!!!zKKrrrPkkzzKKkkrrKkkkrkKkkqqqqqqqssqsq---rrrr!!!zKKrrrPkk  File "C:/Users/username/AppData/Local/Programs/Python/Python36/text-generator-master/text-generator-master/recurrent_keras.py", line 54, in <module>
    model.load_weights('')
  File "C:\Users\usernameAppData\Local\Programs\Python\Python36\lib\site-packages\keras\models.py", line 721, in load_weights
    f = h5py.File(filepath, mode='r')
  File "C:\Users\username\AppData\Local\Programs\Python\Python36\lib\site-packages\h5py\_hl\files.py", line 269, in __init__
    fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
  File "C:\Users\username\AppData\Local\Programs\Python\Python36\lib\site-packages\h5py\_hl\files.py", line 99, in make_fid
    fid = h5f.open(name, flags, fapl=fapl)
  File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py\h5f.pyx", line 78, in h5py.h5f.open
ValueError: Invalid file name (invalid file name)

Having this error when trying to force the program to load weights. Otherwise, it defaults to epoch 0 and learning progress is lost. The program is still able to create the HDF5 files as intended, it just doesn't load them.

hobbycodernovice avatar Nov 27 '17 02:11 hobbycodernovice