Skip to content

Weights not loaded #5

Description

@hobbycodernovice

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions