Ubuntu14.04LTS下应用Caffe训练Cifar10错误案例分析与解决方案1

来源:互联网 发布:php从入门到精通视频 编辑:程序博客网 时间:2024/06/05 19:35

来自以上博主,感谢~


(1)打开终端,应用cd切换路径,如 cd ~/caffe/data/cifar10

(2)继续执行命令   ./get_cifar10.sh 

(3)成功下载数据集之后,执行ls即可见所下载的数据文件,如

batches.meta.txt  data_batch_3.bin  get_cifar10.sh
data_batch_1.bin  data_batch_4.bin  readme.html
data_batch_2.bin  data_batch_5.bin  test_batch.bin

(在此之前仅有get_cifar10.sh)

(4)再次将路径切换到cd ~/caffe/examples/cifar10

(5)继续执行命令 ./create_cifar10.sh

出现错误:

Creating lmdb...
./create_cifar10.sh: 12: ./create_cifar10.sh: ./build/examples/cifar10/convert_cifar_data.bin: not found
Computing image mean...
./create_cifar10.sh: 16: ./create_cifar10.sh: ./build/tools/compute_image_mean: not found
Done.

提示没有找到相关文件,其实它提示的文件都在计算机中,如果直接在根目录下执行,则将会得到期望结果。如:

heliheng@heliheng-Inspiron-5520:~/caffe$ ~/caffe/examples/cifar10/create_cifar10.sh
Creating lmdb...
Computing image mean...
Done.
heliheng@heliheng-Inspiron-5520:~/caffe$ 

具体原因:新版的Caffe如果不从根目录开始执行则会出现类似错误。
0 0