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

gui.py运行失败,显示无法打开作者的已经训练的模型 #40

Open
mengzhichichichi opened this issue May 16, 2023 · 0 comments

Comments

@mengzhichichichi
Copy link

F:\Anaconda3-\envs\biaoqingshibie\python.exe E:/pycharm_project/people_face_shibie/facial-expression-recognition-master/src/gui.py
Traceback (most recent call last):
File "E:/pycharm_project/people_face_shibie/facial-expression-recognition-master/src/gui.py", line 24, in
model = load_cnn_model()
File "E:/pycharm_project/people_face_shibie/facial-expression-recognition-master/src/gui.py", line 17, in load_cnn_model
model.load_weights('/cnn3_best_weights.h5')
File "F:\Anaconda3-\envs\biaoqingshibie\lib\site-packages\tensorflow\python\keras\engine\training.py", line 2204, in load_weights
with h5py.File(filepath, 'r') as f:
File "F:\Anaconda3-\envs\biaoqingshibie\lib\site-packages\h5py_hl\files.py", line 408, in init
swmr=swmr)
File "F:\Anaconda3-\envs\biaoqingshibie\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 (unable to open file: name = '/cnn3_best_weights.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Process finished with exit code 1

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