Keras: OSError: Unable to open file (unable to open file: name = 'D:/G/WORK/MODEL_OP/TfLearn.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Created on 3 Jul 2018  路  6Comments  路  Source: keras-team/keras

I am trying to save the model in hdf5 or h5 format, but I am getting error. I Have tried to install and upgrade packages but still getting same error again and again.
Tried all solutions available in google, git, etc.

with h5py.File(filepath, mode='r') as f:
File "C:\Users\admin\Anaconda3\envs\gss1\lib\site-packages\h5py_hl\files.py", line 312, in __init__
fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
File "C:\Users\admin\Anaconda3\envs\gss1\lib\site-packages\h5py_hl\files.py", line 142, 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
OSError: Unable to open file (unable to open file: name = 'D:/G/WORK/MODEL_OP/TfLearn.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Please help me to solve this problem.
Thanks in advance

Most helpful comment

me too

All 6 comments

I get the same error and I am interested in how to deal with it
Thank you!

me too

me too

me too

I did it when I change the model file (xx.h5) into another disk directory(not local disk, C:/)

02

Was this page helpful?
0 / 5 - 0 ratings