bash ./build/tools/caffe: 没有那个文件或目录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36721348/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
./build/tools/caffe: No such file or directory
提问by Ashutosh Singla
I have a question regarding the command for running the training in Linux. I am using GoogleNet model in caffe framework for binary classification of my images. I used the following command to train my dataset
我有一个关于在 Linux 中运行培训的命令的问题。我在 caffe 框架中使用 GoogleNet 模型对我的图像进行二进制分类。我使用以下命令来训练我的数据集
./build/tools/caffe train --solver=models/MyModelGoogLenet/quick_solver.prototxt
./build/tools/caffe train --solver=models/MyModelGoogLenet/quick_solver.prototxt
But I received this error
但我收到了这个错误
bash: ./build/tools/caffe: No such file or directory
bash: ./build/tools/caffe: 没有那个文件或目录
How can I resolve this error? Any suggestions would be of great help.
我该如何解决这个错误?任何建议都会有很大帮助。
采纳答案by Harsh Wardhan
You should specify absolute paths to all your files and commands, to be on the safer side. If /home/user/build/tools/caffe train
still doesn't work, check if you have a build directory
in your caffe root
. If not, then use /home/user/tools/caffe train
instead.
为了更安全,您应该指定所有文件和命令的绝对路径。如果/home/user/build/tools/caffe train
仍然不起作用,请检查build directory
您的caffe root
. 如果没有,则/home/user/tools/caffe train
改用。
回答by Anoop K. Prabhu
Follow the below instructions and see if it works:
按照以下说明操作,看看它是否有效:
- Open a terminal
cd
to caffe root directory- Make sure the file
caffe
exists by listing them usingls ./build/tools
- If the file is not present, type
make
. Running step 3 will list the file now. - Type
./build/tools/caffe
,No such file
error shouldn't get triggered this time.
- 打开终端
cd
到caffe根目录caffe
通过使用列出它们来确保文件存在ls ./build/tools
- 如果文件不存在,请键入
make
. 现在运行第 3 步将列出该文件。 - Type
./build/tools/caffe
,No such file
这次不应触发错误。