在已安装了caffe的linux服务器上运行neural style transfer

问题1:在python中提示Import Error: no module named _caffe

解决方案:切换到caffe的要目录执行make pycaffe

问题2:在安装过程中提示Import Error: no module named skimage.io

解决方案:对于不支持外网的机器来说必须源码安装,则该解决方案依赖问题3和问题4

问题3:安装skimage.io过程中提示没有Cython

解决方案:https://pypi.python.org/pypi/Cython/

下载Cython进行源码安装

问题4:安装skimage.io过程中提示没有scipy库

解决方案:在github下载scipy源码安装,安装过程中会提示“no lapack/blas resources found”

解决方案:

安装OpenBLAS和lapack

都是源码安装

Lapack:a library of Fortran subroutines for solving the most commonly occurring problems in numerical linear algebra

(作为Fortran的subroutine用于解决一些常用矩阵运算的问题)

安装lapack的时候需要根据make.inc.example重新配置cblas和refblas库的路径。

问题5:安装lapack库的过程中执行官方test的时候会core,如何解决?

解决方案:

https://github.com/Reference-LAPACK/lapack/issues/85

去掉-frecursive的编译选项

问题6:已经安装了lapack和atlas之后依然报错找不到

解决方案:去系统路径下为库加一个不带版本号的软链接

问题6:安装scipy过程中报错”缺少f2py“

解决方案:安装numpy,f2py是numpy的一部分

posted @ 2017-11-07 17:29  层序圆儿  阅读(353)  评论(0编辑  收藏  举报