ubuntu系统下import caffe必须在caffe-master目录下吗
1个回答
展开全部
Caffe需要预先安装些依赖项首先CUDA驱论CentOSUbuntu都预装源nouveau显卡驱(SUSE没种问题)禁用则CUDA驱能确安装Ubuntu例介绍处理其处理
# sudo vi/etc/modprobe.d/blacklist.conf# 增加行 :blacklist nouveausudoapt-get --purge remove xserver-xorg-video-nouveau #官驱彻底卸载:sudoapt-get --purge remove nvidia-* #清除前安装任何NVIDIA驱sudo service lightdm stop #进命令行关闭Xserversudo kill all Xorg并安装 NVIDIA CUDA驱包接着安装安装BLAS、OpenCV、Boost三库BLAS数库ATLAS, MKL, 或 OpenBLASOpenCV要求2.4版本Boost要求1.55版本选安装Python MATLAB Caffe 库 numpy pandas 类Python类库安装MATLAB确保mex path路径些够折腾星期完事编译安装:
cp Makefile.config.example Makefile.config# Adjust Makefile.config (for example, if using Anaconda Python, or if cuDNN is desired)make allmake testmake runtest 哦Caffe 显卡要求:Titan Xs, K80s, GTX 980s, K40s, K20s, Titans, and GTX 770s
# sudo vi/etc/modprobe.d/blacklist.conf# 增加行 :blacklist nouveausudoapt-get --purge remove xserver-xorg-video-nouveau #官驱彻底卸载:sudoapt-get --purge remove nvidia-* #清除前安装任何NVIDIA驱sudo service lightdm stop #进命令行关闭Xserversudo kill all Xorg并安装 NVIDIA CUDA驱包接着安装安装BLAS、OpenCV、Boost三库BLAS数库ATLAS, MKL, 或 OpenBLASOpenCV要求2.4版本Boost要求1.55版本选安装Python MATLAB Caffe 库 numpy pandas 类Python类库安装MATLAB确保mex path路径些够折腾星期完事编译安装:
cp Makefile.config.example Makefile.config# Adjust Makefile.config (for example, if using Anaconda Python, or if cuDNN is desired)make allmake testmake runtest 哦Caffe 显卡要求:Titan Xs, K80s, GTX 980s, K40s, K20s, Titans, and GTX 770s
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询