红联Linux门户
Linux帮助

关于训练caffe模型出现./build/tools/caffe: command not found

发布时间:2017-06-12 10:31:33来源:linux网站作者:xunan003
1、问题来源
在学习21天一次训练模型时键入命令sudo ./build/tools/caffe train --solver=lenet_lr_solver.prototxt时,突然提示题目中(./build/tools/caffe: command not found)所示报错。瞬间蒙蔽,之前编译的时候好好的啊。打开caffe/build/tools一看,更蒙蔽,空空如也,什么文件都没有了。思来想去,原来是有一次在caffe下使用过命令make clean(这命令可不可以随便乱用啊)。
 
2、解决方案
想着这下完了,要重新配置caffe了。就搜索了一下解决方案,有网友说在caffe根目录下试试make all命令。试了一下,果然可以。
解决命令:~/caffe$ sudo make all
 
本文永久更新地址:http://www.linuxdiyf.com/linux/31429.html