Skip to content

Commit 08f0331

Browse files
committed
added [rofiling
1 parent be11c82 commit 08f0331

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+7329
-241
lines changed

.DS_Store

0 Bytes
Binary file not shown.

CMakeLists.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
3+
CMAKE_POLICY(VERSION 2.6)
4+
FIND_PACKAGE(Torch REQUIRED)
5+
6+
ADD_TORCH_DOK(dok/supervised tutorials_supervised "Tutorials" "Supervised Learning" 1.0)
7+
ADD_TORCH_DOK(dok/unsupervised tutorials_unsupervised "Tutorials" "Unsupervised Learning" 1.1)
8+
ADD_TORCH_DOK(dok/graphicalmodels tutorials_graphical "Tutorials" "Graphical Models" 1.2)
9+
ADD_TORCH_DOK(dok/gui tutorials_gui "Tutorials" "Graphical User Interfaces" 1.3)
10+
11+
SET(luasrc linear-regression/example-linear-regression.lua
12+
logistic-regression/example-logistic-regression.lua
13+
logistic-regression/example-logistic-regression.csv
14+
train-a-digit-classifier/train-on-mnist.lua
15+
train-a-digit-classifier/dataset-mnist.lua
16+
train-on-cifar/train-on-cifar.lua
17+
train-on-housenumbers/train-on-housenumbers.lua
18+
train-autoencoder/train-autoencoder.lua)
19+
20+
ADD_TORCH_PACKAGE(tutorials "" "${luasrc}" "Tutorials")

README.html

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2+
<html>
3+
<head>
4+
<title>Torch7 Packages</title>
5+
<style>
6+
body {font-family:helvetica,arial; margin:auto; padding:0; width:600px;}
7+
a {color:#777;text-decoration:none;}
8+
h1 {color:#777;}
9+
h2 {color:#444;}
10+
code {background:#eee;color:#222;}
11+
</style>
12+
</head>
13+
<body>
14+
<h1 id="demos-turorials-for-torch7.">Demos &amp; Turorials for Torch7.</h1>
15+
<p>All the demos/tutorials provided in this repo require Torch7 to be installed, as well as some extra (3rd-party) packages.</p>
16+
<h2 id="install">Install</h2>
17+
<h3 id="torch7">Torch7</h3>
18+
<p>Follow instructions on: <a href="http://www.torch.ch/">Torch7's homepage</a>.</p>
19+
<h3 id="rd-party-packages">3rd-party packages</h3>
20+
<p>Different demos/tutorials rely on different 3rd-party packages. If a demo crashes because it can't find a package then simply try to install it using torch-pkg:</p>
21+
<pre class="sh"><code>$ torch-pkg install image # an image library for Torch7
22+
$ torch-pkg install nnx # lots of extra neural-net modules
23+
$ torch-pkg install camera # a camera interface for Linux/MacOS
24+
$ torch-pkg install ffmpeg # a video decoder for most formats
25+
$ ...</code></pre>
26+
<p>A complete list of packages can be obtained by doing:</p>
27+
<pre class="sh"><code>$ torch-pkg list</code></pre>
28+
<p>or checking out <a href="http://data.neuflow.org/torch">this page</a>.</p>
29+
<h3 id="documentation">Documentation</h3>
30+
<p>Torch's main documentation gets installed when you install Torch, and should be available <a href="file:///usr/local/share/torch/html/index.html">here</a>, or wherever you installed Torch.</p>
31+
<p>This repo also comes with documentation, in the form of tutorials. To make them available, simply issue the following command in this directory:</p>
32+
<pre class="sh"><code>$ torch-pkg deploy</code></pre>
33+
<p>After that, a list of tutorials will be available in the documentation.</p>
34+
<h2 id="tutorials">Tutorials</h2>
35+
<p>Each directory provides a tutorial or a demo, with no particular order. It's a good idea to have the local <a href="file:///usr/local/share/torch/html/index.html">Torch documentation</a> open on the side, for reference. As Torch is based on the Lua language, it's also a good idea to go through the <a href="http://www.lua.org/manual/5.1/">Lua 5.1</a> book.</p>
36+
<h2 id="credits">Credits</h2>
37+
<p>These demos were slowly put together by: Clement Farabet &amp; Roy Lowrance.</p>

README.md

100755100644
+35-42
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,60 @@
11
# Demos & Turorials for Torch7.
22

3-
All the demos/tutorials provided in this package
4-
require the following dependencies to be installed, in
5-
order to work.
3+
All the demos/tutorials provided in this repo require Torch7 to be installed,
4+
as well as some extra (3rd-party) packages.
65

7-
## Install dependencies on Linux (Ubuntu > 9.04):
6+
## Install
87

9-
1/ Basic tools
8+
### Torch7
109

11-
``` sh
12-
$ apt-get install gcc g++ git libreadline-dev cmake wget
13-
```
10+
Follow instructions on: [Torch7's homepage](http://www.torch.ch/).
11+
12+
### 3rd-party packages
1413

15-
2/ QT4 (at least 4.4)
14+
Different demos/tutorials rely on different 3rd-party packages. If a demo
15+
crashes because it can't find a package then simply try to install it using
16+
torch-pkg:
1617

1718
``` sh
18-
$ apt-get install libqt4-core libqt4-gui libqt4-dev
19+
$ torch-pkg install image # an image library for Torch7
20+
$ torch-pkg install nnx # lots of extra neural-net modules
21+
$ torch-pkg install camera # a camera interface for Linux/MacOS
22+
$ torch-pkg install ffmpeg # a video decoder for most formats
23+
$ ...
1924
```
2025

21-
3/ Extras
26+
A complete list of packages can be obtained by doing:
2227

2328
``` sh
24-
$ apt-get install ffmpeg gnuplot
29+
$ torch-pkg list
2530
```
2631

27-
## Install dependencies on Mac OS X > 10.5:
28-
29-
0/ Install the dev tools (gcc/g++ from Apple),
30-
and we highly recommend to get Homebrew
31-
(http://mxcl.github.com/homebrew/) as a replacement
32-
for MacPorts.
32+
or checking out [this page](http://data.neuflow.org/torch).
3333

34-
1/ Basic tools, using Homebrew:
34+
### Documentation
3535

36-
``` sh
37-
$ brew install git readline cmake wget
38-
```
36+
Torch's main documentation gets installed when you install Torch, and should
37+
be available [here](file:///usr/local/share/torch/html/index.html), or wherever
38+
you installed Torch.
3939

40-
2/ Install QT4 (at least 4.4)
40+
This repo also comes with documentation, in the form of tutorials. To make
41+
them available, simply issue the following command in this directory:
4142

4243
``` sh
43-
$ brew install qt
44+
$ torch-pkg deploy
4445
```
4546

46-
3/ Extras
47+
After that, a list of tutorials will be available in the documentation.
4748

48-
``` sh
49-
$ brew install ffmpeg gnuplot
50-
```
49+
## Tutorials
5150

52-
## Install Torch7 (full instructions on torch.ch) and extra packages
51+
Each directory provides a tutorial or a demo, with no particular order.
52+
It's a good idea to have the local
53+
[Torch documentation](file:///usr/local/share/torch/html/index.html) open
54+
on the side, for reference. As Torch is based on the Lua language,
55+
it's also a good idea to go through the [Lua 5.1](http://www.lua.org/manual/5.1/)
56+
book.
5357

54-
``` sh
55-
$ git clone git://github.com/andresy/torch.git
56-
$ cd torch
57-
$ mkdir build; cd build
58-
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
59-
$ make install
60-
```
58+
## Credits
6159

62-
``` sh
63-
$ torch-pkg install image # an image library for Torch7
64-
$ torch-pkg install nnx # lots of extra neural-net modules
65-
$ torch-pkg install camera # a camera interface for Linux/MacOS
66-
$ torch-pkg install ffmpeg # a video decoder for most formats
67-
```
60+
These demos were slowly put together by: Clement Farabet & Roy Lowrance.

dok/graphicalmodels/index.dok

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
====== Graphical models ======
2+
{{anchor:tutorials.graphical}}
3+
4+
In this tutorial, we're going to learn how to define a graphical model,
5+
using the gm package, and do several things withe the model:
6+
7+
* inference
8+
* decoding
9+
* training

dok/gui/index.dok

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
====== Graphical User Interface ======
2+
{{anchor:tutorials.gui}}
3+
4+
In this tutorial, we're going to learn how to construct GUIs
5+
(Grahical User Interfaces).

dok/supervised/convnet.png

69.9 KB
Loading

0 commit comments

Comments
 (0)