protobuf 版本问题
错误信息
.build_release/lib/libcaffe.so: undefined reference to `google::protobuf::Message::InitializationErrorString() const’
解决方案
- 卸载原有protobuf
1 | sudo apt-get autoremove libprotobuf-dev protobuf-compiler |
2.1 手工编译protobuf 2.5版本
1 | wget http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz |
2.2 使用protobuf 3.2版本
1 | INCLUDE_DIRS := /usr/local/protobuf-3.2/include |
卸载opencv
1 | sudo make uninstall |
查看opencv 版本
1 | pkg-config --modversion opencv |
安装cuda .61
1 | https://developer.nvidia.com/cuda-downloads |
cv::imread
###
1 | LIBRARIES += glog gflags protobuf leveldb snappy \ |
cuda相关问题
错误信息
1 | ./include/caffe/util/cudnn.hpp: In function ‘void caffe::cudnn::createPoolingDesc(cudnnPoolingStruct**, caffe::PoolingParameter_PoolMethod, cudnnPoolingMode_t*, int, int, int, int, int, int)’: |
解决方案
在Makefile.config 中指定cuda 位置
1 | CUDA_DIR := /usr/local/cuda-8.0.61 |
安装cudnn
1 | #解压文件 |
faster rcnn 安装
1 | git clone --recursive https://github.com/rbgirshick/py-faster-rcnn.git |
编译缺 hdf5
1 | sudo apt-get install libhdf5-serial-dev |
问题.build_release/lib/libcaffe.so: undefined reference to `cv::imread(cv::String const&, int)’
I think you may be using OpenCV 3. You need to set the OPENCV_VERSION variable in Makefile.config.
👍 18 🎉 5
CMakeList.txt 配置
1 | SET(CMAKE_BUILD_TYPE "Debug") |
python 切换版本
1 | $ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2 # 添加Python2可选项,优先级为2 |
vimrc
1 | syntax enable |
cuda .61安装
https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run
查看ip地址
1 | ifconfig $1|sed -n 2p|awk '{ print $2 }'|awk -F : '{ print $2 }' |
scp 用法
1 | 1、复制远程服务器的文件到本地: |