且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

model_config = json_utils.decode(model_config.decode('utf-8'))AttributeError:'str'对象没有属性'decode'

更新时间:2023-12-02 23:10:04

似乎有一个h5py的问题,必须将其安装在特定版本中才能确保与tensorflow兼容.这就是我的诀窍:

There seems to be an issue with h5py and it has to be installed in a certain version to ensure compatibility with tensorflow. This is what did the trick for me:

pip uninstall h5py
pip install h5py==2.10.0