安装步骤
1从git上获取相关文件
cuda10以下选择
git clone https://github.com/torch/distro.git ~/torch --recursive
1
cuda10以上选择
git clone https://github.com/nagadomi/distro ~/torch --recursive
1
||如果出错
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
1
2
可以输入
git config --global http.postBuffer 2000000000
1
删除刚刚克隆的torch文件夹,重新克隆。
如果问题还没解决,建议删除torch文件夹,多试几次。
2进入torch安装相关依赖
cd torch
bash install-deps
1
2
3install
./install.sh
1
出现选择(yes/no)
输入yes
4添加环境变量
source ~/.bashrc
1
||如果出现找不到source的提示,将语句换成sudo -s source ~/.bashrc
5测试
输入th
样例图
大功告

最低0.47元/天 解锁文章
5286

被折叠的 条评论
为什么被折叠?



