CAFFE2 installation of the use of some interesting problems, and now will encounter problems and their solutions to a simple record.
1. First Caffe2 in the installation process need to use Git clone, wherein the--recuresive can not be discarded, otherwise you will not be able to download third-party libraries;
2. Eigen related errors occur during the make process and can be modified by modifying the Caffe2 Dependency.cmake folder about the Eigen section, as follows:
---[eigen#set1) #find_package (Eigen3 QUIET)#if(eigen3_found)# caffe2_include_directories (${eigen3_include_dirs}) #else ()# caffe2_include_directories (${project_source_dir}/third_party/eigen)#endif () instead: Caffe2_include_directories (${project_source_dir}/third_party/eigen)
You can use the Eigen version that comes with Caffe2.
3. After the installation is complete and after testing, we will find that we would like to be unable to import Caffe2.python in Pycharm, then we can fix this problem by modifying the Pycharm startup file as follows:
Add export PYTHONPATH=/caffe2/caffe2/python:/caffe2/build in pycharm.sh: $PYTHONPATH, note the path to the CAFFE2 needs to be modified
Reference:
1.http://blog.csdn.net/u013010889/article/details/70808866
2.http://www.cnblogs.com/darkknightzh/p/5896446.html
Ubuntu 14.04:caffe2 installation, pycharm configuration, Anaconda use