且构网

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

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

更新时间:2023-12-02 23:01:22

似乎有一个 issue 与 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