(1)git clone
(2)
vi Makefile.config
Adjust Makefile.config (for example,if using Anaconda Python)
uncomment cpu_ONLY := 1
(3) make -j4
(4)make pycaffe
(5)make test
(6) make runtest
(7)
cd caffe
sh data/mnist/get_mnist.sh
sh examples/mnist/create_mnist.sh
vi examples/mnist/lenet_solver.prototxt
修改 solver_mode 为 cpu
./examples/mnist/train_lenet.sh
原文链接:https://www.f2er.com/ubuntu/351670.html