解决在keras中使用model.save()函数保存模型失败的问题
我使用的是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 ......
上一篇:python使用OpenCV模块实现图像的融合示例代码
栏 目:Python代码
本文标题:解决在keras中使用model.save()函数保存模型失败的问题
本文地址:http://www.codeinn.net/misctech/112821.html






