szagoruyko / cvpr15deepcompare

Code and models for "Learning to Compare Image Patches via Convolutional Neural Networks"
http://imagine.enpc.fr/~zagoruys/deepcompare.html
Other
468 stars 169 forks source link

fatal error: THC/THC.h: No such file or directory #37

Open SSTTTAY opened 6 years ago

SSTTTAY commented 6 years ago

I am trying to install run the model on OpenCV. But I have tried a few times and I still meet this problem when I run cmake -DWITH_OPENCV=ON -DOpenCV_DIR=/opt/opencv ..; make -j8 and it all arise this error : /home/ubuntu/shihua/cvpr15deepcompare-master/opencv/example.cpp:15:21: fatal error: THC/THC.h: No such file or directory compilation terminated. CMakeFiles/example.dir/build.make:62: recipe for target 'CMakeFiles/example.dir/example.cpp.o' failed make[2]: [CMakeFiles/example.dir/example.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/example.dir/all' failed make[1]: [CMakeFiles/example.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

szagoruyko commented 6 years ago

Please follow instructions on building TH and THC in https://github.com/szagoruyko/cvpr15deepcompare#c-api

I recommend you using python opencv and pytorch models here: https://github.com/szagoruyko/cvpr15deepcompare/tree/master/pytorch