2015年CVPR上的一篇文章,具体内容还没有细看,等细看了感觉有需要的话再另外做paper的笔记。 毕竟刚配好了caffe, 决定先把代码扒下来运行运行。 文献应该很容易搜到,各大高校的数据库应该都有的,万一实在要是没有,私我我给你发过去(代码下载的地址: https://github.com/kevinlin311tw/caffe-cvprw15)。
首先就碰到了一个大坑...
./include/caffe/util/device_alternate.hpp:34:23: fatal error: cublas_v2.h: No such file or directory compilation terminated.
本人自己智障,在装搜狗的时候写了一句sudo apt atuoremove
结果把下图里的安装都卸掉了,还好我当时随手截了个图,还知道要装回去哪些。装回去就好了,但是不知道会不会漏掉了什么或者有后遗症,太脑残了我。就是看到一个安装的教程,说是fcitx跟搜狗有冲突,要先卸载。我就按照他的教程输了上面那个鬼东西...也怪我自己没看仔细就输入了y,太坑了。他的ref我就不给了。装搜狗可容易了,正确的ref在这里: http://www.linuxdiyf.com/linux/20275.html
接着cd到下载下来的包下面,想make clean。 报错:anaconda2/lib/libreadline.so.6: undefined symbol: PC
解决方法(ref:https://github.com/ContinuumIO/anaconda-issues/issues/42)
aem@aem:~$ cd ~/anaconda2/lib
aem@aem:~/anaconda2/lib$ sudo rm libreadline.a libreadline.so.6.2 libreadline.so.6 libreadline.so
aem@aem:~/anaconda2/lib$ pip install readline
报错
creating build/lib.linux-x86_64-2.7
gcc -pthread -shared -L/home/aem/anaconda2/lib -Wl,-rpath=/home/aem/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/Modules/2.x/readline.o readline/libreadline.a readline/libhistory.a -L/home/aem/anaconda2/lib -lncurses -lpython2.7 -o build/lib.linux-x86_64-2.7/readline.so
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for readline
Running setup.py clean for readline
Failed to build readline
Installing collected packages: readline
Running setup.py install for readline ... error
Complete output from command /home/aem/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-dpeWpY/readline/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-vdw_3m-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'readline' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/Modules
creating build/temp.linux-x86_64-2.7/Modules/2.x
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -W