File "D:\py\Anaconda3\envs\代码\lib\site-packages\h5py\_hl\files.py", line 231, 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 106, in h5py.h5f.open FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = './FCN_model/microwave/P/FCN_model/ep005-loss0.003116-val_loss0.010741.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
时间: 2024-01-03 13:02:58 浏览: 127
python 3.74 运行import numpy as np 报错lib\site-packages\numpy\__init__.py
这个错误信息显示找不到文件"./FCN_model/microwave/P/FCN_model/ep005-loss0.003116-val_loss0.010741.h5",导致无法打开文件。请确认该文件是否存在,或者检查路径是否正确。如果路径正确但文件确实不存在,你需要重新训练模型并保存到正确的路径。
阅读全文