zeakey / skeleton

http://kaizhao.net/deepsk
66 stars 16 forks source link

Build caffe inside #5

Open KunWang123 opened 6 years ago

KunWang123 commented 6 years ago

Could u share the tutorial of how to clone source and build caffe inside. Thank u.

zchrissirhcz commented 6 years ago

You can just download the source code via the "download" button. If you would like to clone the code, you should ensure git is downloaded and installed on your computer, and put in your PATH system variable, then open a terminal and type git clone https://github.com/zeakey/skeleton.

For the build of caffe, I think you may take these steps:

cd skeleton/caffe
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)

When using Caffe's python interface, remember to add pycaffe's path to python's path in your code, such as:

pycaffe_dir = '/somewhere/skeleton/caffe/python'
import sys
sys.path.insert(0, pycaffe_dir)
...
KunWang123 commented 6 years ago

Are your dependencies CUDA 7.0 and cuDNN 4?

zeakey commented 6 years ago

@KunWang123 Disable CUDNN when building the source as FAQ suggested.

Cuda-9 works fine on my machine.