1 # Caffe Installation Tips
3 ## Install OpenCV 3.3 or later with Python3 bindings
5 Accuracy Checker uses OpenCV library for image processing. You can miss this step if you are using OpenCV from [OpenVINO toolkit][openvino-get-started].
8 sudo apt-get install libopencv-dev
9 pip install opencv-python
12 ## Install Caffe with Python3 bindings
17 git clone https://github.com/BVLC/caffe.git
21 * Install Caffe dependencies:
24 sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libgflags-dev libgoogle-glog-dev liblmdb-dev
25 sudo apt-get install --no-install-recommends libboost-all-dev
26 pip install -r python/requirements.txt
27 pip install matplotlib
32 If you need CPU only version of caffe add `-DCPU_ONLY=ON` to cmake command.
35 mkdir build && cd build
36 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=<caffe/install/dir> -Dpython_version=3 -DBLAS=open ..
41 * Copy Python library to your python installation.
44 cp -r ../python/caffe $VIRTUAL_ENV/lib/python3.5/site-packages
45 cp --remove-destination lib/_caffe.so $VIRTUAL_ENV/lib/python3.5/site-packages/caffe
48 ## Check your installation
50 You can test prerequisites with the following command. If it does not fail, then you are installed prerequisites correctly:
53 python3 -c 'import caffe, cv2'
56 [openvino-get-started]: https://software.intel.com/en-us/openvino-toolkit/documentation/get-started