Skip to content

Commit

Permalink
[docs] moved example md’s to examples/**/md’s and added script to gather
Browse files Browse the repository at this point in the history
them for publication
  • Loading branch information
sergeyk committed Jul 11, 2014
1 parent 583b84e commit 0de282c
Show file tree
Hide file tree
Showing 17 changed files with 398 additions and 322 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ examples/*

# Generated documentation
docs/_site
docs/gathered
_site

# Sublime Text settings
Expand Down
6 changes: 4 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
To generate stuff you can paste in an .md page from an IPython notebook, run
# Caffe Documentation

ipython nbconvert --to markdown <notebook_file>
To generate the documentation, run `$CAFFE_ROOT/scripts/build_docs.sh`.

To push your changes to the documentation to the gh-pages branch of your or the BVLC repo, run `$CAFFE_ROOT/scripts/deploy_docs.sh <repo_name>`.
55 changes: 31 additions & 24 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Caffe is released under the [BSD 2-Clause license](https://github.com/BVLC/caffe

Check out our web image classification [demo](http://demo.caffe.berkeleyvision.org)!

## Why
## Why use Caffe?

**Clean architecture** enables rapid deployment.
Networks are specified in simple config files, with no hard-coded parameters in the code.
Switching between CPU and GPU code is as simple as setting a flag -- so models can be trained on a GPU machine, and then used on commodity clusters.
Switching between CPU and GPU is as simple as setting a flag -- so models can be trained on a GPU machine, and then used on commodity clusters.

**Readable & modifiable implementation** fosters active development.
In Caffe's first six months, it has been forked by over 300 developers on Github, and many have contributed significant changes.
In Caffe's first six months, it has been forked by over 300 developers on Github, and many have pushed significant changes.

**Speed** makes Caffe perfect for industry use.
Caffe can process over **40M images per day** with a single NVIDIA K40 or Titan GPU\*.
Expand All @@ -31,27 +31,34 @@ There is an active discussion and support community on [Github](https://github.c
Consult performance [details](/performance_hardware.html).
</p>

## How

* [Introductory slides](http://dl.caffe.berkeleyvision.org/caffe-presentation.pdf): slides about the Caffe architecture, *updated 03/14*.
* [ACM MM paper](http://ucb-icsi-vision-group.github.io/caffe-paper/caffe.pdf): a 4-page report for the ACM Multimedia Open Source competition.
* [Installation instructions](/installation.html): tested on Ubuntu, Red Hat, OS X.
* [Pre-trained models](/getting_pretrained_models.html): BVLC provides ready-to-use models for non-commercial use.
* [Development](/development.html): Guidelines for development and contributing to Caffe.

### Tutorials and Examples

* [Image Classification \[notebook\]][imagenet_classification]: classify images with the pretrained ImageNet model by the Python interface.
* [Detection \[notebook\]][detection]: run a pretrained model as a detector in Python.
* [Visualizing Features and Filters \[notebook\]][visualizing_filters]: extracting features and visualizing trained filters with an example image, viewed layer-by-layer.
* [LeNet / MNIST Demo](/mnist.html): end-to-end training and testing of LeNet on MNIST.
* [CIFAR-10 Demo](/cifar10.html): training and testing on the CIFAR-10 data.
* [Training ImageNet](/imagenet_training.html): recipe for end-to-end training of an ImageNet classifier.
* [Feature extraction with C++](/feature_extraction.html): feature extraction using pre-trained model.

[imagenet_classification]: http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/imagenet_classification.ipynb
[detection]: http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/detection.ipynb
[visualizing_filters]: http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/filter_visualization.ipynb
## Documentation

- [Introductory slides](http://dl.caffe.berkeleyvision.org/caffe-presentation.pdf)<br />
Slides about the Caffe architecture, *updated 03/14*.
- [ACM MM paper](http://ucb-icsi-vision-group.github.io/caffe-paper/caffe.pdf)<br />
A 4-page report for the ACM Multimedia Open Source competition.
- [Installation instructions](/installation.html)<br />
Tested on Ubuntu, Red Hat, OS X.
* [Pre-trained models](/getting_pretrained_models.html)<br />
BVLC provides ready-to-use models for non-commercial use.
* [Development](/development.html)<br />
Guidelines for development and contributing to Caffe.

### Examples

{% for page in site.pages %}
{% if page.category == 'example' %}
- <div><a href="{{page.url}}">{{page.title}}</a><br />{{page.description}}</div>
{% endif %}
{% endfor %}

### Notebook examples

{% for page in site.pages %}
{% if page.category == 'notebook' %}
- <div><a href="http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/{{page.original_path}}">{{page.title}}</a><br />{{page.description}}</div>
{% endif %}
{% endfor %}

## Citing Caffe

Expand Down
91 changes: 0 additions & 91 deletions docs/mnist.md

This file was deleted.

153 changes: 0 additions & 153 deletions docs/mnist_prototxt.md

This file was deleted.

37 changes: 0 additions & 37 deletions docs/mnist_solver_prototxt.md

This file was deleted.

5 changes: 4 additions & 1 deletion docs/cifar10.md → examples/cifar10/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
title: CIFAR-10 tutorial
category: example
description: Train and test Caffe on CIFAR-10 data.
include_in_docs: true
layout: default
title: Caffe
---

Alex's CIFAR-10 tutorial, Caffe style
Expand Down
Loading

0 comments on commit 0de282c

Please sign in to comment.