torch7安装方法

torch也是DL的一个框架,lua语言,虽然不如caffe普及程度高,但是用的人也是不少的。

参考及官方文件

源代码: https://github.com/torch

官方文档:  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安装教程

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值