torch入门笔记1:torch的使用
来源:互联网 发布:lnmp 查看php日志 编辑:程序博客网 时间:2024/05/23 01:19
torch下的安装和使用:
1.torch7的github https://github.com/torch/torch7 下安装。
2.使用
luarocks install image 来安装package
已经安装的可以使用 luarock list 来查看
3.itorch的使用
https://github.com/facebook/iTorch
itorch是torch里面的一个包,它能很轻松地显示图片、视频和音频等等。
需要先安装ipython,然后你会发现还是无法用,比如th之后的命令行。
sudo apt-get install ipython-notebook
iTorch requires or works with
- Mac OS X or Linux (tested in Ubuntu 14.04 and Arch Linux)
- Torch-7
- IPython version 2.2 or above (you can check your version of ipython using ipython --version)
- ZeroMQ
# OSXbrew install zeromqbrew install opensslluarocks install luacrypto OPENSSL_DIR=/usr/local/opt/openssl/# Ubuntusudo apt-get install libzmq3-dev libssl-dev python-zmq# Ubuntu 16luarocks install lzmq
Installing iTorch
git clone https://github.com/facebook/iTorch.gitcd iTorchluarocks make
If you have to use sudo for some reason (if you globally installed torch on Linux for example), use these commands:
sudo env "PATH=$PATH" luarocks makesudo chown -R $USER $(dirname $(ipython locate profile))
然后在命令行中输入
itorch notebook # notebook modeOR itorch # console modeOR itorch qtconsole # Qt mode
跟ipython一样debug。
4.Torch reference link manuals and pages:
1) https://github.com/torch/tutorials
2) http://torch7.readthedocs.io/en/latest/index.html
2) https://github.com/soumith/cvpr2015/blob/master/Deep%20Learning%20with%20Torch.ipynb
0 0
- torch入门笔记1:torch的使用
- torch入门笔记7:Torch的入门使用
- torch入门笔记19:关于一些torch博客的索引
- torch入门笔记20:torch实现freeze layer的操作
- torch入门笔记12:数据的预处理
- torch入门笔记8:tensor
- torch入门笔记9:function
- torch入门
- 深度学习笔记1torch的安装
- torch入门笔记14:Torch中optim的sgd(Stochastic gradient descent)方法的实现细节
- torch入门笔记18: Torch 中的引用、深拷贝 以及 getParameters 获取参数的探讨
- torch入门笔记3:用torch实现多层感知器
- torch入门笔记2:用torch实现线性回归
- torch入门笔记10:如何建立torch神经网络模型
- torch
- Torch
- Torch
- Torch
- 用可变参数宏(variadic macros)传递可变参数表
- The Reactive Extensions for JavaScript (RxJS)
- Windows IPC 进程间通信之共享内存
- error C2440: “类型转换” : 无法从“overloaded-function”转换为
- 猴子选大王
- torch入门笔记1:torch的使用
- dll 使用小结
- GUID制作
- 改变字符串中指定字符的颜色
- Windows服务处于已停止
- 示例八和示例九
- Windows SetEvent OpenEvent返回183
- Jetty的安装和配置
- WINDOWS HANDLE null INVALID_HANDLE_VALUE