caffe 安裝方法和記錄

2022-05-03 02:57:10 字數 2340 閱讀 3225

1: 環境配置。i7-6700,顯示卡微星1060-3g,8g記憶體 centos7 虛擬機器。

2: 依賴包:atlas3.10.3.tar.bz2  gflags-master.zip glog-0.3.3.tar.gz hdf5-1.8.18.tar.gz leveldb-master.zip lmdb-mdb.master.zip cmake-3.6.3,其中 atlas 安裝方法為:

mkdir build

cd build

../configure --shared

make

make install

然後修改make.config,  增加內容

nclude_dirs :=/usr/include/opencv2

include_dirs :=/usr/local/atlas/include/

library_dirs :=/usr/local/atlas/lib/

編譯時最好別選擇make -j多執行緒編譯,而是直接make ,不然容易報g++錯誤,可能原因為記憶體不足,最後編譯成功介面如下:

[gzw@localhost caffe-master]$ make

ld -o .build_release/lib/libcaffe.so.1.0.0-rc3

cxx tools/caffe.cpp

cxx/ld -o .build_release/tools/caffe.bin

cxx tools/compute_image_mean.cpp

cxx/ld -o .build_release/tools/compute_image_mean.bin

cxx tools/convert_imageset.cpp

cxx/ld -o .build_release/tools/convert_imageset.bin

cxx tools/device_query.cpp

cxx/ld -o .build_release/tools/device_query.bin

cxx tools/extract_features.cpp

cxx/ld -o .build_release/tools/extract_features.bin

cxx tools/finetune_net.cpp

cxx/ld -o .build_release/tools/finetune_net.bin

cxx tools/net_speed_benchmark.cpp

cxx/ld -o .build_release/tools/net_speed_benchmark.bin

cxx tools/test_net.cpp

cxx/ld -o .build_release/tools/test_net.bin

cxx tools/train_net.cpp

cxx/ld -o .build_release/tools/train_net.bin

cxx tools/upgrade_net_proto_binary.cpp

cxx/ld -o .build_release/tools/upgrade_net_proto_binary.bin

cxx tools/upgrade_net_proto_text.cpp

cxx/ld -o .build_release/tools/upgrade_net_proto_text.bin

cxx tools/upgrade_solver_proto_text.cpp

cxx/ld -o .build_release/tools/upgrade_solver_proto_text.bin

cxx examples/cifar10/convert_cifar_data.cpp

cxx/ld -o .build_release/examples/cifar10/convert_cifar_data.bin

cxx examples/cpp_classification/classification.cpp

cxx/ld -o .build_release/examples/cpp_classification/classification.bin

cxx examples/mnist/convert_mnist_data.cpp

cxx/ld -o .build_release/examples/mnist/convert_mnist_data.bin

cxx examples/siamese/convert_mnist_siamese_data.cpp

cxx/ld -o .build_release/examples/siamese/convert_mnist_siamese_data.bin

caffe安裝記錄

系統 ubuntu16.04 顯示卡 gtx1060 cuda8.0,cudnn8.0 opencv3.1 之前在windows下搭的caffe,linux的有嘗試過,但沒有成功,所以趁這段時間抓緊攻關。經過幾番折騰,終於成功的在ubuntu搭建好caffe,在此記錄一下遇到的坑,以備查閱。先貼下參...

安裝caffe框架記錄

1 安裝虛擬機器及ubuntu ubuntu版本為16.04 2 安裝 sudo apt get install build essential 3 檢視 gcc version 此處版本為 ubuntu 5.3.1 14ubuntu2 5.3.1 4 安裝 sudo apt get install...

Caffe編譯安裝全記錄

caffe是乙個卷積神經網路深度學習框架。編譯安裝的作業系統為centos7.0。yum install cmake yum install glibc devel yum install gcc gfortran mv makefile.in makefile.in.bak cp makefile...