projects
/
platform
/
upstream
/
caffe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0151742
)
In 00-classification example, get correct class label index
author
Brian Chu
<bc@brianchu.com>
Tue, 13 Oct 2015 10:50:53 +0000
(
03:50
-0700)
committer
Brian Chu
<bc@brianchu.com>
Tue, 13 Oct 2015 10:50:53 +0000
(
03:50
-0700)
examples/00-classification.ipynb
patch
|
blob
|
history
diff --git
a/examples/00-classification.ipynb
b/examples/00-classification.ipynb
index
46bbb19
..
89b7dd3
100644
(file)
--- a/
examples/00-classification.ipynb
+++ b/
examples/00-classification.ipynb
@@
-119,7
+119,7
@@
"source": [
"net.blobs['data'].data[...] = transformer.preprocess('data', caffe.io.load_image(caffe_root + 'examples/images/cat.jpg'))\n",
"out = net.forward()\n",
- "print(\"Predicted class is #{}.\".format(out['prob'].argmax()))"
+ "print(\"Predicted class is #{}.\".format(out['prob']
[0]
.argmax()))"
]
},
{