Mathematica library link wrapper for Caffe
This library allows using Caffe directly from Mathematica. CaffeLink can be also used as regular library from C++ applications. The interface and function calls are basicly the same as in Mathematica.
Assuming you have successfully build Caffe, you should have everything needed by CaffeLink.
- Edit makefile as required
- path to Mathematica C headers
- path to Caffe and its headers
make
- Copy or create link to
libcaffeLink.so
somewhere in$LibraryPath
- eg:
/home/alfons/.Mathematica/SystemFiles/LibraryResources/Linux-x86-64/
- or:
/Users/alfons/Library/Mathematica/Applications/IPCU/LibraryResources/MacOSX-x86-64/
- Test installation with liblink-test.nb
-
LeNet MNIST example based on Caffe example
-
AlexNet ImageNet example based on Caffe example
- Mathematica notebook: imageNet.nb
- Pdf: imageNet.pdf