(formerly) installed Torch7 and NN and dpnn on Ubuntu

Source: Internet
Author: User
Tags git clone

Reprint please specify the source:

Http://www.cnblogs.com/darkknightzh/p/5653864.html

Reference URL:

Http://torch.ch/docs/getting-started.html

1. Install luarocks First

sudo Install Luarocks

2. installing Torch

(http://torch.ch/docs/getting-started.html)

1) Input in terminal:

git clone https://Install-deps;. /Install. SH

Description: ~/torch should be the current folder of the terminal (the default is /home/xxx/, add ~/torch after it becomes /home/xxx/torch)

2) Add torch to Path

SOURCE ~/.BASHRC

3) If necessary, uninstall torch

RM -RF ~/torch

Description : The torch and Luajit are installed above, if you want to install torch and Lua5.2 instead of Luajit:

git clone https://github.com/torch/distro.git ~/torch--recursivecd ~/torch# clean Old Torch Installation. /clean. SH # Optional Clean command (for-s https://raw.githubusercontent.com/torch/ ezinstall/master/clean-old.sh | Bash# https:///Github.com/torch/distro:set envto use LUA torch_lua_version=lua52 ./Install. SH

5) After installing torch, enter th:

3. Install the Torch Package (packages), such as nn and DPNN

Description: Install the NN first, then install the DPNN

1) Download nn and DPNN:

Https://github.com/torch/nn

Https://github.com/nicholas-leonard/dpnn

2) unzip the two folders.

3) in the terminal CD to these two folders on the first level directory.

4) Install using the luarocks Install command

Install nn-master/rocks/nn-scm-1Install dpnn-master/rocks/dpnn-scm- 1. Rockspec

Note:① official website said that the installation is done directly using the command luarocks install DPNN , but will prompt:

No results matching query were found

②nn and DPNN all have dependent packages that need to be installed first. What is the specific, forget ... But DPNN relies on more than NN.

③ website says you can use luarocks to install packages in the terminal, such as:

Install image

However, if the installation fails, follow the steps in ①-④ 3, download it first, and then install ...

④ See which packages are installed:

Luarocks List

(formerly) installed Torch7 and NN and dpnn on Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.