关闭

ubuntu14.04编译caffe

标签: caffe
159人阅读 评论(1) 收藏 举报
分类:
sudo apt-get install git
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev 
sudo apt-get install libatlas-base-dev 
sudo apt-get install python-dev 
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev 

sudo apt-get install python-numpy python-scipy python-matplotlib python-sklearn python-skimage python-h5py python-protobuf python-leveldb python-networkx python-nose python-pandas python-gflags Cython ipython python-pydot
sudo apt-get install protobuf-c-compiler protobuf-compiler  

git clone https://github.com/bvlc/caffe.git 
cd cdffe/
copy Makefile.config.example Makefile.config 
make all -j7 
make py 
make test -j7

$ sudo gedit /etc/profile
# 添加: export PYTHONPATH=/path/to/caffe/python:$PYTHONPATH
$ source /etc/profile # 使之生效 (最好restart)  

#可视化工具
#sudo apt-get install python-pydot (前面已安装)
python draw_net.py ../models/bvlc_reference_caffenet/train_val.prototxt vis.png
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:2918次
    • 积分:129
    • 等级:
    • 排名:千里之外
    • 原创:9篇
    • 转载:11篇
    • 译文:0篇
    • 评论:21条
    文章分类
    最新评论