Ubuntu14.04 + cuda8.0 + cudnn7
1.参考 https://blog.youkuaiyun.com/Hungryof/article/details/51557666?locationNum=13&fps=1 (安装torch7以及其支持的cudnn和cuda)
2.安装cudnn时
git clone https://github.com/soumith/cudnn.torch -b R7 (7代表cudnn版本为7,cudnn版本为6时同理,而cudnn版本为5时,直接luarocks install cudnn即可)
cd cudnn.torch
luarocks make
3.安装matio,参考 https://blog.youkuaiyun.com/u014525760/article/details/79640260(网盘:https://pan.baidu.com/s/1sCfVmiz_v3YrFqkxP7XgpA)
我在"src", "tools" , "test" 和“getopt”文件夹里的Mkefile中将SHELL变量定义处的/bin/sh,改为/bin/bash
另外,参考https://github.com/1adrianb/face-alignment-training 来安装训练必要的包:
cutorch
nn
nngraph
cudnn
xlua
image
paths
matio