ubuntu14.04编译caffe

来源:互联网 发布:淘宝联盟里面的优惠券 编辑:程序博客网 时间:2024/05/29 03:07
sudo apt-get install gitsudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compilersudo 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-pydotsudo 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