且构网

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

有没有人得到“AttributeError: 'str' object has no attribute 'decode'"?, 在加载 Keras 保存的模型时

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

对我来说,解决方案是将 h5py 包降级(在我的例子中是 2.10.0),显然只放回了 Keras 和 Tensorflow到正确的版本是不够的.

For me the solution was downgrading the h5py package (in my case to 2.10.0), apparently putting back only Keras and Tensorflow to the correct versions was not enough.