You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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
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!
The text was updated successfully, but these errors were encountered: