Cannot write to snapshot prefix '***'. Make sure that the directory exists and is writeable解决方法
来源:互联网 发布:天津毕业生就业数据 编辑:程序博客网 时间:2024/05/21 07:49
在上一篇博客中我介绍了使用caffe的python接口绘制loss曲线和accuracy曲线,但是运行spyder的时候,出现了如下错误:
Cannot write to snapshot prefix 'caffe/examples/mnist/lenet'. Make sure that the directory exists and is writeable.
*** Check failure stack trace: ***
原因:原始的prototxt文件里面涉及到的路径都是以caffe的根目录作为基础的,都是假设程序是在caffe的根目录下运行的,因此在其他的地方使用这些prototxt文件时就需要将这些文件里的路径都修改成绝对路径。所以我将程序所需要的proto文件中只要涉及到路径的文件全都修改的一下,比如我绘制曲线时使用的是mnist例子的lenet_solver_adam.prototxt文件,这只是个求解配置文件,与这相关的文件还有lenet_train_test.prototxt文件,所以,需要修改的地方有这么几个位置(以下是修改之后):
lenet_solver_adam.prototxt:
lenet_train_test.prototxt
修改完这些位置之后再重新运行就行了。
其实还有一种方法就是将你的写的这个python脚本文件移动到caffe的根目录下,使用命令:
root@cyz:~/caffe# spyder loss.py
在根目录下运行就行了,这样就完全没必要修改上面这些文件。我上面说的这些只不过是为了强调出现了这种问题的原因就在出在文件的绝对路径上而已,绝不是坑各位。
注:这里的loss.py就是我绘制loss曲线的脚本文件
- Cannot write to snapshot prefix '***'. Make sure that the directory exists and is writeable解决方法
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- Please make sure you have the correct access rights and the repository exists.解决方法
- 关于make sure class name exists, is public, and has an empty constructor that is public解决办法
- Unable to instantiate fragment make sure class name exists, is public, and has an empty constructor
- Unable to instantiate fragment make sure class name exists, is public, and has an empty constructor
- Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "te
- Cannot find config.m4. Make sure that you run '/usr/bin/phpize' in the top level source directory
- Cannot connect to the vCenter server due to a certificate error. Make sure that the appropriate cert
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s are also using JDK installs
- Unable to instantiate fragment XXX make sure class name exists, is public, and has an empty constru
- 安装zendServer 报错:Failed to access Web server. Please make sure that the Web server is ..的解决
- An error occurred while installing mysql2 (0.4.4), and Bundler cannot continue. Make sure that `gem
- Please make sure you have the correct access rights and the repository exists
- Alias "bootstrap.widgets.TbHeroUnit" is invalid. Make sure it points to an existing PHP file and the
- Unable to instantiate fragment com.viewpager.demo.FirstFragment: make sure class name exists, is pub
- iOS面试笔记(2)
- HDU 1495 非常可乐 bfs状态空间搜索
- git 不知道出现什么问题了,所以就重新用HomeBrew重新安装了一下
- 关于session和cookie的笔记
- Java 正则校验手机号 工具类
- Cannot write to snapshot prefix '***'. Make sure that the directory exists and is writeable解决方法
- 337. House Robber III
- 页面传值
- 第四十三讲项目三 成绩统计
- centos7之lamp环境搭建
- 畅通工程-并查集-HDU1232
- Semantic UI 的基本使用(二):具体案例
- 采用opencv对图像进行分割
- DDD -- 领域驱动设计 -- 6步成诗法