You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by wa...@apache.org on 2016/12/29 09:46:25 UTC

svn commit: r1776389 [1/13] - in /incubator/singa/site/trunk: en/ en/_sources/ en/_sources/docs/examples/caffe/ en/_static/ en/_static/fonts/ en/_static/js/ en/community/ en/develop/ en/docs/ en/docs/examples/ en/docs/examples/caffe/ en/docs/examples/c...

Author: wangwei
Date: Thu Dec 29 09:46:24 2016
New Revision: 1776389

URL: http://svn.apache.org/viewvc?rev=1776389&view=rev
Log:
update docs with latest code; todo setup jenkins to update the docs automatically.

Added:
    incubator/singa/site/trunk/en/_sources/docs/examples/caffe/
    incubator/singa/site/trunk/en/_sources/docs/examples/caffe/README.txt
    incubator/singa/site/trunk/en/docs/examples/caffe/
    incubator/singa/site/trunk/en/docs/examples/caffe/README.html
Modified:
    incubator/singa/site/trunk/en/_sources/index.txt
    incubator/singa/site/trunk/en/_static/basic.css
    incubator/singa/site/trunk/en/_static/doctools.js
    incubator/singa/site/trunk/en/_static/fonts/Lato-Bold.ttf
    incubator/singa/site/trunk/en/_static/fonts/Lato-Regular.ttf
    incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.eot
    incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.svg
    incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.ttf
    incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.woff
    incubator/singa/site/trunk/en/_static/jquery.js
    incubator/singa/site/trunk/en/_static/js/modernizr.min.js
    incubator/singa/site/trunk/en/_static/pygments.css
    incubator/singa/site/trunk/en/_static/searchtools.js
    incubator/singa/site/trunk/en/_static/underscore.js
    incubator/singa/site/trunk/en/_static/websupport.js
    incubator/singa/site/trunk/en/community/issue-tracking.html
    incubator/singa/site/trunk/en/community/mail-lists.html
    incubator/singa/site/trunk/en/community/source-repository.html
    incubator/singa/site/trunk/en/community/team-list.html
    incubator/singa/site/trunk/en/develop/contribute-code.html
    incubator/singa/site/trunk/en/develop/contribute-docs.html
    incubator/singa/site/trunk/en/develop/how-contribute.html
    incubator/singa/site/trunk/en/develop/schedule.html
    incubator/singa/site/trunk/en/docs/cnn.html
    incubator/singa/site/trunk/en/docs/converter.html
    incubator/singa/site/trunk/en/docs/data.html
    incubator/singa/site/trunk/en/docs/dependencies.html
    incubator/singa/site/trunk/en/docs/device.html
    incubator/singa/site/trunk/en/docs/examples/char-rnn/README.html
    incubator/singa/site/trunk/en/docs/examples/cifar10/README.html
    incubator/singa/site/trunk/en/docs/examples/imagenet/README.html
    incubator/singa/site/trunk/en/docs/examples/index.html
    incubator/singa/site/trunk/en/docs/examples/mnist/README.html
    incubator/singa/site/trunk/en/docs/image_tool.html
    incubator/singa/site/trunk/en/docs/index.html
    incubator/singa/site/trunk/en/docs/initializer.html
    incubator/singa/site/trunk/en/docs/installation.html
    incubator/singa/site/trunk/en/docs/layer.html
    incubator/singa/site/trunk/en/docs/loss.html
    incubator/singa/site/trunk/en/docs/metric.html
    incubator/singa/site/trunk/en/docs/net.html
    incubator/singa/site/trunk/en/docs/neural-net.html
    incubator/singa/site/trunk/en/docs/optimizer.html
    incubator/singa/site/trunk/en/docs/snapshot.html
    incubator/singa/site/trunk/en/docs/software_stack.html
    incubator/singa/site/trunk/en/docs/tensor.html
    incubator/singa/site/trunk/en/docs/utils.html
    incubator/singa/site/trunk/en/downloads.html
    incubator/singa/site/trunk/en/genindex.html
    incubator/singa/site/trunk/en/index.html
    incubator/singa/site/trunk/en/objects.inv
    incubator/singa/site/trunk/en/searchindex.js
    incubator/singa/site/trunk/zh/_static/basic.css
    incubator/singa/site/trunk/zh/_static/doctools.js
    incubator/singa/site/trunk/zh/_static/fonts/Lato-Bold.ttf
    incubator/singa/site/trunk/zh/_static/fonts/Lato-Regular.ttf
    incubator/singa/site/trunk/zh/_static/fonts/fontawesome-webfont.eot
    incubator/singa/site/trunk/zh/_static/fonts/fontawesome-webfont.svg
    incubator/singa/site/trunk/zh/_static/fonts/fontawesome-webfont.ttf
    incubator/singa/site/trunk/zh/_static/fonts/fontawesome-webfont.woff
    incubator/singa/site/trunk/zh/_static/jquery.js
    incubator/singa/site/trunk/zh/_static/js/modernizr.min.js
    incubator/singa/site/trunk/zh/_static/pygments.css
    incubator/singa/site/trunk/zh/_static/searchtools.js
    incubator/singa/site/trunk/zh/_static/underscore.js
    incubator/singa/site/trunk/zh/_static/websupport.js
    incubator/singa/site/trunk/zh/genindex.html
    incubator/singa/site/trunk/zh/index.html
    incubator/singa/site/trunk/zh/objects.inv
    incubator/singa/site/trunk/zh/search.html
    incubator/singa/site/trunk/zh/searchindex.js

Added: incubator/singa/site/trunk/en/_sources/docs/examples/caffe/README.txt
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_sources/docs/examples/caffe/README.txt?rev=1776389&view=auto
==============================================================================
--- incubator/singa/site/trunk/en/_sources/docs/examples/caffe/README.txt (added)
+++ incubator/singa/site/trunk/en/_sources/docs/examples/caffe/README.txt Thu Dec 29 09:46:24 2016
@@ -0,0 +1,32 @@
+# Use parameters pre-trained from Caffe in SINGA
+
+In this example, we use SINGA to load the VGG parameters trained by Caffe to do image classification.
+
+## Run this example
+You can run this example by simply executing `run.sh vgg16` or `run.sh vgg19`
+The script does the following work.
+
+### Obtain the Caffe model
+* Download caffe model prototxt and parameter binary file.
+* Currently we only support the latest caffe format, if your model is in
+    previous version of caffe, please update it to current format.(This is
+    supported by caffe)
+* After updating, we can obtain two files, i.e., the prototxt and parameter
+    binary file.
+
+### Prepare test images
+A few sample images are downloaded into the `test` folder.
+
+### Predict
+The `predict.py` script creates the VGG model and read the parameters,
+
+    usage: predict.py [-h] model_txt model_bin imgclass
+
+where `imgclass` refers to the synsets of imagenet dataset for vgg models.
+You can start the prediction program by executing the following command:
+
+    python predict.py vgg16.prototxt vgg16.caffemodel synset_words.txt
+
+Then you type in the image path, and the program would output the top-5 labels.
+
+More Caffe models would be tested soon.

Modified: incubator/singa/site/trunk/en/_sources/index.txt
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_sources/index.txt?rev=1776389&r1=1776388&r2=1776389&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/_sources/index.txt (original)
+++ incubator/singa/site/trunk/en/_sources/index.txt Thu Dec 29 09:46:24 2016
@@ -64,6 +64,8 @@ Getting Started
 
 * Please follow the `Examples <docs/examples/index.html>`_ guide to run simple applications on SINGA.
 
+* More exmaples in `Jupyter <http://jupyter.org/>`_ (IPython) can be open in `notebook viewer <http://nbviewer.jupyter.org/github/apache/incubator-singa/blob/master/doc/notebook/index.ipynb>`_ .
+
 Documentation
 -------------
 

Modified: incubator/singa/site/trunk/en/_static/basic.css
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/basic.css?rev=1776389&r1=1776388&r2=1776389&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/_static/basic.css (original)
+++ incubator/singa/site/trunk/en/_static/basic.css Thu Dec 29 09:46:24 2016
@@ -52,8 +52,6 @@ div.sphinxsidebar {
     width: 230px;
     margin-left: -100%;
     font-size: 90%;
-    word-wrap: break-word;
-    overflow-wrap : break-word;
 }
 
 div.sphinxsidebar ul {
@@ -85,6 +83,10 @@ div.sphinxsidebar #searchbox input[type=
     width: 170px;
 }
 
+div.sphinxsidebar #searchbox input[type="submit"] {
+    width: 30px;
+}
+
 img {
     border: 0;
     max-width: 100%;
@@ -185,13 +187,6 @@ div.genindex-jumpbox {
 
 /* -- general body styles --------------------------------------------------- */
 
-div.body p, div.body dd, div.body li, div.body blockquote {
-    -moz-hyphens: auto;
-    -ms-hyphens: auto;
-    -webkit-hyphens: auto;
-    hyphens: auto;
-}
-
 a.headerlink {
     visibility: hidden;
 }

Modified: incubator/singa/site/trunk/en/_static/doctools.js
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/doctools.js?rev=1776389&r1=1776388&r2=1776389&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/_static/doctools.js (original)
+++ incubator/singa/site/trunk/en/_static/doctools.js Thu Dec 29 09:46:24 2016
@@ -124,7 +124,6 @@ var Documentation = {
     this.fixFirefoxAnchorBug();
     this.highlightSearchWords();
     this.initIndexTable();
-    
   },
 
   /**
@@ -253,29 +252,6 @@ var Documentation = {
     });
     var url = parts.join('/');
     return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
-  },
-
-  initOnKeyListeners: function() {
-    $(document).keyup(function(event) {
-      var activeElementType = document.activeElement.tagName;
-      // don't navigate when in search box or textarea
-      if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT') {
-        switch (event.keyCode) {
-          case 37: // left
-            var prevHref = $('link[rel="prev"]').prop('href');
-            if (prevHref) {
-              window.location.href = prevHref;
-              return false;
-            }
-          case 39: // right
-            var nextHref = $('link[rel="next"]').prop('href');
-            if (nextHref) {
-              window.location.href = nextHref;
-              return false;
-            }
-        }
-      }
-    });
   }
 };
 
@@ -284,4 +260,4 @@ _ = Documentation.gettext;
 
 $(document).ready(function() {
   Documentation.init();
-});
\ No newline at end of file
+});

Modified: incubator/singa/site/trunk/en/_static/fonts/Lato-Bold.ttf
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/fonts/Lato-Bold.ttf?rev=1776389&r1=1776388&r2=1776389&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/singa/site/trunk/en/_static/fonts/Lato-Regular.ttf
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/fonts/Lato-Regular.ttf?rev=1776389&r1=1776388&r2=1776389&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.eot
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.eot?rev=1776389&r1=1776388&r2=1776389&view=diff
==============================================================================
Binary files - no diff available.