Make sure you've downloaded caffe-master
Open the CMakeList.txt
We will be modifying the following lines:
- Set CPU_ONLY mode on
caffe_option(CPU_ONLY "Build Caffe without CUDA support" ON)
- Add C++11 standard
if(UNIX OR APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -std=c++11")
endif()
- Set Python 3
set(python_version "3" CACHE STRING "Specify which Python version to use")
DeFacto standard tool for generating the documentation
brew install doxygen
Set MATLAB Build ON
caffe_option(BUILD_matlab "Build Matlab wrapper" ON IF UNIX OR APPLE)
Then set the following directories:
- Set the directories
- Make sure both configureaation and Generation executed successfully
- Go to the build directory
make all -j4
- Install the libraries
make install
- Run test
make runtest
If OpenCV Version 4 is installed on your system, you might encountered the following problems:
change the followings:
CV_LOAD_IMAGE_COLOR -> cv::IMREAD_COLOR
CV_LOAD_IMAGE_GRAYSACLE -> cv::IMREAD_GRAYSCALE
Below are the changed Links:
Download the link | Paste in the path |
---|---|
io.cpp | caffe-master/src/caffe/util/ |
test_io.cpp | caffe-master/src/caffe/test/ |
window_data_layer.cpp | caffe-master/src/caffe/layers/ |
Pull requests are welcome.
For major changes, please open an issue, then discuss what you would like to change.