解决在keras中使用model.save()函数保存模型失败的问题

 更新时间:2020年5月21日 16:23  点击:2748

我使用的是anaconda安装的环境,其中有一个是h5py,自动安装的是2.7.0的版本,这个版本会导致保存模型时python奔溃。

conda install h5py==2.8.0

将h5py更新一个版本即可解决这个问题。

补充知识:Django安装提示错误

使用sudo pip install ......的时候出现下面一段代码:

The directory '/Users/XX/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

在sudo 后面添加-H解决方法:

sudo -H pip install ......

以上这篇解决在keras中使用model.save()函数保存模型失败的问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持猪先飞。

[!--infotagslink--]

相关文章