在keras中使用model.save()函数保存模型失败的问题解决方法
这篇文章主要讲解了在keras中使用model.save()函数保存模型失败的问题解决方法,内容清晰明了,对此有兴趣的小伙伴可以学习一下,相信大家阅读完之后会有帮助。
我使用的是anaconda安装的环境,其中有一个是h6py,自动安装的是2.7.0的版本,这个版本会导致保存模型时python奔溃。
conda install h6py==2.8.0
将h6py更新一个版本即可解决这个问题。
补充知识: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()函数保存模型失败的问题解决方法有进一步的了解,如果还想学习更多内容,欢迎关注亿速云行业资讯频道。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。