Issues
Issue 1: fatal error: caffe/proto/caffe.pb.h: No such file or directory
This usually happens when you add new layers to the caffe frastructure. You can solve it by running:
protoc src/caffe/proto/caffe.proto --cpp_out=.
mkdir -p include/caffe/proto
mv src/caffe/proto/caffe.pb.h include/caffe/protoThese commands are encapsulated in pbhSolution.sh. You should run it under the $CAFFE_ROOT_DIR .
Issue 2: Unknown layer type: Python
Are you sure you have modified the configuration file Makefile.config under the $CAFFE_ROOT_DIR ? Maybe you just disabled the python layer in your caffe (And that's the default configuration in the example file). You can do as follows to restart it:
# Uncomment to support layers written in Python (will link against Python libs)
WITH_PYTHON_LAYER := 1Issue 3: NVCC warning
This is because you enabled out-of-date CUDA architecture, just remove the first two lines of the following command:
-gencode arch=compute_20,code=20 \
-gencode arch=compute_20,code=21The current command should be like:
Last updated