Tuesday, September 16, 2014

unable to open caffe_rcnn_imagenet_model or rcnn_imagenet_deploy.prototxt

If you are getting the above errors you need to change the arguments to

--pretrained_model=../examples/imagenet/caffe_rcnn_imagenet_model
--model_def=../examples/imagenet/rcnn_imagenet_deploy.prototxt

Monday, September 15, 2014

./include/caffe/data_layers.hpp:11:18: fatal error: lmdb.h: No such file or directory compilation terminated.

If you get this error when you run make all for caffe. It is possible that you are missing dependencies. To install missing lmdb dependencies 

git clone git://gitorious.org/mdb/mdb.git
cd mdb/libraries/liblmdb
make
sudo make install

./include/caffe/common.hpp:5:27: fatal error: gflags/gflags.h: No such file or directory

If you get this error when you run make all for caffe. It is possible that you are missing dependencies. To install missing gflag dependencies 

wget https://github.com/schuhschuh/gflags/archive/master.zip
unzip master.zip
cd gflags-master
mkdir build && cd build
export CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1
make 
sudo make install