alexgkendall / caffe-segnet

Implementation of SegNet: A Deep Convolutional Encoder-Decoder Architecture for Semantic Pixel-Wise Labelling
http://mi.eng.cam.ac.uk/projects/segnet/
Other
1.08k stars 452 forks source link

opencv v3.1.0 #51

Open AlexTS1980 opened 8 years ago

AlexTS1980 commented 8 years ago

you have the same issue as CRF-RNN: opencv v3 is not recognized. I solved the problem in the same way, by changing the Makefile:

https://github.com/torrvision/crfasrnn/issues/51

This should be useful

sajjo79 commented 7 years ago

Hi, I am compling caffe-segnet on ubuntu 16.4. When i run make all command i get following error "(cv) yonatan@CECS4RMHRD2:~/Downloads/caffe-segnet-segnet-cleaned$ make all CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin .build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)' .build_release/lib/libcaffe.so: undefined reference tocv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator >&, std::vector<int, std::allocator > const&)' .build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)' collect2: error: ld returned 1 exit status Makefile:570: recipe for target '.build_release/tools/upgrade_net_proto_binary.bin' failed make: *** [.build_release/tools/upgrade_net_proto_binary.bin] Error 1"

I am using caffe-segnet default Makefile.config file with following changes. addition:

Uncomment if you're using OpenCV 3

OPENCV_VERSION := 3

addition: LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5 \ opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs but still i get errors. I have removed these options but still same error. Any help?