eldar / deepcut-cnn

CNN architecture for articulated human pose estimation
Other
193 stars 67 forks source link

make pycaffe issue #10

Open mkhademi opened 8 years ago

mkhademi commented 8 years ago

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::load_batch(caffe::MultiBatch*)’: 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::load_batch(caffe::MultiBatch*) [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!

amirstar commented 7 years ago

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