summaryrefslogtreecommitdiff
path: root/matlab
diff options
context:
space:
mode:
authorRoss Girshick <rbg@eecs.berkeley.edu>2013-11-22 14:16:58 -0800
committerRoss Girshick <rbg@eecs.berkeley.edu>2013-11-22 14:16:58 -0800
commit3f57281121e8f86aa63be69f2903c752eadd1f51 (patch)
treeb86105b1fa0f19fca47c66ec46f6d1b31a1cfada /matlab
parent41617345dba672add8ccd101ecb49a503c724d26 (diff)
downloadcaffeonacl-3f57281121e8f86aa63be69f2903c752eadd1f51.tar.gz
caffeonacl-3f57281121e8f86aa63be69f2903c752eadd1f51.tar.bz2
caffeonacl-3f57281121e8f86aa63be69f2903c752eadd1f51.zip
update Makefile and add some more docs
Diffstat (limited to 'matlab')
-rw-r--r--matlab/caffe/matcaffe_demo.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/matlab/caffe/matcaffe_demo.m b/matlab/caffe/matcaffe_demo.m
index d0702684..3eb4f107 100644
--- a/matlab/caffe/matcaffe_demo.m
+++ b/matlab/caffe/matcaffe_demo.m
@@ -9,6 +9,16 @@ function scores = matcaffe_demo(im, use_gpu)
%
% output
% scores 1000-dimensional ILSVRC score vector
+%
+% You may need to do the following before you start matlab:
+% $ export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64:/usr/local/cuda/lib64
+% $ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
+% Or the equivalent based on where things are installed on your system
+%
+% Usage:
+% im = imread('../../examples/cat.jpg');
+% scores = matcaffe_demo(im, 1);
+% [score, class] = max(scores);
model_def_file = '../../examples/imagenet_deploy.prototxt';
% NOTE: you'll have to get the pre-trained ILSVRC network