前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >在Ubuntu 14.04上安装Caffe

在Ubuntu 14.04上安装Caffe

作者头像
bear_fish
发布2018-09-19 16:26:25
1.4K0
发布2018-09-19 16:26:25
举报

http://suanfazu.com/t/ubuntu-14-04-caffe/447/1

安装依赖

sudo apt-get install libatlas-base-dev
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler

安装Caffe

git clone https://github.com/BVLC/caffe.git
cd caffe
cp Makefile.config.example Makefile.config

我是在服务器上,选择只用CPU(不用GPU)计算

vi Makefile.config
# Adjust Makefile.config (for example, if using Anaconda Python)
# uncomment CPU_ONLY := 1

最后编译

make all
make pycaffe

跑一下测试(可选)

make test
make runtest

使用Caffe

跑MNIST试试

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
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2016年07月22日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • http://suanfazu.com/t/ubuntu-14-04-caffe/447/1
  • 安装依赖
  • 安装Caffe
  • 使用Caffe
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档