CAFFE实验学习笔记(1)——SSD(Single Shot MultiBox Detector)

1 ‘struct cudaDeviceProp’ has no member named ‘isMultiGpuBoard’
         if (a.isMultiGpuBoard && b.isMultiGpuBoard) {

 can not find

solution :modify the makefile CUDAPATH ,USECUDNN


2  sudo apt-get install -y libopencv 

opencv  package install all 


3   error while loading shared libraries: libcudart.so.7.5: cannot open shared object file: No such file or directory
solution:
缺少动态连接库.so--cannot open shared object file: No such file or directory
export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATH
eg:
export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64

export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:$LD_LIBRARY_PATH(LD_LIBRARY_PATH = null)

sudo ldconfig

4  cp: cannot stat ‘/home/ruyunli/data/VOCdevkit//VOC2007/ImageSets/Main/trainval.txt’: No such file or directory
solution:
http://www.cnblogs.com/smartvessel/archive/2011/01/21/1940868.html
the $HOMEPATH is wrong

5  File "/home/ruyunli/caffe/caffe/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module>
    from caffe.proto import caffe_pb2
ImportError: No module named caffe.proto
solution:
This happens when you have not run make for the python files separately.
Run make pycaffe soon after running make in the Caffe directory.
You may have to set the path to the python library correctly in Makefile.config

ruyunli@ruyunli-All-Series:~/caffe$ make -j12 pycaffe 
touch python/caffe/proto/__init__.py
CXX/LD -o python/caffe/_caffe.so python/caffe/_caffe.cpp
PROTOC (python) src/caffe/proto/caffe.proto

8 ImportError: No module named google.protobuf.internal

solution:

pip 路径错误

安装了多个版本的pip

9 df -hl

硬盘内存分配

10 vim ~/env/set_env.sh 

查看环境变量

11 git clone https://github.com/weiliu89/caffe.git

12 make  -j 

在多CPU上编译Linux内核时可以用 make -jn 多个任务并行编译加快速度。印象中在某个文档看到过 n 选择为 ncpu + 1,但不清楚理论依据何在。

13  htop

输入命令cat /proc/cpuinfo 查看physical id有几个,上述结果显示只有0,所以只有一个物理cpu;查看processor有几个,上述结果显示有0和1两个,所以有两个逻辑cpu。

14 在指定目录下查找文件
 find . -name '*multibox*'

15 ICU

/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `u_digit_48'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `icu_48::Locale::Locale(icu_48::Locale const&)'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `u_tolower_48'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `icu_48::Locale::Locale()'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `u_isblank_48'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `u_charFromName_48'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `u_isspace_48'



  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值