This is a set of Java bindings to the Caffe deep learning framework.
- Caffe - installation instructions
- JNI - this is already installed on most Linux operating systems
- Download this repository and place it within your caffe home directory
- Run
make java
ormake
inside the newly downloaded directory
This will generate a .jar
and .so
file in the lib/
directory.
In order to use the Java bindings you must:
- Add the
caffe_jni.jar
file to your project's dependencies - Make sure
/usr/local/cuda/lib64
and$(CAFFE_HOME)/build/lib
are both in theLD_LIBRARY_PATH
environment variable.