DeepLab V2下载website:
https://bitbucket.org/aquariusjay/deeplab-public-ver2
在页面左上角clone即可
然后再依次执行下列命令:
cp Makefile.config.example Makefile.config
# Adjust Makefile.config (for example, if using Anaconda Python, or if cuDNN is desired)
make all
make pycaffe
make test # NOT mandatory
make runtest # NOT mandatory
注:在make all的时候,会报错:
bug1:matio.h no such file or directory
解决方法:执行下列命令即可:
sudo apt-get install libmatio-dev
参考网址:https://bugs.launchpad.net/ubuntu/+source/dynare/+bug/1537380
bug2:caffe/common.cu error: function atomicadd has already been defined
解决方法:https://github.com/vlfeat/matconvnet/issues/575
即找到/include/caffe目录下的common.cuh文件,在atomicAdd 函数的上下方添加以下code:
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 600
#else
<... place here your own pre-pascal atomicAdd definition ...>注:这里即common.cuh中atomicAdd函数的定义
#endif
For this error
ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory
I have executed this command to solve it
sudo ldconfig /usr/local/cuda/lib64