ModulenotFoundError:没有名为' keras.saving'
完全错误:
Using TensorFlow backend.
Traceback (most recent call last):
File "file.py", line 32, in <module>
pickled_model = pickle.load(open('model.pkl', 'rb'))
ModuleNotFoundError: No module named 'keras.saving'
我无法解决此错误。 感谢您的帮助:)
Complete Error:
Using TensorFlow backend.
Traceback (most recent call last):
File "file.py", line 32, in <module>
pickled_model = pickle.load(open('model.pkl', 'rb'))
ModuleNotFoundError: No module named 'keras.saving'
I am not able to solve this error.
Thanks for the help:)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在编译以下代码时遇到了相同的错误,
我使用腌制库保存了模型并尝试打开。
I am getting the same error while compiling the following code
I saved model using pickle library and trying to open.
我想到了Keras 2.3和Tensorflow 2.5的问题。升级到Keras 2.9和Tensorflow 2.9后,解决了问题。
I came up with this problem with Keras 2.3 and TensorFlow 2.5. After I upgrade to Keras 2.9 and TensorFlow 2.9, the problem was solved.