PrerequisitesNVidia Driver, Cuda Toolkit 7.5, cuDNN v5 or v5.1, Anaconda2-4.0.0 64bit or Anaconda2-4.2.0 64bit and OpenCV 3.1 (using conda installation) should be installed and configed following previous documents. Install General Dependencies
Download CaffeGo to this page https://github.com/BVLC/caffe. Download the latest version. Tested Version: 2c34393fc5aec9899d92c64be41598a3184d3347 (20160928) . This version is a refined version based on release candidate 3. Link: https://github.com/BVLC/caffe/archive/2c34393fc5aec9899d92c64be41598a3184d3347.zip Download the file to /opt/ml-items, unzip it.
Config Makefile
If you do not want to change it one by one, a modified version of mine can be used. The steps for changing it are provided. ^^^^^^ Items for Change User cuDNNuncomment
Use OpenCV version 3uncomment
Use OpenBLASchange
to
uncomment
and change it to
uncomment
and change it to B
Replace Default Path with Anaconda Pathcomment
uncomment
change it into
comment
uncomment
uncomment
Add 64 bit Library Pathadd
to the end of LIBRARY_DIRS ^^^^^^ End Items for Change CompilationLink OpenCV LibsSince we install OpenCV using Anaconda, the path of OpenCV libraries are a little different with the normal installation. Link operations should be used.
Compile Caffe by multithread. For example, -j8 use 8 threads. (A good choice for the number of threads is the number of cores in your machine)
For the last command, it should show PASSED at the end. Run Samples (Check Points)Download and create MNIST database
Run it. With a Titan X, the following script should be finished within 25 seconds.
Python InterfaceComoplie the Python interface.
Install dependency module in Python
Add Caffe module directory to PYTHONPATH
Add the following line to the end of /etc/profile
Refresh
|