caffe学习(1)——问题集锦

1、caffe编译

sudo su;
make all -j16;
make test -j16;
make runtest -j16;
make pycaffe; (退出权限)

1、ModuleNotFoundError: No module named ‘caffe’

import numpy as np
import os,sys
caffe_root='/home/xu/caffe'
os.chdir(caffe_root)
sys.path.insert(0,caffe_root+'python')
import caffe

2、cifar10中,运行create_cifar10.sh文件报错:

./create_cifar10.sh: 13: ./create_cifar10.sh: ./build/examples/cifar10/convert_cifar_data.bin: not found
create_cifar10.sh文件只在根目录下运行,解决方法如下:

xx@xxxx:~$ cd  caffe
xx@xxxx:~/caffe$ ./examples/cifar10/create_cifar10.sh

猜你喜欢

转载自blog.csdn.net/qq_18644873/article/details/84350074
今日推荐