Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: Unable to open file (file signature not found) #20

Open
FadyaAbbas opened this issue Mar 13, 2021 · 0 comments
Open

OSError: Unable to open file (file signature not found) #20

FadyaAbbas opened this issue Mar 13, 2021 · 0 comments

Comments

@FadyaAbbas
Copy link

Hi Somshubra

I'm trying to run it, but I'm always getting the following issue, hoping that you may able to help me please:

Epoch 10/10
50000/50000 [==============================] - 13s 263us/step - loss: 1.4992 - accuracy: 0.4590 - val_loss: 1.4886 - val_accuracy: 0.4616
Traceback (most recent call last):
File "train.py", line 85, in
reward, previous_acc = manager.get_rewards(model_fn, state_space.parse_state_space_list(actions))
File "C:\Users\Mohammed\PycharmProjects\MultiAgent\NAS\neural-architecture-search-master\manager.py", line 79, in get_rewards
model.load_weights('weights/temp_network.h5')
File "C:\Users\Mohammed\Anaconda3\lib\site-packages\keras\engine\saving.py", line 492, in load_wrapper
return load_function(*args, **kwargs)
File "C:\Users\Mohammed\Anaconda3\lib\site-packages\keras\engine\network.py", line 1221, in load_weights
with h5py.File(filepath, mode='r') as f:
File "C:\Users\Mohammed\Anaconda3\lib\site-packages\h5py_hl\files.py", line 408, in init
swmr=swmr)
File "C:\Users\Mohammed\Anaconda3\lib\site-packages\h5py_hl\files.py", line 173, 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 88, in h5py.h5f.open
OSError: Unable to open file (file signature not found)
Exception ignored in: <function BaseSession._Callable.del at 0x0000014D9CC6E9D8>
Traceback (most recent call last):
File "C:\Users\Mohammed\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\client\session.py", line 1473, in del
tensorflow.python.framework.errors_impl.CancelledError: (None, None, 'Session has been closed.')
Exception ignored in: <function BaseSession._Callable.del at 0x0000014D9CC6E9D8>
Traceback (most recent call last):
File "C:\Users\Mohammed\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\client\session.py", line 1473, in del
tensorflow.python.framework.errors_impl.CancelledError: (None, None, 'Session has been closed.')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant