torch也是DL的一个框架,lua语言,虽然不如caffe普及程度高,但是用的人也是不少的。
参考及官方文件
官方文档:
http://torch.ch/
Torch7:https://github.com/torch/torch7/wiki/Cheatsheet
第一步,下载torch文件,注意路径是在home下。
<span style="font-size:14px;"># in a terminal, run the commands
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; ./install.sh</span>
第一行指令安装 LuaJIT and Torch需要的基本依赖项,第二行指令安装LuaJIT and Torch和其他一些包。
第二步,设置路径变量
# On Linux
source ~/.bashrc
# On OSX
source ~/.profi
第三步,通过 Luarocks安装一些新的包
$ luarocks install image
$ luarocks list
在命令行运行“th”,如果显示如下,表示torch成功安装
退出指令:exit或者为Ctrl+C。
安装过程比较简单,如果出现问题,先删除以前的安装,然后换个软件源,重新安装,应该就ok了。
删除旧版本:
curl -s https://raw.github.com/torch/ezinstall/master/clean-old.sh | bash
本文参考链接:
torch安装教程