deepcut-cnn
deepcut-cnn copied to clipboard
make pycaffe issue
When I run "make all", I get the following error:
CXX src/caffe/layers/pose_data_layer.cpp src/caffe/layers/pose_data_layer.cpp: In member function ‘virtual void caffe::PoseDataLayer<Dtype>::load_batch(caffe::MultiBatch<Dtype>*)’: src/caffe/layers/pose_data_layer.cpp:615:59: error: there are no arguments to ‘DecodeDatumToCVMat’ that depend on a template parameter, so a declaration of ‘DecodeDatumToCVMat’ must be available [-fpermissive] image = DecodeDatumToCVMat(image_cached.second, true);
src/caffe/layers/pose_data_layer.cpp: In instantiation of ‘void caffe::PoseDataLayer<Dtype>::load_batch(caffe::MultiBatch<Dtype>*) [with Dtype = float]’: src/caffe/layers/pose_data_layer.cpp:937:1: required from here src/caffe/layers/pose_data_layer.cpp:615:59: error: ‘DecodeDatumToCVMat’ was not declared in this scope image = DecodeDatumToCVMat(image_cached.second, true);
How can I fix that?
Thanks!
In Makefile.config change USE_OPENCV := 0 to USE_OPENCV := 1 (change 0 to 1)
Also in Makefile find this line : LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
and change it to this : LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5\ opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs