Octave

106 views
Skip to first unread message

nerr...@gmail.com

unread,
Jul 6, 2016, 8:57:39 AM7/6/16
to Caffe Users
Hi all,
          Just wondering if anyone has successfully used Octave instead of Matlab as the wrapper for Caffe? I know this has been asked before but no clear answer seems to have been given.

Thanks,

Nerraw 

Vladimir

unread,
Jan 24, 2018, 8:01:24 AM1/24/18
to Caffe Users
Hi,

I was able to run caffe MATLAB example on configuration Debian + Caffe + Octave.

First of all I have built caffe for Octave using CMake, CPU_ONLY mode. I was not that easy but it was built. I had to do some modifications:

vi ../CMakeLists.txt
add_definitions( -DCPU_ONLY=1 ) in the beginning of file.

on error:fatal error: caffe/caffe.hpp: No such file or directory
vi matlab/CMakeFiles/octave.dir/build.make
add -I/home/path-to-caffe/include (line 61)

cmake .. -DBUILD_SHARED_LIB=ON -DCPU_ONLY=1
make all


Secondly, I had to change a bit caffe m files to be able to use it in Octave. I posted issue about that:
https://github.com/BVLC/caffe/issues/6196

Finally I was able to run CNN graph.


среда, 6 июля 2016 г., 11:57:39 UTC+3 пользователь nerr...@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages