当前位置: 首页 > 工具软件 > Torch7 > 使用案例 >

Deep Learning 工具 Torch7安装与使用

龚迪
2023-12-01
源代码:  https://github.com/torch
官方文档:  http://torch.ch/
Torch7:https://github.com/torch/torch7/wiki/Cheatsheet

安装过程:
1. node.js install, then gfx install, 要按照顺序
2. torch install
curl -sk https://raw.github.com/torch/ezinstall/master/install-deps | bash
curl -sk https://raw.github.com/torch/ezinstall/master/install-luajit+torch | bash
错误: Cannot find module 'express', 答案:npm install express
3. Lua IDE 调试环境
https://studio.zerobrane.com/doc-getting-started.html
4. 跑一遍监督学习的代码: 
  
  
  
  
注意代码使用sgd,跑tutorial中的数据大概在4-5轮结果就比较好,在92%左右,代码默认是一直跑。
代码中的一些api:
Tensor说明:https://github.com/torch/torch7/blob/master/doc/tensor.md
5. 如何读取图片,转换成Tensor:
https://github.com/clementfarabet/graphicsmagick
下一步打算使用这个包,进行图片读取和封装。
 类似资料: