博主好,想请问一下,跑TensorFlow时候,读取.h5就会出现bag,而ckpt就不会。

File "F:\Anaconda-install\envs\tensorflow\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "F:\Anaconda-install\envs\tensorflow\lib\site-packages\keras\engine\training.py", line 2396, in load_weights
raise ImportError(
ImportError: load_weights requires h5py package when loading weights from HDF5. Try installing h5py.
python-BaseException
博主您好,想请问一下,跑TensorFlow时候,一直报错,load_weights requires h5py package when loading weights from HDF5. Try installing h5py。就是训练Efficientnet和shufflenet网络,直接跳到training.py,结束。但是我的h5py库在pycharm上报错前是3.5,现在在pycharm卸载3.5,安装3.6也是错的,并且在pycharm显示如图,版本还是3.5

img

h5py版本太高了,用2.10.0试试