You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/model_zoo.md
+6-14Lines changed: 6 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@
3
3
# Caffe Model Zoo
4
4
5
5
Lots of people have used Caffe to train models of different architectures and applied to different problems, ranging from simple regression to AlexNet-alikes to Siamese networks for image similarity to speech applications.
6
-
7
6
To lower the friction of sharing these models, we introduce the model zoo framework:
8
7
9
8
- A standard format for packaging Caffe model info.
@@ -26,36 +25,29 @@ User-provided models are posted to a public-editable [wiki page](https://github.
26
25
A caffe model is distributed as a directory containing:
27
26
28
27
- Solver/model prototxt(s)
29
-
-Readme.md containing
28
+
-`readme.md` containing
30
29
- YAML frontmatter
31
30
- Caffe version used to train this model (tagged release or commit hash).
32
31
- [optional] file URL and SHA1 of the trained `.caffemodel`.
33
32
- [optional] github gist id.
34
-
- Information about what data the model was trained on, explanation of modeling choices, etc.
33
+
- Information about what data the model was trained on, modeling choices, etc.
35
34
- License information.
36
35
-[optional] Other helpful scripts.
37
36
38
37
## Hosting model info
39
38
40
39
Github Gist is a good format for model info distribution because it can contain multiple files, is versionable, and has in-browser syntax highlighting and markdown rendering.
41
40
42
-
-`scripts/download_model_from_gist.sh <gist_id>`: downloads the non-binary files from a Gist into `<dirname>`
43
41
-`scripts/upload_model_to_gist.sh <dirname>`: uploads non-binary files in the model directory as a Github Gist and prints the Gist ID. If `gist_id` is already part of the `<dirname>/readme.md` frontmatter, then updates existing Gist.
44
42
43
+
Try doing `scripts/upload_model_to_gist.sh models/bvlc_alexnet` to test the uploading (don't forget to delete the uploaded gist afterward).
44
+
45
+
Downloading models is not yet supported as a script (there is no good commandline tool for this right now), so simply go to the Gist URL and click "Download Gist" for now.
46
+
45
47
### Hosting trained models
46
48
47
49
It is up to the user where to host the `.caffemodel` file.
48
50
We host our BVLC-provided models on our own server.
49
51
Dropbox also works fine (tip: make sure that `?dl=1` is appended to the end of the URL).
50
52
51
53
-`scripts/download_model_binary.py <dirname>`: downloads the `.caffemodel` from the URL specified in the `<dirname>/readme.md` frontmatter and confirms SHA1.
52
-
53
-
54
-
## Tasks
55
-
56
-
x get the imagenet example to work with the new prototxt location
57
-
x make wiki page for user-submitted models
58
-
- add flickr model to the user-submitted models wiki page
59
-
x make docs section listing bvlc-distributed models
Copy file name to clipboardExpand all lines: examples/imagenet/readme.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,9 +91,9 @@ Resume Training?
91
91
92
92
We all experience times when the power goes out, or we feel like rewarding ourself a little by playing Battlefield (does anyone still remember Quake?). Since we are snapshotting intermediate results during training, we will be able to resume from snapshots. This can be done as easy as:
where in the script `imagenet_train_10000.solverstate` is the solver state snapshot that stores all necessary information to recover the exact solver state (including the parameters, momentum history, etc).
96
+
where in the script `caffenet_train_10000.solverstate` is the solver state snapshot that stores all necessary information to recover the exact solver state (including the parameters, momentum history, etc).
0 commit comments