Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added [rofiling
  • Loading branch information
culurciello committed May 16, 2013
1 parent be11c82 commit 08f0331
Show file tree
Hide file tree
Showing 52 changed files with 7,329 additions and 241 deletions.
Binary file modified .DS_Store
Binary file not shown.
20 changes: 20 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,20 @@

CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
CMAKE_POLICY(VERSION 2.6)
FIND_PACKAGE(Torch REQUIRED)

ADD_TORCH_DOK(dok/supervised tutorials_supervised "Tutorials" "Supervised Learning" 1.0)
ADD_TORCH_DOK(dok/unsupervised tutorials_unsupervised "Tutorials" "Unsupervised Learning" 1.1)
ADD_TORCH_DOK(dok/graphicalmodels tutorials_graphical "Tutorials" "Graphical Models" 1.2)
ADD_TORCH_DOK(dok/gui tutorials_gui "Tutorials" "Graphical User Interfaces" 1.3)

SET(luasrc linear-regression/example-linear-regression.lua
logistic-regression/example-logistic-regression.lua
logistic-regression/example-logistic-regression.csv
train-a-digit-classifier/train-on-mnist.lua
train-a-digit-classifier/dataset-mnist.lua
train-on-cifar/train-on-cifar.lua
train-on-housenumbers/train-on-housenumbers.lua
train-autoencoder/train-autoencoder.lua)

ADD_TORCH_PACKAGE(tutorials "" "${luasrc}" "Tutorials")
37 changes: 37 additions & 0 deletions README.html
@@ -0,0 +1,37 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Torch7 Packages</title>
<style>
body {font-family:helvetica,arial; margin:auto; padding:0; width:600px;}
a {color:#777;text-decoration:none;}
h1 {color:#777;}
h2 {color:#444;}
code {background:#eee;color:#222;}
</style>
</head>
<body>
<h1 id="demos-turorials-for-torch7.">Demos &amp; Turorials for Torch7.</h1>
<p>All the demos/tutorials provided in this repo require Torch7 to be installed, as well as some extra (3rd-party) packages.</p>
<h2 id="install">Install</h2>
<h3 id="torch7">Torch7</h3>
<p>Follow instructions on: <a href="http://www.torch.ch/">Torch7's homepage</a>.</p>
<h3 id="rd-party-packages">3rd-party packages</h3>
<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>
<pre class="sh"><code>$ torch-pkg install image # an image library for Torch7
$ torch-pkg install nnx # lots of extra neural-net modules
$ torch-pkg install camera # a camera interface for Linux/MacOS
$ torch-pkg install ffmpeg # a video decoder for most formats
$ ...</code></pre>
<p>A complete list of packages can be obtained by doing:</p>
<pre class="sh"><code>$ torch-pkg list</code></pre>
<p>or checking out <a href="http://data.neuflow.org/torch">this page</a>.</p>
<h3 id="documentation">Documentation</h3>
<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>
<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>
<pre class="sh"><code>$ torch-pkg deploy</code></pre>
<p>After that, a list of tutorials will be available in the documentation.</p>
<h2 id="tutorials">Tutorials</h2>
<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>
<h2 id="credits">Credits</h2>
<p>These demos were slowly put together by: Clement Farabet &amp; Roy Lowrance.</p>
77 changes: 35 additions & 42 deletions README.md 100755 → 100644
@@ -1,67 +1,60 @@
# Demos & Turorials for Torch7.

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

## Install dependencies on Linux (Ubuntu > 9.04):
## Install

1/ Basic tools
### Torch7

``` sh
$ apt-get install gcc g++ git libreadline-dev cmake wget
```
Follow instructions on: [Torch7's homepage](http://www.torch.ch/).

### 3rd-party packages

2/ QT4 (at least 4.4)
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:

``` sh
$ apt-get install libqt4-core libqt4-gui libqt4-dev
$ torch-pkg install image # an image library for Torch7
$ torch-pkg install nnx # lots of extra neural-net modules
$ torch-pkg install camera # a camera interface for Linux/MacOS
$ torch-pkg install ffmpeg # a video decoder for most formats
$ ...
```

3/ Extras
A complete list of packages can be obtained by doing:

``` sh
$ apt-get install ffmpeg gnuplot
$ torch-pkg list
```

## Install dependencies on Mac OS X > 10.5:

0/ Install the dev tools (gcc/g++ from Apple),
and we highly recommend to get Homebrew
(http://mxcl.github.com/homebrew/) as a replacement
for MacPorts.
or checking out [this page](http://data.neuflow.org/torch).

1/ Basic tools, using Homebrew:
### Documentation

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

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

``` sh
$ brew install qt
$ torch-pkg deploy
```

3/ Extras
After that, a list of tutorials will be available in the documentation.

``` sh
$ brew install ffmpeg gnuplot
```
## Tutorials

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

``` sh
$ git clone git://github.com/andresy/torch.git
$ cd torch
$ mkdir build; cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
$ make install
```
## Credits

``` sh
$ torch-pkg install image # an image library for Torch7
$ torch-pkg install nnx # lots of extra neural-net modules
$ torch-pkg install camera # a camera interface for Linux/MacOS
$ torch-pkg install ffmpeg # a video decoder for most formats
```
These demos were slowly put together by: Clement Farabet & Roy Lowrance.
9 changes: 9 additions & 0 deletions dok/graphicalmodels/index.dok
@@ -0,0 +1,9 @@
====== Graphical models ======
{{anchor:tutorials.graphical}}

In this tutorial, we're going to learn how to define a graphical model,
using the gm package, and do several things withe the model:

* inference
* decoding
* training
5 changes: 5 additions & 0 deletions dok/gui/index.dok
@@ -0,0 +1,5 @@
====== Graphical User Interface ======
{{anchor:tutorials.gui}}

In this tutorial, we're going to learn how to construct GUIs
(Grahical User Interfaces).
Binary file added dok/supervised/convnet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 08f0331

Please sign in to comment.