Skip to content

Commit 0de282c

Browse files
committed
[docs] moved example md’s to examples/**/md’s and added script to gather
them for publication
1 parent 583b84e commit 0de282c

17 files changed

Lines changed: 398 additions & 322 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ examples/*
5353

5454
# Generated documentation
5555
docs/_site
56+
docs/gathered
5657
_site
5758

5859
# Sublime Text settings

docs/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
To generate stuff you can paste in an .md page from an IPython notebook, run
1+
# Caffe Documentation
22

3-
ipython nbconvert --to markdown <notebook_file>
3+
To generate the documentation, run `$CAFFE_ROOT/scripts/build_docs.sh`.
4+
5+
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>`.

docs/index.md

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Caffe is released under the [BSD 2-Clause license](https://github.com/BVLC/caffe
99

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

12-
## Why
12+
## Why use Caffe?
1313

1414
**Clean architecture** enables rapid deployment.
1515
Networks are specified in simple config files, with no hard-coded parameters in the code.
16-
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.
16+
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.
1717

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

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

34-
## How
35-
36-
* [Introductory slides](http://dl.caffe.berkeleyvision.org/caffe-presentation.pdf): slides about the Caffe architecture, *updated 03/14*.
37-
* [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.
38-
* [Installation instructions](/installation.html): tested on Ubuntu, Red Hat, OS X.
39-
* [Pre-trained models](/getting_pretrained_models.html): BVLC provides ready-to-use models for non-commercial use.
40-
* [Development](/development.html): Guidelines for development and contributing to Caffe.
41-
42-
### Tutorials and Examples
43-
44-
* [Image Classification \[notebook\]][imagenet_classification]: classify images with the pretrained ImageNet model by the Python interface.
45-
* [Detection \[notebook\]][detection]: run a pretrained model as a detector in Python.
46-
* [Visualizing Features and Filters \[notebook\]][visualizing_filters]: extracting features and visualizing trained filters with an example image, viewed layer-by-layer.
47-
* [LeNet / MNIST Demo](/mnist.html): end-to-end training and testing of LeNet on MNIST.
48-
* [CIFAR-10 Demo](/cifar10.html): training and testing on the CIFAR-10 data.
49-
* [Training ImageNet](/imagenet_training.html): recipe for end-to-end training of an ImageNet classifier.
50-
* [Feature extraction with C++](/feature_extraction.html): feature extraction using pre-trained model.
51-
52-
[imagenet_classification]: http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/imagenet_classification.ipynb
53-
[detection]: http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/detection.ipynb
54-
[visualizing_filters]: http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/filter_visualization.ipynb
34+
## Documentation
35+
36+
- [Introductory slides](http://dl.caffe.berkeleyvision.org/caffe-presentation.pdf)<br />
37+
Slides about the Caffe architecture, *updated 03/14*.
38+
- [ACM MM paper](http://ucb-icsi-vision-group.github.io/caffe-paper/caffe.pdf)<br />
39+
A 4-page report for the ACM Multimedia Open Source competition.
40+
- [Installation instructions](/installation.html)<br />
41+
Tested on Ubuntu, Red Hat, OS X.
42+
* [Pre-trained models](/getting_pretrained_models.html)<br />
43+
BVLC provides ready-to-use models for non-commercial use.
44+
* [Development](/development.html)<br />
45+
Guidelines for development and contributing to Caffe.
46+
47+
### Examples
48+
49+
{% for page in site.pages %}
50+
{% if page.category == 'example' %}
51+
- <div><a href="{{page.url}}">{{page.title}}</a><br />{{page.description}}</div>
52+
{% endif %}
53+
{% endfor %}
54+
55+
### Notebook examples
56+
57+
{% for page in site.pages %}
58+
{% if page.category == 'notebook' %}
59+
- <div><a href="http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/{{page.original_path}}">{{page.title}}</a><br />{{page.description}}</div>
60+
{% endif %}
61+
{% endfor %}
5562

5663
## Citing Caffe
5764

docs/mnist.md

Lines changed: 0 additions & 91 deletions
This file was deleted.

docs/mnist_prototxt.md

Lines changed: 0 additions & 153 deletions
This file was deleted.

docs/mnist_solver_prototxt.md

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
2+
title: CIFAR-10 tutorial
3+
category: example
4+
description: Train and test Caffe on CIFAR-10 data.
5+
include_in_docs: true
26
layout: default
3-
title: Caffe
47
---
58

69
Alex's CIFAR-10 tutorial, Caffe style

0 commit comments

Comments
 (0)